linuxserver / docker-freshrss

GNU General Public License v3.0
179 stars 24 forks source link

[BUG] Permission denied in /app/www/lib/lib_install.php (PUID is set) #71

Open kibuan opened 1 day ago

kibuan commented 1 day ago

Is there an existing issue for this?

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

  1. I have created a user (ID: 1061)
  2. The user has been granted read/write permissions to the volume containing the freshrss config files
  3. The freshrss server loads with no error, and a bunch of files are created in the config folder.
  4. 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.
github-actions[bot] commented 1 day ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.