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] Config Folder is not using the correct User or Group owner #399

Open
1 task done
jaseiffert opened this issue Aug 16, 2024 · 6 comments
Open
1 task done

[BUG] Config Folder is not using the correct User or Group owner #399

jaseiffert opened this issue Aug 16, 2024 · 6 comments

Comments

@jaseiffert
Copy link

jaseiffert commented Aug 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The config folder owner and group owner is set to abc. Not to the PUID and PGID settings.
TrueNAS Plex Error_02

Expected Behavior

It was setting the owner and group owner to the PUID and PGID from the environment settings.
I checked and 1.40.4.8679-424562606-ls225 is the last release the worked correctly.

Steps To Reproduce

I'm using this in TruNAS Scale 24.04 and loading any version after 1.40.4.8679-424562606-ls225 will cause the problem.

Environment

- OS:Dragonfish-24.04.2
- How docker service was installed: Built into system OS

I did a custom App Install using the linuxserver Plex image.

I'm still having problems getting it to work but the new images totally break it with the abc user and group as owner of the config folder.

CPU architecture

x86-64

Docker creation

How do I add images of the gui to create the container?

Screenshot 2024-08-15 at 21-53-45 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-17-56 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-18-17 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-18-36 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-18-50 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-18-50 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-19-14 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-19-28 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-19-43 TrueNAS - truenas local
Screenshot 2024-08-15 at 22-19-56 TrueNAS - truenas local

Container logs

This is the log when it is started the second time. First time it changed permission on the config folder.

2024-08-15 16:26:10.074190-05:00╔═════════════════════════════════════════════════════════════════════════╗
2024-08-15 16:26:10.074296-05:00║                                                                         ║
2024-08-15 16:26:10.074308-05:00║           You are running this container as a non-root user:            ║
2024-08-15 16:26:10.074327-05:00║   UMASK, custom services, & docker mod functionality will be disabled   ║
2024-08-15 16:26:10.074338-05:00║      and the PUID/PGID environment variables will have no effect.       ║
2024-08-15 16:26:10.074349-05:00║                                                                         ║
2024-08-15 16:26:10.074360-05:00╚═════════════════════════════════════════════════════════════════════════╝
2024-08-15 16:26:10.171217-05:00[migrations] started
2024-08-15 16:26:10.171266-05:00[migrations] no migrations found
2024-08-15 16:26:10.178282-05:00───────────────────────────────────────
2024-08-15 16:26:10.178311-05:002024-08-15T16:26:10.178311877-05:00
2024-08-15 16:26:10.178324-05:00██╗     ███████╗██╗ ██████╗
2024-08-15 16:26:10.178348-05:00██║     ██╔════╝██║██╔═══██╗
2024-08-15 16:26:10.178363-05:00██║     ███████╗██║██║   ██║
2024-08-15 16:26:10.178375-05:00██║     ╚════██║██║██║   ██║
2024-08-15 16:26:10.178386-05:00███████╗███████║██║╚██████╔╝
2024-08-15 16:26:10.178403-05:00╚══════╝╚══════╝╚═╝ ╚═════╝
2024-08-15 16:26:10.178414-05:002024-08-15T16:26:10.178414640-05:00
2024-08-15 16:26:10.178425-05:00Brought to you by linuxserver.io
2024-08-15 16:26:10.178436-05:00───────────────────────────────────────
2024-08-15 16:26:10.178550-05:002024-08-15T16:26:10.178550534-05:00
2024-08-15 16:26:10.178586-05:00To support LSIO projects visit:
2024-08-15 16:26:10.178604-05:00https://www.linuxserver.io/donate/
2024-08-15 16:26:10.178619-05:002024-08-15T16:26:10.178619801-05:00
2024-08-15 16:26:10.178635-05:00───────────────────────────────────────
2024-08-15 16:26:10.178650-05:00GID/UID
2024-08-15 16:26:10.178665-05:00───────────────────────────────────────
2024-08-15 16:26:10.182194-05:002024-08-15T16:26:10.182194651-05:00
2024-08-15 16:26:10.182223-05:00User UID:    3003
2024-08-15 16:26:10.182236-05:00User GID:    3001
2024-08-15 16:26:10.182248-05:00───────────────────────────────────────
2024-08-15 16:26:10.183451-05:00Linuxserver.io version: 1.40.5.8854-f36c552fd-ls228
2024-08-15 16:26:10.183633-05:00Build-date: 2024-08-14T17:32:00+00:00
2024-08-15 16:26:10.183672-05:00───────────────────────────────────────
2024-08-15 16:26:10.183692-05:002024-08-15T16:26:10.183692350-05:00
2024-08-15 16:26:10.201467-05:00chown: cannot access '/config/Library': Permission denied
2024-08-15 16:26:10.201515-05:00chown: cannot access '/config/Library/Application Support': Permission denied
2024-08-15 16:26:10.202145-05:00**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
2024-08-15 16:26:10.202168-05:00**** The app may not work properly and we will not provide support for it. ****
2024-08-15 16:26:10.204116-05:00stat: cannot statx '/config/Library': Permission denied
2024-08-15 16:26:10.204274-05:00Change in ownership detected, please be patient while we chown existing files
2024-08-15 16:26:10.204299-05:00This could take some time
2024-08-15 16:26:10.208405-05:00/usr/bin/find: unknown predicate `-R'
2024-08-15 16:26:10.208501-05:00**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
2024-08-15 16:26:10.208532-05:00**** The app may not work properly and we will not provide support for it. ****
2024-08-15 16:26:10.213070-05:00/usr/bin/find: ‘/config/*’: Permission denied
2024-08-15 16:26:10.213208-05:00**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
2024-08-15 16:26:10.213239-05:00**** The app may not work properly and we will not provide support for it. ****
2024-08-15 16:26:10.223054-05:00Temporarily starting Plex Media Server.
2024-08-15 16:26:10.225922-05:00Waiting for Plex to generate its config
2024-08-15 16:26:10.226544-05:00s6-applyuidgid: fatal: unable to set supplementary group list: Operation not permitted
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.

@jaseiffert jaseiffert changed the title [BUG] Config Folder is not using the correct User Group [BUG] Config Folder is not using the correct User or Group owner Aug 16, 2024
@j0nnymoe
Copy link
Member

You can copy/paste screenshots into GitHub issues.

@Nullvoid3771
Copy link

@jaseiffert have you tried setting the config folder to recursively set the the permissions to 0777 that way it doesn’t matter. (Maybe not the best approach for security)

@darthShadow
Copy link
Contributor

From https://docs.linuxserver.io/misc/support-policy/#unsupported-and-known-to-be-broken:

Use of the user directive to run containers as a custom UID/GID

You’re essentially running a known broken configuration by having the "Configure Container User & Group ID" option enabled.

Even the container logs say the same:

You are running this container as a non-root user:
UMASK, custom services, & docker mod functionality will be disabled
and the PUID/PGID environment variables will have no effect.

@jaseiffert
Copy link
Author

@darthShadow Thanks a whole lot!! Removing that setting made Plex work and I upgraded to the latest version of the plex docker container and it still works so I have to say that it was my configuration and not the Plex Docker containers after 225 that was the problem. The owner and group owner still show abc but when looking at the id's it's the same that I put in the configuration of 3003 and 3001. Finally after all this time I have a Plex screen to look at and login. Now I just need to get my library folders to show up so I can select them. I see them in the POD Shell but not in the Plex program.

Thanks,

Jeffery

@LinuxServer-CI
Copy link
Contributor

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.

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

No branches or pull requests

5 participants