Trouble with upgrading to v0.31.0

Hello.
I have some trouble with update to v0.31.0

Command

docker run -d --volumes-from rancher-data --restart=always -p 8080:8080  -e CATTLE_DB_CATTLE_MYSQL_HOST=172.17.0.105 -e CATTLE_DB_CATTLE_MYSQL_PORT=3306  -e CATTLE_DB_CATTLE_MYSQL_NAME=cattledb  -e CATTLE_DB_CATTLE_USERNAME=admin -e CATTLE_DB_CATTLE_PASSWORD=xxxxxx rancher/server:latest 

Logs rancher-server after start
2015-08-05 05:56:50,375 INFO [main] [ConsoleStatus] [93/102] [32571ms] [0ms] Starting external-handler-process
2015-08-05 05:56:50,375 INFO [main] [ConsoleStatus] [94/102] [32571ms] [0ms] Starting host-only
2015-08-05 05:56:50,375 INFO [main] [ConsoleStatus] [95/102] [32571ms] [0ms] Starting metadata-process
2015-08-05 05:56:50,376 INFO [main] [ConsoleStatus] [96/102] [32572ms] [1ms] Starting process-server
2015-08-05 05:56:50,376 INFO [main] [ConsoleStatus] [97/102] [32572ms] [0ms] Starting agent-instance-impl-process
2015-08-05 05:56:50,376 INFO [main] [ConsoleStatus] [98/102] [32572ms] [0ms] Starting ha
2015-08-05 05:56:50,376 INFO [main] [ConsoleStatus] [99/102] [32572ms] [0ms] Starting register
2015-08-05 05:56:50,381 INFO [main] [ConsoleStatus] [100/102] [32577ms] [5ms] Starting sample-data
2015-08-05 05:56:50,382 INFO [main] [ConsoleStatus] [101/102] [32578ms] [1ms] Starting redis
2015-08-05 05:56:50,382 INFO [main] [ConsoleStatus] [102/102] [32578ms] [0ms] Starting storage-simulator
05:56:50.578 [main] INFO ConsoleStatus - [DONE ] [40082ms] Startup Succeeded, Listening on port 8081
time=“2015-08-05T05:56:52Z” level=info msg="Starting websocket proxy. Listening on [:8080], Proxying to cattle API at [localhost:8081], Monitoring parent pid [7]."
time=“2015-08-05T05:56:52Z” level=info msg=“Setting log level” logLevel=info
time=“2015-08-05T05:56:52Z” level=info msg=“Starting go-machine-service…” gitcommit=102d311
time=“2015-08-05T05:57:22Z” level=error msg=“Unable to create EventRouter” Err="Get http://dock.rugeek.ru:8080/v1: dial tcp 62.210.169.84:8080: i/o timeout"
time=“2015-08-05T05:57:22Z” level=info msg="Exiting go-machine-service…"
time=“2015-08-05T05:57:24Z” level=info msg=“Setting log level” logLevel=info
time=“2015-08-05T05:57:24Z” level=info msg=“Starting go-machine-service…” gitcommit=102d311

Please help me solve my problem

Based on your command, it seems like you have a conflict of databases.

With the --volumes-from, you are defining the database that is in the rancher-data container.

But with the -e CATTLE_DB_CATTLE_MYSQL_HOST=172.17.0.105 -e CATTLE_DB_CATTLE_MYSQL_PORT=3306 -e CATTLE_DB_CATTLE_MYSQL_NAME=cattledb -e CATTLE_DB_CATTLE_USERNAME=admin -e CATTLE_DB_CATTLE_PASSWORD=xxxxxx part of the command, you are using an external DB.

If you started your original Rancher server with an external DB, you wouldn’t need to upgrade per the upgrading instructions, instead you should only need to start the latest Rancher server version using the external DB.

Can you try the command without the --volumes-from portion?

1 Like

Thank you.
Now everything work.