fix: Error: Unable to inspect existing database #2771 (#2795)

Integrated into release/v3.8.6
This commit is contained in:
Markus Hartung
2026-05-27 22:04:13 +02:00
committed by GitHub
parent aac17c01c3
commit 0c6c5e212e
2 changed files with 16 additions and 0 deletions

View File

@@ -89,6 +89,10 @@ RUN chown -R node:node /app
EXPOSE 20128
# Warns if the mounted data volume has wrong ownership
COPY --chmod=755 scripts/check-permissions.sh /tmp/check-permissions.sh
ENTRYPOINT ["/tmp/check-permissions.sh"]
USER node
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \

12
scripts/check-permissions.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -e
if [ -d "/app/data" ] && [ ! -w "/app/data" ]; then
echo "WARNING: /app/data is not writable by the current user (UID $(id -u))."
echo "Run this on the Docker host to fix:"
echo " sudo chown -R 1000:1000 ./data"
echo " chmod -R u+rwX ./data"
exit 1
fi
exec "$@"