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

Data directory issue when using docker-compose #1082

Open
richardquick opened this issue May 8, 2024 · 8 comments
Open

Data directory issue when using docker-compose #1082

richardquick opened this issue May 8, 2024 · 8 comments

Comments

@richardquick
Copy link

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

@jorenn92
Copy link
Owner

jorenn92 commented May 8, 2024

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.

@richardquick
Copy link
Author

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

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

thank you!

@lediszep
Copy link

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

@olig89
Copy link

olig89 commented May 14, 2024

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

@jorenn92
Copy link
Owner

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.

@richardquick
Copy link
Author

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?

@jorenn92
Copy link
Owner

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.

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

No branches or pull requests

4 participants