Steam-Headless / docker-steam-headless

A Headless Steam Docker image supporting NVIDIA GPU and accessible via Web UI
GNU General Public License v2.0
908 stars 89 forks source link

[Bug]: sed: couldn't open temporary file /etc/cont-init.d/sediMHmfy: Permission denied #158

Closed My-Random-Thoughts closed 1 month ago

My-Random-Thoughts commented 1 month ago

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

Relevant log output

No response

My-Random-Thoughts commented 1 month ago

Why do I fix things just after logging a ticket!

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