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

ZNC - unable to exec run: Permission denied #3167

Closed
1 task done
Faustvii opened this issue Jul 13, 2022 · 5 comments · Fixed by #3168
Closed
1 task done

ZNC - unable to exec run: Permission denied #3167

Faustvii opened this issue Jul 13, 2022 · 5 comments · Fixed by #3168
Labels
bug Something isn't working

Comments

@Faustvii
Copy link

App Name

znc

SCALE Version

22.02.1

App Version

1.8.2_2.0.14

Application Events

2022-07-13 20:11:56
Startup probe failed: dial tcp 172.16.34.116:6501: connect: connection refused
2022-07-13 20:11:43
Started container test-znc
2022-07-13 20:11:43
Created container test-znc
2022-07-13 20:11:22
Applied LoadBalancer DaemonSet ix-test-znc/svclb-test-znc
2022-07-13 20:11:39
Container image "tccr.io/truecharts/znc:v1.8.2" already present on machine
2022-07-13 20:11:38
Started container prepare
2022-07-13 20:11:38
Created container prepare
2022-07-13 20:11:34
Container image "ghcr.io/truecharts/multi-init:v0.0.1@sha256:41185dcea1e6f6a035d8090da40aecc6a69cef66b91dc1332a90c9d22861d367" already present on machine
2022-07-13 20:11:34
Add eth0 [172.16.34.116/16] from ix-net
2022-07-13 20:11:34
LoadBalancer Ingress IP addresses updated: 192.168.1.94
2022-07-13 20:11:34
Started container lb-tcp-6501
2022-07-13 20:11:33
Created container lb-tcp-6501
2022-07-13 20:11:27
Container image "rancher/klipper-lb:v0.3.4" already present on machine
2022-07-13 20:11:27
Add eth0 [172.16.34.115/16] from ix-net
Successfully assigned ix-test-znc/test-znc-59bd7d85d-2pbz7 to ix-truenas
2022-07-13 20:11:24
Successfully provisioned volume pvc-48466356-1961-4026-9598-6df8d0e528de
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-07-13 20:11:22
Created pod: test-znc-59bd7d85d-2pbz7
2022-07-13 20:11:22
Scaled up replica set test-znc-59bd7d85d to 1
Successfully assigned ix-test-znc/svclb-test-znc-gtr7c to ix-truenas
2022-07-13 20:11:22
Created pod: svclb-test-znc-gtr7c
2022-07-13 20:11:22
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2022-07-13 20:11:22
External provisioner is provisioning volume for claim "ix-test-znc/test-znc-config"

Application Logs

2022-07-13T18:11:43.412054178Z /package/admin/s6-overlay/libexec/preinit: info: read-only root
2022-07-13T18:11:43.412085373Z /package/admin/s6-overlay/libexec/preinit: info: writable /run. Checking for executability.
2022-07-13T18:11:43.451552490Z s6-rc: info: service s6rc-oneshot-runner: starting
2022-07-13T18:11:43.452937036Z s6-rc: info: service s6rc-oneshot-runner successfully started
2022-07-13T18:11:43.453101677Z s6-rc: info: service fix-attrs: starting
2022-07-13T18:11:43.453275000Z s6-rc: info: service 00-legacy: starting
2022-07-13T18:11:43.454706569Z s6-rc: info: service 00-legacy successfully started
2022-07-13T18:11:43.455488677Z s6-rc: info: service fix-attrs successfully started
2022-07-13T18:11:43.455607063Z s6-rc: info: service legacy-cont-init: starting
2022-07-13T18:11:43.457173299Z cont-init: info: running /etc/cont-init.d/01-envfile
2022-07-13T18:11:43.460003444Z cont-init: info: /etc/cont-init.d/01-envfile exited 0
2022-07-13T18:11:43.460018961Z cont-init: info: running /etc/cont-init.d/01-migrations
2022-07-13T18:11:43.460869244Z [migrations] started
2022-07-13T18:11:43.460903384Z [migrations] no migrations found
2022-07-13T18:11:43.460972825Z cont-init: info: /etc/cont-init.d/01-migrations exited 0
2022-07-13T18:11:43.460980340Z cont-init: info: running /etc/cont-init.d/02-tamper-check
2022-07-13T18:11:43.466034723Z cont-init: info: /etc/cont-init.d/02-tamper-check exited 0
2022-07-13T18:11:43.466061242Z cont-init: info: running /etc/cont-init.d/10-adduser
2022-07-13T18:11:43.470570517Z groupmod: /etc/group.76: Read-only file system
2022-07-13T18:11:43.470591543Z groupmod: cannot lock /etc/group; try again later.
2022-07-13T18:11:43.471800763Z usermod: /etc/passwd.77: Read-only file system
2022-07-13T18:11:43.471818424Z usermod: cannot lock /etc/passwd; try again later.
2022-07-13T18:11:43.471941269Z 
2022-07-13T18:11:43.471956185Z -------------------------------------
2022-07-13T18:11:43.471960832Z           _         ()
2022-07-13T18:11:43.471965473Z          | |  ___   _    __
2022-07-13T18:11:43.471969381Z          | | / __| | |  /  \
2022-07-13T18:11:43.471978422Z          | | \__ \ | | | () |
2022-07-13T18:11:43.471982784Z          |_| |___/ |_|  \__/
2022-07-13T18:11:43.471986531Z 
2022-07-13T18:11:43.471990049Z 
2022-07-13T18:11:43.471996842Z Brought to you by linuxserver.io
2022-07-13T18:11:43.472004035Z -------------------------------------
2022-07-13T18:11:43.472010262Z 
2022-07-13T18:11:43.472014111Z To support LSIO projects visit:
2022-07-13T18:11:43.472017835Z https://www.linuxserver.io/donate/
2022-07-13T18:11:43.472021381Z -------------------------------------
2022-07-13T18:11:43.472024968Z GID/UID
2022-07-13T18:11:43.472031502Z -------------------------------------
2022-07-13T18:11:43.473656202Z 
2022-07-13T18:11:43.473671680Z User uid:    911
2022-07-13T18:11:43.473676334Z User gid:    1001
2022-07-13T18:11:43.473680592Z -------------------------------------
2022-07-13T18:11:43.473690576Z 
2022-07-13T18:11:43.475388381Z chown: changing ownership of '/app': Read-only file system
2022-07-13T18:11:43.476803451Z chown: changing ownership of '/defaults': Read-only file system
2022-07-13T18:11:43.476989071Z cont-init: info: /etc/cont-init.d/10-adduser exited 1
2022-07-13T18:11:43.477000795Z cont-init: info: running /etc/cont-init.d/20-config
2022-07-13T18:11:43.477167494Z /package/admin/s6-overlay-3.1.0.1/etc/s6-rc/scripts/cont-init: line 14: /etc/cont-init.d/20-config: Permission denied
2022-07-13T18:11:43.477254183Z cont-init: info: /etc/cont-init.d/20-config exited 126
2022-07-13T18:11:43.477267443Z cont-init: info: running /etc/cont-init.d/90-custom-folders
2022-07-13T18:11:43.482860611Z cont-init: info: /etc/cont-init.d/90-custom-folders exited 0
2022-07-13T18:11:43.482952457Z cont-init: info: running /etc/cont-init.d/99-custom-files
2022-07-13T18:11:43.490292928Z [custom-init] no custom files found exiting...
2022-07-13T18:11:43.490434784Z cont-init: info: /etc/cont-init.d/99-custom-files exited 0
2022-07-13T18:11:43.491052430Z s6-rc: info: service legacy-cont-init successfully started
2022-07-13T18:11:43.491135499Z s6-rc: info: service legacy-services: starting
2022-07-13T18:11:43.493194025Z services-up: info: copying legacy longrun znc (no readiness notification)
2022-07-13T18:11:43.494327750Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:11:43.494345299Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:11:43.494577452Z s6-rc: info: service legacy-services successfully started
2022-07-13T18:11:43.494604226Z s6-rc: info: service 99-ci-service-check: starting
2022-07-13T18:11:43.495527585Z [ls.io-init] done.
2022-07-13T18:11:43.495597529Z s6-rc: info: service 99-ci-service-check successfully started
2022-07-13T18:11:53.501388534Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:11:53.501481543Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:12:03.510250313Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:12:03.510361364Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:12:13.517513120Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:12:13.517593377Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:12:23.525289471Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:12:23.525344267Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:12:33.534169992Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:12:33.534260488Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:12:43.541064624Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:12:43.541105476Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:12:53.549517577Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:12:53.549602818Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:13:03.557246683Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:13:03.557297195Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:13:13.566388683Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:13:13.566436059Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:13:23.573051169Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:13:23.573094661Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:13:33.581414481Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:13:33.581544178Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:13:43.587886615Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:13:43.587985403Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:13:53.597594823Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:13:53.597716905Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:14:03.605343272Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:14:03.605442974Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:14:13.614511547Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:14:13.614628681Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:14:23.623354228Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:14:23.623447712Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:14:33.633388767Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:14:33.633469931Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:14:43.641441529Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:14:43.641522912Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:14:53.650514284Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:14:53.650601033Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:15:03.657110243Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:15:03.657164473Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:15:13.665277038Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:15:13.665336199Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:15:23.673144389Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:15:23.673197003Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:15:33.681126577Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:15:33.681162227Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:15:43.690957281Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:15:43.691021445Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:15:53.701396810Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:15:53.701484620Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds
2022-07-13T18:16:03.709034218Z s6-supervise znc (child): fatal: unable to exec run: Permission denied
2022-07-13T18:16:03.709089856Z s6-supervise znc: warning: unable to spawn ./run - waiting 10 seconds

Application Configuration

Application Name: test-znc
Version: 2.0.14
:
    Show Advanced Controller Settings: false
    Show Expert Configuration Options: false
Timezone: 'Europe/Copenhagen' timezone
Show Expert Config: false
Configure Service(s):
    Main Service:
        Service Type: Simple
        Service's Port(s) Configuration:
            Main Service Port Configuration:
                Port: 6501
                Show Advanced settings: false
Show Expert Config: false
Integrated Persistent Storage:
    App Config Storage:
        Type of Storage: PVC (simple)
        readOnly: false
        Show Advanced Options: false
:
    Main Ingress:
        Enable Ingress: false
        Show Expert Configuration Options: false
Container Security Settings:
    Change PUID / UMASK values: false
Show Advanced Security Settings: false
Pod Security Context:
    runAsUser: 0
    runAsGroup: 0
    fsGroup: 568
    When should we take ownership?: OnRootMismatch
Set Custom Resource Limits/Requests (Advanced): false
GPU Configuration:
    GPU Resource (gpu.intel.com/i915): Allocate 0 gpu.intel.com/i915 GPU
:
    VPN:
        Type: disabled
    Codeserver:
        enabled: false
    Promtail:
        enabled: false
    Netshoot:
        enabled: false

Describe the bug

Starting ZNC with default settings does not work.

To Reproduce

  1. Install ZNC
  2. Give it a name
  3. Click next to everything else and confirm settings
  4. Fails to start because of permission issue

Expected Behavior

I would expect it to start with default settings, which it seemed to do in previous versions. (I sadly can't remember the previous chart version that I saw working)

Screenshots

image

Additional Context

If you modify the default settings and disable ReadOnly Root Filesystem it seems work again.
image

I've read and agree with the following

  • I've checked all open and closed issues and my issue is not there.
@Faustvii Faustvii added the bug Something isn't working label Jul 13, 2022
@Faustvii
Copy link
Author

Faustvii commented Jul 13, 2022

FYI Looking at the this https://github.com/truecharts/apps/runs/7310994706?check_suite_focus=true
It seems to not only be but also

  • Mylar
  • Lazylibrarian
  • synclounge
  • embystat

@stavros-k
Copy link
Collaborator

@all-contributors please add @Faustvii for bug

@allcontributors
Copy link
Contributor

@stavros-k

I've put up a pull request to add @Faustvii! 🎉

@stavros-k
Copy link
Collaborator

It looks like several LSIO apps.. Probably they changed base image?! Not sure

@truecharts-admin
Copy link
Collaborator

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists

@truecharts truecharts locked and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants