linuxserver / docker-projectsend

GNU General Public License v3.0
74 stars 26 forks source link

Errors with the access rights. #45

Closed ipod86 closed 1 day ago

ipod86 commented 3 months ago

Is there an existing issue for this?

Current Behavior

Hello,

I have just installed projectsend with docker compose. Unfortunately there are errors with the access rights. What could this be?

version: "2.1"
services:
  projectsend:
    image: linuxserver/projectsend:latest
    container_name: projectsend
    environment:
      - PUID=998
      - PGID=100
      - TZ=Europe/Berlin
      - MAX_UPLOAD=5000
    volumes:
      - ./config:/config 
      - ./data:/data
    ports:
      - 88:80
    restart: unless-stopped
  db:
    image: mariadb:latest
    container_name: mariadb-projectsend
    environment:
      MYSQL_ROOT_PASSWORD: projectsend
      MYSQL_DATABASE: projectsend
      MYSQL_USER: projectsend
      MYSQL_PASSWORD: projectsend
    volumes:
      - ./sql:/var/lib/mysql 

    restart: unless-stopped

Screenshot_20240824_114157_Chrome

Expected Behavior

Run my docker compose

Steps To Reproduce

Run my docker compose

Environment

Debian 12
Compose with Portainer

CPU architecture

x86-64

Docker creation

My docker compose in Portainer

Container logs

[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:    998
User GID:    100
───────────────────────────────────────
Linuxserver.io version: r1720-ls204
Build-date: 2024-08-19T21:29:51+00:00
───────────────────────────────────────

using keys found in /config/keys
New container detected. Setting up app folder and fixing permissions.
[custom-init] No custom files found, skipping...
[ls.io-init] done.
github-actions[bot] commented 3 months ago

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

j0nnymoe commented 3 months ago

We symlink those dir's to the /data volume. If you don't have the correct permissions/ownership on that folder, it will error: https://github.com/linuxserver/docker-projectsend/blob/8d969910ff855735abebfc0bd0e7a4c036e3bdfa/root/etc/s6-overlay/s6-rc.d/init-projectsend-config/run#L48

ipod86 commented 3 months ago

Can you tell me how I check the permissions on the docker host? But compose works like this?

EDIT

Now I have

LinuxServer-CI commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.