Last Updated: November 06, 2018
·
7.843K
· mattcodez

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.

4 Responses
Add your response

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 ·