|
Hello, I run Facet as a container using Podman. It seems it runs as rootless container since the Problems
Is this related to the |
Replies: 1 comment
|
It's not the UID — that "access denied" is a deliberate 403 from Facet's own path check, which is why nothing shows up in The check is real = os.path.realpath(target_dir)
roots = _allowed_export_roots()
if not roots:
raise HTTPException(
status_code=403,
detail="Copy/symlink export is disabled — configure viewer.export.allowed_target_dirs",
)
for root in roots:
if real == root:
return root
if real.startswith(root + os.sep):
return real
raise HTTPException(status_code=403, detail="target_dir is not an allowed export location")The allowed roots come from two places: Configured ``viewer.export.allowed_target_dirs`` first, then the scan
directories (so exporting within the photo tree works out of the box).So if you haven't set That also answers your second question. If you're still refused after adding it, the thing to check is that the destination is on a volume actually mounted into the container. Filesystem ownership only becomes relevant once you're past this — at that point the failure mode changes to an actual error in the logs rather than silence, which is a useful way to tell the two apart. |
It's not the UID — that "access denied" is a deliberate 403 from Facet's own path check, which is why nothing shows up in
podman logs. Nothing errored; the API just declined and returned a normal response.The check is
_validate_target_dirinapi/routers/export.py, and it's fail-closed: