- Minor
Recently the /var/run went full. With df -h it shows 100% disk usage on /var/run. Some of the settings screens reports that it couldn't write something into /var/run (/usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php line 714 file_put_contents($nchan_pid,implode("\n",$running)."\n") couldn't write -1 of 100 bytes).
After searching the most biggest file inside of /var/run I found a big log file from /var/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/4bdf272dde582a50c3bf76e3b0452f7923b76bcae44e3844310fde1d7cd4210a/log.json which contains following content like:
{"level":"info","msg":"Using low-level runtime /usr/bin/runc","time":"2023-01-01T22:28:44+01:00"}
{"level":"info","msg":"Using OCI specification file path: /var/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/4bdf272dde582a50c3bf76e3b0452f7923b76bcae44e3844310fde1d7cd4210a/config.json","time":"2023-01-01T22:28:44+01:00"}
{"level":"info","msg":"Auto-detected mode as 'legacy'","time":"2023-01-01T22:28:44+01:00"}
{"level":"info","msg":"Using prestart hook path: /usr/bin/nvidia-container-runtime-hook","time":"2023-01-01T22:28:44+01:00"}
{"level":"info","msg":"Applied required modification to OCI specification","time":"2023-01-01T22:28:44+01:00"}
{"level":"info","msg":"Forwarding command to runtime","time":"2023-01-01T22:28:44+01:00"}
{"level":"info","msg":"Using low-level runtime /usr/bin/runc","time":"2023-01-01T22:28:44+01:00"}
After disabling the healthcheck of the official PlexMediaServer container, the line {"level":"info","msg":"Using low-level runtime /usr/bin/runc","time":"2023-01-01T22:28:44+01:00"} won't get filled every 30 seconds. Disabling the healthcheck did prevent filling the logs.
My question is also: why does /var/run have only 32MB tmpfs?
docker-compose.yaml of plex:
services:
plex:
image: plexinc/pms-docker:latest
container_name: plex
restart: unless-stopped
runtime: nvidia
# disable healthcheck prevents logs from filing the /var/run
healthcheck:
disable: true
environment:
PLEX_CLAIM: xxxxxxxxxxxx
PLEX_UID: 99
PLEX_GID: 100
VERSION: latest
NVIDIA_DRIVER_CAPABILITIES: all
NVIDIA_VISIBLE_DEVICES: all
volumes:
# plex config
- /mnt/cache/appdata/plex/data:/data:rw
- /mnt/cache/appdata/plex/config:/config:rw
# plex transcode
- /mnt/cache/appdata/plex/transcode:/transcode:rw
# media
- type: bind
source: /mnt/storg1/plex/movies/
target: /media/movies
read_only: true
bind:
propagation: shared
- type: bind
source: /mnt/storg1/plex/series/
target: /media/series
read_only: true
bind:
propagation: shared
- type: bind
source: /mnt/storg1/plex/demo-videos/
target: /media/demo
read_only: true
bind:
propagation: shared
labels:
net.unraid.docker.icon: "/boot/config/icons/plex.png"
network_mode: host
networks:
traefik-net:
external: true
A reboot cleared the /var/run folder. When it was full, no DNS query were possible as it lost the resolv.conf config.