Dokku Remote App is Locked
Just got this new error when trying to deploy to a Dokku box:
remote: app is currently being deployed or locked. Waiting...
The app had already failed and produced an error in the docker logs. The container was already stopped. However it seems Dokku wasn't aware. Removing the stopped containers didn't help. I did a little investigating and it appears Dokku locks by creating an empty hidden file:
/home/dokku/app/.build.lock
I simply deleted this file and I was able to deploy again.
Written by mattcodez
Related protips
4 Responses
Good one!
Was scourging the internet for a solution, and this was the one.
Best,
Michele
over 1 year ago
·
Thanks
over 1 year ago
·
how did you delete it when it is hidden?
over 1 year ago
·
In my app the file thats locking its .deploy.lock
.
@genaro u can just run normal unix commands like rm <filename>
.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Dokku
Authors
Related Tags
#dokku
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#