Closed HillLiu closed 6 years ago
Can you give more detail as to:
That will help me replicate the issue so I can fix it.
bump
be apologetic to miss this.
Just reboot, nothing else.
I have 5 apps in one dokku, and after reboot these apps were pointed to wrong dns (domain name).
I create a custom rc.local service, and force each apps restart.
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
And the rc.local are
/usr/bin/dokku apps:list | awk 'NR >= 2' | xargs -I{} /usr/bin/dokku ps:restart {}
So we already do a dokku ps:restore
on reboot. This will trigger rebuilds for the container ip addresses for all applications - docker doesn't require that they stay the same across reboots - but can take a bit of time.
Can you show the log output of the dokku-redeploy
service when you see this issue?
bump
@josegonzalez after upgrade to v0.11.6 and install dokku-update. I also remove my rc.local hack. When I try reboot twice, everything working perfect now.
We can close this now.
Following are my reboot logs.
Mar 11 12:13:24 startup dokku[2093]: -----> Restarting in parallel
Mar 11 12:14:03 startup dokku[2093]: App force already running
Mar 11 12:14:03 startup dokku[2093]: -----> Ensuring network configuration is in sync for force
Mar 11 12:14:03 startup dokku[2093]: -----> Configuring force.dokku-srver.xxx.com...(using built-in template)
Mar 11 12:14:03 startup dokku[2093]: -----> Creating http nginx.conf
Mar 11 12:14:03 startup dokku[2093]: -----> Running nginx-pre-reload
Mar 11 12:14:03 startup dokku[2093]: Reloading nginx
Mar 11 12:17:09 startup dokku[2093]: -----> Releasing homecoming (dokku/homecoming:latest)...
Mar 11 12:17:09 startup dokku[2093]: -----> Deploying homecoming (dokku/homecoming:latest)...
Mar 11 12:17:09 startup dokku[2093]: -----> Attempting to run scripts.dokku.predeploy from app.json (if defined)
Mar 11 12:17:09 startup dokku[2093]: -----> App Procfile file found (/home/dokku/homecoming/DOKKU_PROCFILE)
Mar 11 12:17:09 startup dokku[2093]: -----> DOKKU_SCALE file found (/home/dokku/homecoming/DOKKU_SCALE)
Mar 11 12:17:09 startup dokku[2093]: =====> web=1
Mar 11 12:17:09 startup dokku[2093]: -----> Attempting pre-flight checks
Mar 11 12:17:09 startup dokku[2093]: For more efficient zero downtime deployments, create a file CHECKS.
Mar 11 12:17:09 startup dokku[2093]: See http://dokku.viewdocs.io/dokku/deployment/zero-downtime-deploys/ for examples
Mar 11 12:17:09 startup dokku[2093]: CHECKS file not found in container: Running simple container check...
Mar 11 12:17:09 startup dokku[2093]: -----> Waiting for 10 seconds ...
Mar 11 12:17:09 startup dokku[2093]: -----> Default container check successful!
Mar 11 12:17:09 startup dokku[2093]: -----> Running post-deploy
Mar 11 12:17:09 startup dokku[2093]: -----> Found previous container(s) (bf126c61dae7) named homecoming.web.1
Mar 11 12:17:09 startup dokku[2093]: =====> renaming container (bf126c61dae7) homecoming.web.1 to homecoming.web.1.1520770590
Mar 11 12:17:09 startup dokku[2093]: =====> renaming container (2765edc03b15) gifted_kirch to homecoming.web.1
Mar 11 12:17:09 startup dokku[2093]: -----> Configuring homecoming.dokku-srver.xxx.com...(using built-in template)
Mar 11 12:17:09 startup dokku[2093]: -----> Configuring usw1.middleware.xxx.com...(using built-in template)
Mar 11 12:17:09 startup dokku[2093]: -----> Configuring usw1.warcraft.xxx.com...(using built-in template)
Mar 11 12:17:09 startup dokku[2093]: -----> Creating http nginx.conf
Mar 11 12:17:09 startup dokku[2093]: -----> Running nginx-pre-reload
Mar 11 12:17:09 startup dokku[2093]: Reloading nginx
Mar 11 12:17:09 startup dokku[2093]: -----> Setting config vars
Mar 11 12:17:09 startup dokku[2093]: DOKKU_APP_RESTORE: 1
Mar 11 12:17:09 startup dokku[2093]: -----> Attempting to run scripts.dokku.postdeploy from app.json (if defined)
Mar 11 12:17:09 startup dokku[2093]: -----> Shutting down old containers in 60 seconds
Mar 11 12:17:09 startup dokku[2093]: =====> bf126c61dae7a7cc07d1a5be1ac4ddabb81dde3c2e0303315c28b70b1ea1ca9c
Mar 11 12:17:09 startup dokku[2093]: =====> Application deployed:
Mar 11 12:17:09 startup dokku[2093]: http://homecoming.dokku-srver.xxx.com
Mar 11 12:17:09 startup dokku[2093]: http://usw1.middleware.xxx.com
Mar 11 12:17:09 startup dokku[2093]: http://usw1.warcraft.xxx.com
Mar 11 12:17:09 startup dokku[2093]: -----> Ensuring network configuration is in sync for homecoming
Mar 11 12:17:09 startup dokku[2093]: -----> Configuring homecoming.dokku-srver.xxx.com...(using built-in template)
Mar 11 12:17:09 startup dokku[2093]: -----> Configuring usw1.middleware.xxx.com...(using built-in template)
Mar 11 12:17:09 startup dokku[2093]: -----> Configuring usw1.warcraft.xxx.com...(using built-in template)
Mar 11 12:17:09 startup dokku[2093]: -----> Creating http nginx.conf
Mar 11 12:17:09 startup dokku[2093]: -----> Running nginx-pre-reload
Mar 11 12:17:09 startup dokku[2093]: Reloading nginx
Mar 11 12:17:32 startup dokku[2093]: App ht already running
Mar 11 12:17:32 startup dokku[2093]: -----> Ensuring network configuration is in sync for ht
Mar 11 12:17:32 startup dokku[2093]: -----> Overriding default nginx.conf with detected nginx.conf.sigil
Mar 11 12:17:32 startup dokku[2093]: -----> Configuring ht.dokku-srver.xxx.com...(using app-supplied template)
Mar 11 12:17:32 startup dokku[2093]: -----> Configuring market.prod.usw1.bag.xxx.com...(using app-supplied template)
Mar 11 12:17:32 startup dokku[2093]: -----> Configuring market.prod.usw1.ht.xxx.com...(using app-supplied template)
Mar 11 12:17:32 startup dokku[2093]: -----> Creating http nginx.conf
Mar 11 12:17:32 startup dokku[2093]: -----> Running nginx-pre-reload
Mar 11 12:17:32 startup dokku[2093]: Reloading nginx
Mar 11 12:17:55 startup dokku[2093]: App static already running
Mar 11 12:17:55 startup dokku[2093]: -----> Ensuring network configuration is in sync for static
Mar 11 12:17:55 startup dokku[2093]: -----> Overriding default nginx.conf with detected nginx.conf.sigil
Mar 11 12:17:55 startup dokku[2093]: -----> Configuring i.xxx.com...(using app-supplied template)
Mar 11 12:17:55 startup dokku[2093]: -----> Configuring static.dokku-srver.xxx.com...(using app-supplied template)
Mar 11 12:17:55 startup dokku[2093]: -----> Creating http nginx.conf
Mar 11 12:17:55 startup dokku[2093]: -----> Running nginx-pre-reload
Mar 11 12:17:55 startup dokku[2093]: Reloading nginx
Mar 11 12:18:22 startup dokku[2093]: App warcraft already running
Mar 11 12:18:22 startup dokku[2093]: -----> Ensuring network configuration is in sync for warcraft
Mar 11 12:18:22 startup dokku[2093]: -----> Configuring warcraft.dokku-srver.xxx.com...(using built-in template)
Mar 11 12:18:22 startup dokku[2093]: -----> Creating http nginx.conf
Mar 11 12:18:22 startup dokku[2093]: -----> Running nginx-pre-reload
Mar 11 12:18:22 startup dokku[2093]: Reloading nginx
same issue with https://github.com/dokku/dokku/issues/2999
but happen on v0.11.4, and my environment.