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]: sed: couldn't open temporary file /etc/cont-init.d/sediMHmfy: Permission denied #158

Closed
My-Random-Thoughts opened this issue Aug 14, 2024 · 1 comment
Labels
status:awaiting-triage type:bug Something isn't working

Comments

@My-Random-Thoughts
Copy link

My-Random-Thoughts commented Aug 14, 2024

Describe the Bug

Getting the following error in my log files after initial deploy...

Build: [2024-08-10 02:48:26] [master] [860451da74b397385f1b1658545d2bb891aa8e46] [debian]
[ /etc/cont-init.d/10-setup_user.sh: executing... ]
sed: couldn't open temporary file /etc/cont-init.d/sediMHmfy: Permission denied

It's repeated eight times, then stops. The file name is randomly generated.

Steps to Reproduce

No response

Expected Behavior

It should have write access to itself?!

Screenshots

No response

Relevant Settings

Compose file:

name: steam
services:
    steam:
        image: josh5/steam-headless:latest
        container_name: steam
        restart: unless-stopped
        network_mode: bridge
    
        ports:
            - 8083:8083

        volumes:
            - /home/docker/steam/home:/home/default
            - /home/docker/steam/X11-unix/:/tmp/.X11-unix/

        environment:
            - PUID=1000
            - PGID=1000
            - TZ=Europe/London

            - DISPLAY=':55'
            - USER_PASSWORD=Passw0rd
            - MODE=primary
            - WEB_UI_MODE=vnc
            - ENABLE_VNC_AUDIO=false
            - PORT_NOVNC_WEB=8083
            - ENABLE_STEAM=true
            - STEAM_ARGS=-silent
            - ENABLE_SUNSHINE=false
            - ENABLE_EVDEV_INPUTS=true
            - FORCE_X11_DUMMY_CONFIG=true

        cap_add:
            - NET_ADMIN
            - SYS_ADMIN
            - SYS_NICE
        security_opt:
            - seccomp:unconfined
            - apparmor:unconfined

        user: 1000:1000

        devices:
            - /dev/fuse
            - /dev/uinput
            - /dev/dri/card0
            - /dev/dri/renderD128

        device_cgroup_rules:
            - 'c 13:* rmw'

        deploy:
            resources:
                limits:
                    cpus: "1"
                    memory: 2048m

Version

Build: [2024-08-10 02:48:26] [master] [860451da74b397385f1b1658545d2bb891aa8e46] [debian]

Platform

  • Debian GNU/Linux - 12 (bookworm)
  • 6.1.0-18-amd64 unknown unknown GNU/Linux (Intel NUC NUC13ANKi7)
  • Docker version 27.1.2, build d01f264
  • Docker Compose version v2.29.1

Relevant log output

No response

@My-Random-Thoughts
Copy link
Author

Why do I fix things just after logging a ticket!

FIX: I just removed user: 1000:1000 from my compose file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting-triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant