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

Permission denied on some files #123

Open
greenscientist opened this issue Mar 28, 2024 · 2 comments
Open

Permission denied on some files #123

greenscientist opened this issue Mar 28, 2024 · 2 comments

Comments

@greenscientist
Copy link
Contributor

I recreated my Overpass setup in my Kubernetes environment and I got a few permission denied error.

Extract from my log:
2024-03-26T06:13:51.760964953Z tee: /db/changes.log: Permission denied
2024-03-26T06:13:51.761041418Z mkdir: cannot create directory ‘/db/diffs’: Permission denied

The source of the problem is that the /db/ directory is now owned by root and this the overpass user cannot create those files.
I was able to pinpoint the change to commit 26e5b3f which did change how we set the permissions on the directory.
A revert of the commit works well for me. I don't know if we'd prefer to find a more fine grained solution to the original problem or just go back to what it was.

wiktorn added a commit that referenced this issue Mar 28, 2024
@greenscientist
Copy link
Contributor Author

@wiktorn After your change, getting another permission error:

2024-04-02T23:07:42.282061249Z /app/bin /
2024-04-02T23:07:42.289674647Z cp: cannot create regular file '/db/replicate_id.backup': Permission denied

@Xyaren
Copy link

Xyaren commented Oct 8, 2024

chown overpass:overpass /db/ /db/replicate_id worked for me

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

2 participants