Docker image does not set permission for xandikos user on /data volume during container creation · Issue #392 · jelmer/xandikos · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: