-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api-server did not start #145
Comments
Did anyone fix this issue. If yes, please help with the steps. |
same problem here |
I met the same problem in ubuntu 14.04 + opencontrail 3.2.2. I don't understand the following 2 lines error information, 8084 port is used by contrail-api itself, why it can not write? And I don't find the file contrail-api.5942.http_port under /tmp. Another error line is: Does anyone know this problem? Thank you very much! |
Same problem... 2017-07-20 03:45:32 ++ services=apiSrv |
Here is my experence: at the beginning, I deployed contrail with PPA package, I met this question, API server could not start, when I manually started contrail-discovery service, this step was passed, api-server could start and listen on port 8082. but there were still a lot of problems need to be solved. Then I try to deploy with newest source, this time I didn't start contrail-discovery service(and it seemed no contrail-discovery service be deployed this time), then api-srv is ok. But I don't know why, and I also wish to know why this time there is no discovery service be deployed? Will it affect the service? |
I am facing issue while installing Contrail 3.2. ./contrail.sh start step is failing with the error :
api-server did not start. Can anyone help me in resolving this error.
2017-05-05 14:13:49 ++ screen -S contrail -p ifmap -X stuff 'cd /opt/stack/contrail/build/packages/ifmap-server; java -jar ./irond.jar & echo $! >/home/controller/contr'il-installer/status/contrail/ifmap.pid; fg || echo "ifmap failed to start" | tee "/home/controller/contrail-installer/status/contrail/ifmap.failure"
2017-05-05 14:13:49 ++ [[ ifmap == \a\g\e\n\t ]]
2017-05-05 14:13:49 ++ sleep 2
2017-05-05 14:13:51 ++ RABBIT_OPTS='--rabbit_user rabbitcontrail --rabbit_password contrail123 --rabbit_server 10.139.2.32'
2017-05-05 14:13:51 +++ which contrail-api
2017-05-05 14:13:51 ++ screen_it apiSrv '/usr/bin/contrail-api --conf_file /etc/contrail/contrail-api.conf --reset_config --rabbit_user rabbitcontrail --rabbit_password contrail123 --rabbit_server 10.139.2.32'
2017-05-05 14:13:51 ++ SCREEN_NAME=contrail
2017-05-05 14:13:51 ++ SERVICE_DIR=/home/controller/contrail-installer/status
2017-05-05 14:13:51 +++ trueorfalse False True
2017-05-05 14:13:51 +++ local default=False
2017-05-05 14:13:51 +++ local testval=True
2017-05-05 14:13:51 +++ [[ -z True ]]
2017-05-05 14:13:51 +++ [[ 0 no No NO false False FALSE =~ True ]]
2017-05-05 14:13:51 +++ [[ 1 yes Yes YES true True TRUE =~ True ]]
2017-05-05 14:13:51 +++ echo True
2017-05-05 14:13:51 +++ return
2017-05-05 14:13:51 ++ USE_SCREEN=True
2017-05-05 14:13:51 ++ is_service_enabled apiSrv
2017-05-05 14:13:51 ++ services=apiSrv
2017-05-05 14:13:51 ++ for service in '${services}'
2017-05-05 14:13:51 ++ [[ ,named,dns,redis,cass,zk,ifmap,disco,apiSrv,schema,svc-mon,control,collector,analytics-api,query-engine,agent,redis-w,ui-jobs,ui-webs,kafka,alarm, =~ ,apiSrv, ]]
2017-05-05 14:13:51 ++ return 0
2017-05-05 14:13:51 ++ screen_rc apiSrv '/usr/bin/contrail-api --conf_file /etc/contrail/contrail-api.conf --reset_config --rabbit_user rabbitcontrail --rabbit_password contrail123 --rabbit_server 10.139.2.32'
2017-05-05 14:13:51 ++ SCREEN_NAME=contrail
2017-05-05 14:13:51 ++ SCREENRC=/home/controller/contrail-installer/contrail-screenrc
2017-05-05 14:13:51 ++ [[ ! -e /home/controller/contrail-installer/contrail-screenrc ]]
2017-05-05 14:13:51 ++ grep apiSrv /home/controller/contrail-installer/contrail-screenrc
2017-05-05 14:13:51 ++ [[ True = \T\r\u\e ]]
2017-05-05 14:13:51 ++ screen -S contrail -X screen -t apiSrv
2017-05-05 14:13:51 ++ [[ -n /home/controller/contrail-installer/log/screens ]]
2017-05-05 14:13:51 ++ screen -S contrail -p apiSrv -X logfile /home/controller/contrail-installer/log/screens/screen-apiSrv.2017-05-05-141328.log
2017-05-05 14:13:51 ++ screen -S contrail -p apiSrv -X log on
2017-05-05 14:13:51 ++ ln -sf /home/controller/contrail-installer/log/screens/screen-apiSrv.2017-05-05-141328.log /home/controller/contrail-installer/log/screens/screen-apiSrv.log
2017-05-05 14:13:51 ++ sleep 1.5
2017-05-05 14:13:52 +++ echo -ne '\015'
2017-05-05 14:13:52 ++ NL=$'\r'
2017-05-05 14:13:52 Waiting for api-server to start...
2017-05-05 14:13:52 ++ screen -S contrail -p apiSrv -X stuff '/usr/bin/contrail-api --conf_file /etc/contrail/contrail-api.conf --reset_config --rabbit_user rabbitcontrail --rabbit_password contrail123 --rabbit_server 10.139.2.32 & echo $! >/home/controller/contrail-installer/status/contrail/apiSrv.pid; fg || echo "apiSrv failed to st'rt" | tee "/home/controller/contrail-installer/status/contrail/apiSrv.failure"
2017-05-05 14:13:52 ++ [[ apiSrv == \a\g\e\n\t ]]
2017-05-05 14:13:52 ++ echo 'Waiting for api-server to start...'
2017-05-05 14:13:52 ++ timeout 180 sh -c 'while ! http_proxy= wget -q -O- http://10.139.2.32:8082; do sleep 1; done'
controller@controller:
/contrail-installer$/contrail-installer$ 2017-05-05 14:16:52 api-server did not startcontroller@controller:
2017-05-05 14:16:52 ++ echo 'api-server did not start'
The text was updated successfully, but these errors were encountered: