10000 Docker image does not set permission for xandikos user on /data volume during container creation · Issue #392 · jelmer/xandikos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Docker image does not set permission for xandikos user on /data volume during container creation #392

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

Open
68b32 opened this issue Jan 26, 2025 · 0 comments

Comments

@68b32
Copy link
68b32 commented Jan 26, 2025

Before starting the server, the permission of the volume must be set.

# docker run -it -p 127.0.0.1:8000:8000 -v /data/xandikos/:/data ghcr.io/jelmer/xandikos Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/code/xandikos/web.py", line 1584, in <module> sys.exit(asyncio.run(main(sys.argv[1:]))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/code/xandikos/web.py", line 1453, in main backend.create_principal( File "/code/xandikos/web.py", line 1000, in create_principal principal = PrincipalBare.create(self, relpath) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/code/xandikos/web.py", line 924, in create p = super().create(backend, relpath) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/code/xandikos/web.py", line 688, in create os.makedirs(path) File "<frozen os>", line 225, in makedirs PermissionError: [Errno 13] Permission denied: '/data/user/'
Creating the target directory in advance and modifying the permissions solves this issue. But I think this should be done from inside the container during creation.

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
0