Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
kibuan opened this issue Nov 24, 2024 · 1 comment
Open
1 task done

Comments

@kibuan
Copy link

kibuan commented Nov 24, 2024

Is there an existing issue for this?

  • 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

  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.
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Issues
Development

No branches or pull requests

1 participant