Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"failed to create locked file" when starting josh via docker #1088

Open
RalfJung opened this issue Dec 21, 2022 · 0 comments
Open

"failed to create locked file" when starting josh via docker #1088

RalfJung opened this issue Dec 21, 2022 · 0 comments

Comments

@RalfJung
Copy link
Contributor

RalfJung commented Dec 21, 2022

When I run this

docker run -it -p 8000:8000 -e JOSH_REMOTE=https://github.com -e JOSH_EXTRA_OPTS=--no-background -v josh-vol:/data/git joshproject/josh-proxy:latest

I get an error

2022-12-21T16:30:26.478227Z DEBUG josh_proxy: init mirror repo: "/data/git/mirror"
2022-12-21T16:30:26.530051Z ERROR josh: item=Error { code: -1, klass: 2, message: "failed to create locked file '/data/git/mirror/config.lock': Permission denied" } error=true

The /data folder exists because it was created by an earlier version of josh. I did a docker pull joshproject/josh-proxy:latest and then I started getting this error.

After some fighting with docker I managed to get it to delete that volume, and now things seem to work again. But still, that should not happen, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant