Closed nelsonic closed 6 years ago
I decided to "power cycle" (restart) the VM:
The VM re-start worked. But then when I attempt to start/restart the Dokku app:
dokku ps:restart ruby-rails-sample
Get:
App container failed to start!!
=====> ruby-rails-sample web container output:
setuidgid: fatal: unable to run bundle: file does not exist
setuidgid: fatal: unable to run bundle: file does not exist
setuidgid: fatal: unable to run bundle: file does not exist
setuidgid: fatal: unable to run bundle: file does not exist
setuidgid: fatal: unable to run bundle: file does not exist
setuidgid: fatal: unable to run bundle: file does not exist
setuidgid: fatal: unable to run bundle: file does not exist
=====> end ruby-rails-sample web container output
The Dokku (docker) container is still running. When we visit the sample app in the browser it's up:
So I mannually stopped the app:
dokku ps:stop ruby-rails-sample
And then get an Nginx Gateway Error:
Which in our case is a good sign because it means the Rails app isn't running! š So I pushed the app to DO again:
git push dokku
It worked!! š
Setup a subdomain for the app:
dokku domains:add ruby-rails-sample hits.dwyl.com
Which had the following output:
-----> Added hits.dwyl.com to ruby-rails-sample
-----> Unsetting ruby-rails-sample
-----> Unsetting DOKKU_NGINX_PORT
-----> Unsetting DOKKU_NGINX_SSL_PORT
-----> Unsetting DOKKU_PROXY_PORT_MAP
-----> Setting config vars
NO_VHOST: 0
-----> Setting config vars
DOKKU_NGINX_PORT: 80
-----> Setting config vars
DOKKU_PROXY_PORT_MAP: http:80:5000
-----> Configuring ruby-rails-sample.hits.dwyl.com...(using built-in template)
-----> Creating http nginx.conf
-----> Running nginx-pre-reload
Reloading nginx
And it worked as expected:
Don't worry this is not what we are going to display for the "hits" app.
dokku ps:restart <app>
via: https://stackoverflow.com/questions/21247195/what-is-the-proper-command-to-restart-a-dokku-app-from-ssh
Deploying to a Dokku (Docker) Container is not working because the previous deploy failed. š
Tried to Login to the DigitalOcean VM to attempt to restart:
I tried deleting the
.deploy.lock
(in our case located at/home/dokku/ruby-rails-sample.deploy.lock
) as per http://stackoverflow.com/questions/21247195/what-is-the-proper-command-to-restart-a-dokku-app-from-sshbut that didn't work. š¢
So I tried resorting to "Nuking" ... i.e. restarting all the docker processes
but unfortunately, we got this error message: