Error in every linuxserver docker container

Hello,
when I run almost any linuxserver container, this error is displayed all the time:
s6-applyuidgid: fatal: unable to exec / usr / bin / SOME by service: Permission denied

It happens at: qbittorrent, mariadb, heimdall.
Example of qbittorrent log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-envfile: executing... ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing... ,
,
-------------------------------------,
          _         (),
         | |  ___   _    __,
         | | / __| | |  /  \ ,
         | | \__ \ | | | () |,
         |_| |___/ |_|  \__/,
,
,
Brought to you by linuxserver.io,
-------------------------------------,
,
To support LSIO projects visit:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid:    998,
User gid:    100,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing... ,
[cont-init.d] 30-config: exited 0.,
[cont-init.d] 99-custom-scripts: executing... ,
[custom-init] no custom files found exiting...,
[cont-init.d] 99-custom-scripts: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
s6-applyuidgid: fatal: unable to exec /usr/bin/qbittorrent-nox: Permission denied,
s6-applyuidgid: fatal: unable to exec /usr/bin/qbittorrent-nox: Permission denied,
s6-applyuidgid: fatal: unable to exec /usr/bin/qbittorrent-nox: Permission denied,
s6-applyuidgid: fatal: unable to exec /usr/bin/qbittorrent-nox: Permission denied,

Insert command:

docker create \
  --name=qbittorrent \
  -e PUID=998 \
  -e PGID=100 \
  -e TZ=Europe/Prague \
  -e UMASK_SET=022 \
  -e WEBUI_PORT=8080 \
  -p 6881:6881 \
  -p 6881:6881/udp \
  -p 8000:8080 \
  -v /srv/dev-disk-by-label-Zaloha/AppData/qbittorrent:/config \
  -v /srv/dev-disk-by-label-Zaloha/Downloads:/downloads \
  --restart always \
  linuxserver/qbittorrent

Can you help me please?

Sorry you’re having issues! Can you please tell us what operating system and version of the OS your docker host is running? Can you also provide your docker version? It looks like you are having permissions issues, so you may want to, on your host, run
grep 998 /etc/passwd
grep 100 /etc/group

Verify this returns the result you expect and then check your permissions/ownership on
/srv/dev-disk-by-label-Zaloha/AppData/qbittorrent

Thank you for answer. I hope I found out everything needed:

  • It works on:
    Raspberry PI 4 4GB -> Raspbian (2019-09-26 buster - lite) -> openmediavault (5.3.9-1) -> docker (19.03.8) -> portainer (1.23.2).

  • Authorization:

root @ OMV: ~ # grep 998 / etc / passwd
admin: x: 998: 100: openmediavault WebGUI Administrator: / home / admin / usr / sbin / nologin
root @ OMV: ~ # grep 100 / etc / group
users: x: 100: Vejv-cz
  • Permissions for / srv / dev-disk-by-label-Backup / AppData / qbittorrent:
drwxrwxr-x + 4 admin users 4095 Apr 20 13:07 qbittorrent

alright, the permissions look good; i will assume the issue is caused by portainer. Try using compose directly from the cli and report back. portainer causes a multitude of issues.

I apologize for the delay.

I completely uninstalled qbittorrent (image, container and / srv / dev-disk-by-label-Backup / AppData / qbittorrent)

I used the installation configuration I sent more. Installing as always via ssh (PuTTY).

Again the same error.

root @ OMV: ~ # docker container logs -details qbittorrent
 [s6-init] making user-provided files available at /var/run/s6/etc...exited 0.
 [s6-init] ensure that the user's files have the correct perms ... exited 0.
 [fix-attrs.d] applying ownership & permissions fixes ...
 [fix-attributes.d] done.
 [cont-init.d] executing container initialization scripts ...
 [cont-init.d] 01-envfile: executing ...
 [cont-init.d] 01-envfile: exited 0
 [cont-init.d] 10-adduser: executing ...

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


 Brought to You by linuxserver.io
 -------------------------------------

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

 User uid: 988
 User gid: 100
 -------------------------------------

 [cont-init.d] 10-adduser: exited 0
 [cont-init.d] 30-config: executing ...
 [cont-init.d] 30-config: exited 0
 [cont-init.d] 99-custom-scripts: executing ...
 [custom-init] no custom files found ...
 [cont-init.d] 99-custom-scripts: exited 0
 [cont-init.d] done.
 [services.d] starting services
 [services.d] done.
s6-applyuidgid: fatal: unable to exec /usr/bin/qbittorrent-nox: Permission denied
s6-applyuidgid: fatal: unable to exec /usr/bin/qbittorrent-nox: Permission denied

Could it be due to mounting drive as noexec? maybe?

mm i bet this is it, i just found that omv mounts all disks as noexec… (why? lol)

you could try mount -o remount,exec <mountpoint>

I think I deleted noexec in the settings. I used to install the nextcloud according to the instructions: https://youtu.be/T_2csDJFa2k?t=289.
This is deleted in the OMV configuration file(/etc/openmediavault/config.xml):

      <mntent>
        <uuid>130932c5-7ec5-4f91-9f29-a2124da6e439</uuid>
        <fsname>/dev/disk/by-label/Data</fsname>
        <dir>/srv/dev-disk-by-label-Data</dir>
        <type>ext4</type>
        <opts>defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
        <freq>0</freq>
        <passno>2</passno>
        <hidden>0</hidden>
      </mntent>
      <mntent>
        <uuid>b119776b-2de6-4bb9-85b9-20432446ffd0</uuid>
        <fsname>/dev/disk/by-label/Video</fsname>
        <dir>/srv/dev-disk-by-label-Video</dir>
        <type>ext4</type>
        <opts>defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
        <freq>0</freq>
        <passno>2</passno>
        <hidden>0</hidden>
      </mntent>
      <mntent>
        <uuid>ac258068-5394-49cc-8c26-b541e3269640</uuid>
        <fsname>/dev/disk/by-label/Zaloha</fsname>
        <dir>/srv/dev-disk-by-label-Zaloha</dir>
        <type>ext4</type>
        <opts>defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
        <freq>0</freq>
        <passno>2</passno>
        <hidden>0</hidden>
      </mntent>
    </fstab>
    <shares>

Unfortunately, I do not know exactly how to do what you write:

Did I do it right ?:

root@OMV:~# mount -o remount /dev/sdb1
root@OMV:~# exec /dev/sdb1
-bash: /dev/sdb1: Permission denied
-bash: exec: /dev/sdb1: cannot execute: Permission denied

Could this help?:

/dev/root / ext4 rw,noatime,nodiratime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1867780k,nr_inodes=117763,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
sunrpc /run/rpc_pipefs rpc_pipefs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime 0 0
/dev/mmcblk0p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
/dev/root /var/folder2ram/var/log ext4 rw,noatime,nodiratime 0 0
folder2ram /var/log tmpfs rw,relatime 0 0
/dev/sdb1 /srv/dev-disk-by-label-Zaloha ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/sdb1 /sharedfolders/Zaloha ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/sdb1 /sharedfolders/AppData ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/root /var/folder2ram/var/tmp ext4 rw,noatime,nodiratime 0 0
folder2ram /var/tmp tmpfs rw,relatime 0 0
/dev/root /var/folder2ram/var/lib/openmediavault/rrd ext4 rw,noatime,nodiratime 0 0
folder2ram /var/lib/openmediavault/rrd tmpfs rw,relatime 0 0
/dev/root /var/folder2ram/var/spool ext4 rw,noatime,nodiratime 0 0
folder2ram /var/spool tmpfs rw,relatime 0 0
/dev/root /var/folder2ram/var/lib/rrdcached ext4 rw,noatime,nodiratime 0 0
folder2ram /var/lib/rrdcached tmpfs rw,relatime 0 0
/dev/sda1 /srv/dev-disk-by-label-Data ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/sda1 /sharedfolders/Data ext4 rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/root /var/folder2ram/var/lib/monit ext4 rw,noatime,nodiratime 0 0
folder2ram /var/lib/monit tmpfs rw,relatime 0 0
/dev/root /var/folder2ram/var/cache/samba ext4 rw,noatime,nodiratime 0 0
folder2ram /var/cache/samba tmpfs rw,relatime 0 0

PS:Openmediavault and the system runs on my sd card. I have the Docker and all other application configuration folders on the external drive in the AppData folder.

PS2: I’m sorry for ignorance, but I’m a newbie with Linux.

your command wasn’t right, but from your mount output, it doesnt look like /sharedfolders/Zaloha is noexec.

I’m not sure what’s going on in this case. You might be better suited to join us on discord and see if anyone else has thoughts.