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

chown errors when starting 3.6.1 #154

Closed
nwl opened this issue Oct 24, 2022 · 6 comments · Fixed by #158
Closed

chown errors when starting 3.6.1 #154

nwl opened this issue Oct 24, 2022 · 6 comments · Fixed by #158

Comments

@nwl
Copy link

nwl commented Oct 24, 2022

Expected Behavior

Container should start without throwing chown errors

Current Behavior

Using 3.6.1, the logs show a failure to chown various directories. Downgrading to 3.6.0 and the container starts normally.
Unlike the issue at #151 , the config is not mounted on a network share but
on a single filesystem. To remove all permission-related issues, all the directories listed in docker-compose are set 777 and owned by the user/group listed in the compose file.

Steps to Reproduce

  1. Run docker-compose
  2. View docker ps and see container is unhealthy (unresponsive on port 8080)
  3. Exec'ing into the container and /bin/bash hangs after receiving input

Environment

OS: Ubuntu 22.04.1
CPU architecture: x86_64
How docker service was installed: lscr.io/linuxserver/sabnzbd:3.6.1

Command used to create docker container (run/create/compose/screenshot)

sabnzbd:
image: lscr.io/linuxserver/sabnzbd:3.6.1
volumes:
- /home/nzb/sabnzbd/:/config
- /home/nzb/monitor/:/config/monitor
- /home/nzb/Downloads/complete/:/downloads
- /home/nzb/Downloads/incomplete/:/incomplete-downloads
ports:
- "127.0.0.1:8080:8080"
environment:
- PGID=1006
- PUID=1004
- TZ=UTC
healthcheck:
test: curl --fail http://localhost:8080 || exit 1

Docker logs

[custom-init] No custom services found, skipping...
[custom-init] Legacy service folder /config/custom-services.d is empty, deleting...
[migrations] started
[migrations] no migrations found


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io

To support the app dev(s) visit:
SABnzbd: https://sabnzbd.org/donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/

GID/UID

User uid: 1004
User gid: 1006

chown: changing ownership of '/config': Operation not permitted
chown: changing ownership of '/downloads': Operation not permitted
chown: changing ownership of '/incomplete-downloads': Operation not permitted
chown: changing ownership of '/config': Operation not permitted
chown: changing ownership of '/config/.bash_history': Operation not permitted
chown: changing ownership of '/config/logs': Operation not permitted
chown: changing ownership of '/config/logs/sabnzbd.log': Operation not permitted
chown: changing ownership of '/config/logs/sabnzbd.log.1': Operation not permitted
chown: changing ownership of '/config/logs/sabnzbd.log.3': Operation not permitted
chown: changing ownership of '/config/logs/sabnzbd.error.log': Operation not permitted
chown: changing ownership of '/config/logs/sabnzbd.log.2': Operation not permitted
chown: changing ownership of '/config/logs/sabnzbd.log.5': Operation not permitted
chown: changing ownership of '/config/logs/sabnzbd.log.4': Operation not permitted
chown: changing ownership of '/config/admin': Operation not permitted
chown: changing ownership of '/config/admin/rss_data.sab': Operation not permitted
chown: changing ownership of '/config/admin/history1.db': Operation not permitted
chown: changing ownership of '/config/admin/queue10.sab': Operation not permitted
chown: changing ownership of '/config/admin/watched_data2.sab': Operation not permitted
chown: changing ownership of '/config/admin/postproc2.sab': Operation not permitted
chown: changing ownership of '/config/admin/Rating.sab': Operation not permitted
chown: changing ownership of '/config/admin/totals10.sab': Operation not permitted
chown: changing ownership of '/config/monitor': Operation not permitted
s6-rc: warning: unable to start service init-sabnzbd-config: command exited 1

@project-bot project-bot bot added this to To do in Issue & PR Tracker Oct 24, 2022
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

@aptalca
Copy link
Member

aptalca commented Oct 24, 2022

how did you install the docker service?

@todaywasawesome
Copy link

todaywasawesome commented Oct 24, 2022

Likely related to #151

@j0nnymoe
Copy link
Member

@todaywasawesome no it's not. Specifically because I mentioned in that issue to this user to start a new issue.

@nwl
Copy link
Author

nwl commented Oct 24, 2022

Docker is installed from upstream Docker packages. Running:
docker-ce 5:20.10.203-0ubuntu-jammy

@nwl nwl changed the title chown errors when starting 3.6.0 chown errors when starting 3.6.1 Oct 24, 2022
@Honken77
Copy link

Honken77 commented Nov 12, 2022

I have the same issue since I updated a few days ago. All my configs and downloads (sabnzbd, sonarr, radarr, jellyfin) lies on a NFS server. The share is setup with owner nobody:nogroup and the export is configured with all_squash. This works for all the apps but sabnzbd (which it did previously).

When I commented out my volume binds in the compose file for sabnzbd, it could start with a local volume on the docker server, so the problem is 100% related to the permissions on the folders. If I exec into the container as user abc I can create files in /config, but if I try to chown I get the same error as in the docker log. I don't see why a chown is needed, and I have no idea if that behaviour has changed in a recent build. I don't remember which image I used before I updated. I prune all images when I update.

Edit: I downgraded to 3.5.3-ls66 and it's working again. Seems every version above this one has issues. I tested both 3.7.0 and 3.6.1.

@thespad thespad linked a pull request Nov 12, 2022 that will close this issue
1 task
Issue & PR Tracker automation moved this from To do to Done Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

6 participants
@aptalca @nwl @todaywasawesome @Honken77 @j0nnymoe and others