Maintainerr icon indicating copy to clipboard operation
Maintainerr copied to clipboard

Data directory issue when using docker-compose

Open richardquick opened this issue 1 year ago • 5 comments

When using docker-compose on ubuntu i am unable to start the container.

passwd file (showing 1000:1000 as existing user) ubuntu@plex2:/etc/docker/maintainerr$ cat /etc/passwd | grep ubuntu ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash

directory structure: (Showing user 1000, Ubuntu, having 755 permissions on data folder) ubuntu@plex2:/etc/docker/maintainerr$ ls -la total 16 drwxr-xr-x 3 ubuntu ubuntu 4096 May 8 12:51 . drwxr-xr-x 3 root root 4096 May 8 12:10 .. drwxrwxr-x 2 ubuntu ubuntu 4096 May 8 12:34 data -rw-r--r-- 1 root root 486 May 8 12:51 docker-compose.yml ubuntu@plex2:/etc/docker/maintainerr$

Docker-compose.yml ubuntu@plex2:/etc/docker/maintainerr$ cat docker-compose.yml version: '3'

services: maintainerr: image: ghcr.io/jorenn92/maintainerr:latest # or jorenn92/maintainerr:latest container_name: maintainerr user: 1000:1000 volumes: - type: bind source: ./data target: /opt/data environment: - TZ=Europe/Brussels

- DEBUG=true # uncomment to enable debug logs

    ports:
      - 6246:6246
    restart: unless-stopped

docker-compose up: maintainerr | THE CONTAINER NO LONGER OPERATES WITH PRIVILEGED USER PERMISSIONS. PLEASE UPDATE YOUR CONFIGURATION ACCORDINGLY: https://github.com/jorenn92/Maintainerr/releases/tag/v2.0.0 maintainerr | Could not create or access (files in) the data directory. Please make sure the necessary permissions are set

richardquick avatar May 08 '24 17:05 richardquick

Hey, are you able to exec inside the container and check the permissions of the /opt/data directory? There’s most likely still something wrong with it.

jorenn92 avatar May 08 '24 19:05 jorenn92

docker exec -it maintainerr /bin/sh

/opt $ ls -la total 20 drwxrwxrwx 1 node node 4096 Mar 25 14:45 . drwxr-xr-x 1 root root 4096 May 8 19:12 .. drwxr-xr-x 6 node node 4096 Mar 25 14:44 app drwxr-xr-x 2 root root 4096 May 8 16:10 data drwxr-xr-x 4 root root 4096 Mar 16 03:31 yarn-v1.22.19

/opt/data $ ls -la total 8 drwxr-xr-x 2 root root 4096 May 8 16:10 . drwxrwxrwx 1 node node 4096 Mar 25 14:45 ..

richardquick avatar May 08 '24 19:05 richardquick

Is there an update on this? Love the product but can't install right now.

thank you!

richardquick avatar May 13 '24 12:05 richardquick

I have the same issue, trying to run it on unRAID. What exactly am I supposed to change?

lediszep avatar May 13 '24 22:05 lediszep

Same issue, also on Unraid.

2024-05-14 16:06:39,165 INFO success: ui entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
   - Local:        x
   - Network:      y

 ✓ Ready in 374ms
THE CONTAINER NO LONGER OPERATES WITH PRIVILEGED USER PERMISSIONS. PLEASE UPDATE YOUR CONFIGURATION ACCORDINGLY: https://github.com/jorenn92/Maintainerr/releases/tag/v2.0.0
Could not create or access (files in) the data directory. Please make sure the necessary permissions are set
2024-05-14 16:06:39,687 INFO exited: server (exit status 0; expected)
2024-05-14 16:06:40,690 INFO spawned: 'server' with pid 65
2024-05-14 16:06:41,691 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

edit: followed the upgrade instructions and it's working - here's hoping the community template is updated soon

olig89 avatar May 14 '24 16:05 olig89

I never heard back from Ibracorp when I requested them to change the template. That was months ago, so I don't think they ever will update it.

jorenn92 avatar May 27 '24 08:05 jorenn92

I never heard back from Ibracorp when I requested them to change the template. That was months ago, so I don't think they ever will update it.

What is your suggestion to install this with docker compose? I lose my settings when i install with the otherway?

richardquick avatar May 27 '24 18:05 richardquick

I never heard back from Ibracorp when I requested them to change the template. That was months ago, so I don't think they ever will update it.

What is your suggestion to install this with docker compose? I lose my settings when i install with the otherway?

I'd suggest the docker-compose.yml from the installation guide. When you copy your currently exposed data to the new directory, or if you link it to the same directory, you shouldn't lose anything.

jorenn92 avatar May 28 '24 11:05 jorenn92

Closing due to inactivity

jorenn92 avatar Jul 16 '24 14:07 jorenn92