Docker - Unable to connect to server using socket at /run/zm/zmdc.sock

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
gtzm
Posts: 2
Joined: Thu Nov 23, 2023 10:12 am

Docker - Unable to connect to server using socket at /run/zm/zmdc.sock

Post by gtzm »

Hello I using dlandon/zoneminder docker image. I use /dev/video0 (laptop cam) . The video gets started after a long time and at the start (booted), or not at all. I get these errors

Date/Time
Component Server PID Level Message File Line
2023-11-23 12:19:31 zmtelemetry 1048 WAR Telemetry server returned HTTP POST error code: 301 zmtelemetry.pl
2023-11-23 12:19:31 zmtelemetry 1032 WAR Telemetry server returned HTTP POST error code: 301 zmtelemetry.pl
2023-11-23 12:19:30 zmstats 1052 INF Stats Daemon starting in 30 seconds zmstats.pl
2023-11-23 12:19:27 zmstats 1022 INF Stats Daemon starting in 30 seconds zmstats.pl
2023-11-23 12:19:12 zmdc 1052 INF 'zmstats.pl' started at 23/11/23 12:19:12 zmdc.pl
2023-11-23 12:19:12 zmdc 1004 INF 'zmstats.pl' starting at 23/11/23 12:19:12, pid = 1052 zmdc.pl
2023-11-23 12:19:12 zmdc 1048 INF 'zmtelemetry.pl' started at 23/11/23 12:19:12 zmdc.pl
2023-11-23 12:19:12 zmdc 1004 INF 'zmtelemetry.pl' starting at 23/11/23 12:19:12, pid = 1048 zmdc.pl
2023-11-23 12:19:11 zmdc 1004 INF Socket should be open at /run/zm/zmdc.sock zmdc.pl
2023-11-23 12:19:11 zmpkg 990 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl start zmwatch.pl", output is "Unable to connect to server using socket at /run/zm/zmdc.sock", status is 255 zmpkg.pl
2023-11-23 12:19:11 zmdc 873 INF 'zmtelemetry.pl' starting at 23/11/23 12:19:11, pid = 1032 zmdc.pl
2023-11-23 12:19:11 zmdc 1032 INF 'zmtelemetry.pl' started at 23/11/23 12:19:11 zmdc.pl
2023-11-23 12:19:11 zmdc 873 INF Starting pending process, zmtelemetry.pl zmdc.pl
2023-11-23 12:19:11 zmpkg 990 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl start zmfilter.pl --filter_id=2 --daemon", output is "Unable to connect to server using socket at /run/zm/zmdc.sock", status is 255 zmpkg.pl
2023-11-23 12:19:10 zmpkg 990 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl start zmfilter.pl --filter_id=1 --daemon", output is "Unable to connect to server using socket at /run/zm/zmdc.sock", status is 255 zmpkg.pl
2023-11-23 12:19:10 zmdc 1022 INF 'zmstats.pl' started at 23/11/23 12:19:10 zmdc.pl
2023-11-23 12:19:10 zmdc 873 INF 'zmtelemetry.pl' exited, signal 14 zmdc.pl
2023-11-23 12:19:10 zmdc 873 INF 'zmstats.pl' starting at 23/11/23 12:19:10, pid = 1022 zmdc.pl
2023-11-23 12:19:10 zmdc 873 INF Starting pending process, zmstats.pl zmdc.pl
2023-11-23 12:19:10 zmdc 873 INF 'zmstats.pl' exited, signal 14 zmdc.pl
2023-11-23 12:19:10 zmdc 1004 INF Server starting at 23/11/23 12:19:10 zmdc.pl
2023-11-23 12:19:10 zmpkg 990 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl start zmc -d /dev/video0", output is "Unable to connect to server using socket at /run/zm/zmdc.sock", status is 255 zmpkg.pl
2023-11-23 12:19:09 zmpkg 990 INF Single server configuration detected. Starting up services. zmpkg.pl
2023-11-23 12:19:09 zmpkg 990 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl startup", output is "Starting server", status is 255 zmpkg.pl
2023-11-23 12:19:09 zmdc 1002 FAT Can't connect to zmdc.pl server process at /run/zm/zmdc.sock: No such file or directory zmdc.pl
2023-11-23 12:19:01 zmpkg 990 INF Command: start zmpkg.pl
2023-11-23 12:19:01 zmpkg 990 INF Sanity checking States table... zmpkg.pl
2023-11-23 12:18:07 zmtelemetry 915 WAR Telemetry server returned HTTP POST error code: 301 zmtelemetry.pl
2023-11-23 12:18:05 zmstats 920 INF Stats Daemon starting in 30 seconds zmstats.pl
2023-11-23 12:17:56 zmdc 920 INF 'zmstats.pl' started at 23/11/23 12:17:56 zmdc.pl
2023-11-23 12:17:56 zmdc 873 INF 'zmstats.pl' starting at 23/11/23 12:17:56, pid = 920 zmdc.pl
2023-11-23 12:17:56 zmdc 915 INF 'zmtelemetry.pl' started at 23/11/23 12:17:56 zmdc.pl
2023-11-23 12:17:56 zmdc 873 INF 'zmtelemetry.pl' starting at 23/11/23 12:17:56, pid = 915 zmdc.pl
2023-11-23 12:17:55 zmpkg 861 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl start zmwatch.pl", output is "Unable to connect to server using socket at /run/zm/zmdc.sock", status is 255 zmpkg.pl
2023-11-23 12:17:55 zmdc 873 INF Socket should be open at /run/zm/zmdc.sock zmdc.pl
2023-11-23 12:17:55 zmpkg 861 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl start zmfilter.pl --filter_id=2 --daemon", output is "Unable to connect to server using socket at /run/zm/zmdc.sock", status is 255 zmpkg.pl
2023-11-23 12:17:54 zmpkg 861 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl start zmfilter.pl --filter_id=1 --daemon", output is "Unable to connect to server using socket at /run/zm/zmdc.sock", status is 255 zmpkg.pl
2023-11-23 12:17:54 zmpkg 861 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl start zmc -d /dev/video0", output is "Unable to connect to server using socket at /run/zm/zmdc.sock", status is 255 zmpkg.pl
2023-11-23 12:17:54 zmdc 873 INF Server starting at 23/11/23 12:17:54 zmdc.pl
2023-11-23 12:17:54 zmpkg 861 INF Single server configuration detected. Starting up services. zmpkg.pl
2023-11-23 12:17:54 zmpkg 861 ERR Unable to run "sudo -u www-data /usr/bin/zmdc.pl startup", output is "Starting server", status is 255 zmpkg.pl
2023-11-23 12:17:54 zmdc 871 FAT Can't connect to zmdc.pl server process at /run/zm/zmdc.sock: No such file or directory zmdc.pl
2023-11-23 12:17:45 zmpkg 861 INF Command: start zmpkg.pl
2023-11-23 12:17:45 zmpkg 861 INF Sanity checking States table... zmpkg.pl
2023-11-23 11:48:22 zmdc 1177 INF 'zmwatch.pl' exited, signal 14 zmdc.pl

this is the dockerfile
version: '3.1'
services:

zm:
container_name: zm-dlandon
image: dlandon/zoneminder
restart: always
stop_grace_period: 45s
shm_size: '1g'
ports:
- 8082:80
- 8443:443/tcp
- 9000:9000/tcp
network_mode: "bridge"
volumes:
- /home/DISKS/800g/dockerzone/dlandon:/config
- /home/DISKS/800g/dockerzone/dlandon/data:/var/cache/zoneminder
- /root/.Xauthority:/root/.Xauthority:rw
- /tmp/.X11-unix:/tmp/.X11-unix
- type: tmpfs
target: /dev/shm
tmpfs:
size: 1000000000
env_file:
- zmymlenv
# environment:
# - ZM_SERVER_HOST=zoneminder1
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/video0:/dev/video0
stdin_open: true
tty: true
# entrypoint: /bin/bash

tried to put ZM_PATH_SOCKS=/run/zm in /etc/zm/zm.conf but nothing changed. /run/zm/zmdc.sock exists and permissions are 777 (tried also with zoneminder-base but got similar errors). Any clues?
gtzm
Posts: 2
Joined: Thu Nov 23, 2023 10:12 am

Re: Docker - Unable to connect to server using socket at /run/zm/zmdc.sock

Post by gtzm »

already done all these
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Docker - Unable to connect to server using socket at /run/zm/zmdc.sock

Post by dougmccrary »

Post by ClovisAufderhar
is probably a bot. We'll see...
mikb
Posts: 661
Joined: Mon Mar 25, 2013 12:34 pm

Re: Docker - Unable to connect to server using socket at /run/zm/zmdc.sock

Post by mikb »

dougmccrary wrote: Thu Dec 21, 2023 2:12 am Post by ClovisAufderhar
is probably a bot. We'll see...
Good instinct! It was edited later to add the secret sauce, which is why it's now gone.
Post Reply