I'm running ZM 1.36.33 in a Ubuntu 22.04 container in Proxmox. (Not Turnkey ZoneMinder)
Basically, trying to get an additional video storage going, I added these line to:
Host
Code: Select all
mp0: /mnt/pve/ZMstore,mp=/mnt/ZoneStorage
addgroup --gid 100033 zmgroup
chgrp -R zmgroup /mnt/pve/ZMstore
chmod -R 2775 /mnt/pve/ZMstore
setfacl -Rm g:100033:rwx,d:g:100033:rwx /mnt/pve/ZMstore
Code: Select all
addgroup --gid 100033 zmgroup
usermod -aG zmgroup root
The ZoneStorage directory works now but I can't change the run state. I get this:
root@Zoneminder:/# systemctl status zoneminder
* zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Wed 2024-07-17 17:05:04 EDT; 2h 55min ago
Process: 4692 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)
CPU: 136ms
Jul 17 17:05:04 ZoneMinder systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
If I start and stop Zoneminder from the GUI I get this even though it remains running:
root@Zoneminder:/# journalctl -xeu zoneminder.service
--
-- The job identifier is 37174.
Jul 17 17:04:55 Zoneminder sudo[4698]: root : true : Invalid argument ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=true
Jul 17 17:04:55 Zoneminder su[4700]: (to www-data) root on none
Jul 17 17:04:55 Zoneminder su[4700]: pam_unix(su:session): session opened for user www-data(uid=33) by (uid=0)
Jul 17 17:04:55 Zoneminder su[4700]: pam_unix(su:session): session closed for user www-data
Jul 17 17:04:55 Zoneminder su[4703]: (to www-data) root on none
Jul 17 17:04:55 Zoneminder su[4703]: pam_unix(su:session): session opened for user www-data(uid=33) by (uid=0)
Jul 17 17:04:55 Zoneminder su[4703]: pam_unix(su:session): session closed for user www-data
Jul 17 17:04:55 Zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit zoneminder.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jul 17 17:04:55 Zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
Jul 17 17:04:55 Zoneminder systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: A start job for unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit zoneminder.service has finished with a failure.
--
-- The job identifier is 37174 and the job result is failed.
Jul 17 17:05:04 Zoneminder systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
-- Subject: A stop job for unit zoneminder.service has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit zoneminder.service has finished.
--
-- The job identifier is 37403 and the job result is done.
Keep in mind that even though it says Failed to start, ZoneMinder is still running and recording.
Is the problem occurring because the storage is not www-data:www-data?
root@Zoneminder:/# ls -la /mnt
total 16
drwxr-xr-x 3 root root 3 Jul 17 14:36 .
drwxr-xr-x 17 root root 23 Jul 17 16:27 ..
drwxrwsr-x+ 4 nobody www-data 4096 Jul 17 16:04 ZoneStorage
root@Zoneminder:/# ls -la /mnt/ZoneStorage
total 25
drwxrwsr-x+ 4 nobody www-data 4096 Jul 17 16:04 .
drwxr-xr-x 3 root root 3 Jul 17 14:36 ..
drwxr-sr-x+ 3 www-data www-data 4096 Jul 17 16:04 1
drwxrwsr-x+ 2 nobody www-data 16384 Jul 17 11:06 lost+found
Can somebody please offer assistance?