docker-freshrss
docker-freshrss copied to clipboard
[BUG] Permission denied in /app/www/lib/lib_install.php (PUID is set)
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
In the setup guide I get these errors in the Checks, File installation section:
Blast! Check permissions on the /app/www/data directory for abc user. The HTTP server must have write permission.
Blast! Check permissions on the /app/www/data/cache directory for abc user. The HTTP server must have write permission.
Okay! Permissions on the temp directory are good.
Blast! Check permissions on the /app/www/data/users directory for abc user. The HTTP server must have write permissions.
Blast! Check permissions on the /app/www/data/favicons directory for abc user. The HTTP server must have write permission.
Please all fix errors before continuing to the next step.
This is the content of the error.log file:
2024/11/24 22:50:21 [error] 270#270: *12 FastCGI sent in stderr: "PHP message: PHP Warning: touch(): Unable to create file /app/www/data/index.html because Permission denied in /app/www/lib/lib_install.php on line 44; PHP message: PHP Warning: touch(): Unable to create file /app/www/data/favicons/index.html because Permission denied in /app/www/lib/lib_install.php on line 48; PHP message: PHP Warning: touch(): Unable to create file /app/www/data/index.html because Permission denied in /app/www/lib/lib_install.php on line 44; PHP message: PHP Warning: touch(): Unable to create file /app/www/data/favicons/index.html because Permission denied in /app/www/lib/lib_install.php on line 48" while reading response header from upstream, client: 172.20.0.3, server: _, request: "GET /i/?step=1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "freshrss.mydomain.com", referrer: "https://freshrss.mydomain.com/i/"
Expected Behavior
No response
Steps To Reproduce
- I have created a user on the host (ID: 1061)
- The user has been granted read/write permissions to the volume on host containing the freshrss config files
- The freshrss server loads with no error, and a bunch of files are created in the config folder.
- When I check the permissions of the files and folders created they are all owned by the user with ID 1061.
Environment
- OS: Synology DSM 7.1
- How docker service was installed: Synology package
CPU architecture
x86-64
Docker creation
This is my docker-compose.yml file:
services:
freshrss:
image: lscr.io/linuxserver/freshrss:latest
container_name: freshrss
restart: unless-stopped
volumes:
- /volume3/dockernvme/freshrss/config:/config
networks:
- proxy-freshrss
- freshrss
environment:
PUID: 1061
PGID: 100
TZ: Europe/Copenhagen
networks:
proxy-freshrss:
external: true
freshrss:
### Container logs
```bash
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1061
User GID: 100
───────────────────────────────────────
Linuxserver.io version: 1.24.3-ls251
Build-date: 2024-11-24T13:09:46+00:00
───────────────────────────────────────
using keys found in /config/keys
[custom-init] No custom files found, skipping...
[ls.io-init] done.