buildpack-nginx icon indicating copy to clipboard operation
buildpack-nginx copied to clipboard

Could not open lock file

Open florianheinemann opened this issue 9 years ago • 4 comments

Hi!

I get the following errors when I try to push an app... Any idea what that could be? All other build packs with as usual.

remote: HEAD is now at 6380bff... Back to nginx
-----> Fetching custom buildpack
-----> nginx app detected
remote: E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
remote: E: Unable to lock directory /var/lib/apt/lists/
remote: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
remote: E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

florianheinemann avatar Oct 29 '14 02:10 florianheinemann

Okay. Got feedback from the progrium guys. Seems with the latest version of build step the process isn't executed as root anymore and hence apt-get will not work anymore... https://github.com/progrium/buildstep/issues/113#issuecomment-59690914

They recommend updating custom build packs to local installs (they give one example in the list above)

Do you think that could work?

Florian

florianheinemann avatar Oct 29 '14 13:10 florianheinemann

Unfortunately it still doesn't work. Are there any other buildpacks for dokku and nginx? I would be happy to fix it if I had more details on issue. ping @progrium

alexbeletsky avatar Feb 26 '15 13:02 alexbeletsky

This would should work: https://github.com/florianheinemann/dokku-buildpack-nginx

florianheinemann avatar Feb 26 '15 13:02 florianheinemann

@florianheinemann Thanks a lot.. another one, I found that works for me is https://github.com/socialshop/heroku-buildpack-nginx

alexbeletsky avatar Feb 26 '15 13:02 alexbeletsky