added first camera now getting errors for zmc process (Centos 7)

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
gary21060_zm
Posts: 8
Joined: Thu Oct 29, 2020 7:17 pm

added first camera now getting errors for zmc process (Centos 7)

Post by gary21060_zm »

After adding the first camera, "function" on the console page shows "not running". After investigating, I find the following errors from "systemctl status zoneminder -l".

Code: Select all

[root@hostname www]# systemctl status zoneminder -l
● zoneminder.service - ZoneMinder CCTV recording and security system
   Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/zoneminder.service.d
           └─zm-httpd.conf
   Active: active (running) since Fri 2020-10-30 19:45:10 EDT; 31s ago
  Process: 24084 ExecStop=/usr/bin/zmpkg.pl stop (code=exited, status=0/SUCCESS)
  Process: 24166 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
 Main PID: 24184 (zmdc.pl)
    Tasks: 5
   CGroup: /system.slice/zoneminder.service
           ├─24184 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
           ├─24224 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=1 --daemon
           ├─24240 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=2 --daemon
           ├─24250 /usr/bin/perl -wT /usr/bin/zmwatch.pl
           └─24265 /usr/bin/perl -wT /usr/bin/zmstats.pl
Oct 30 19:45:26 hostname zmdc[24184]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Oct 30 19:45:40 hostname zmwatch[24250]: ERR [Memory map file '/dev/shm/zm.mmap.1' does not exist in zmMemAttach.  zmc might not be running.]
Oct 30 19:45:40 hostname zmwatch[24250]: INF [Restarting capture daemon for Monitor-1, shared data not valid]
Oct 30 19:45:41 hostname zmdc[24184]: INF [Command 'zmc -m 1' removed from pending list at 20/10/30 19:45:41]
Oct 30 19:45:41 hostname zmdc[24184]: INF ['zmc -m 1' starting at 20/10/30 19:45:41, pid = 24310]
Oct 30 19:45:41 hostname zmdc[24310]: INF ['zmc -m 1' started at 20/10/30 19:45:41]
Oct 30 19:45:41 hostname zmc_m1[24310]: ERR [zmc_m1] [fopen() for ./zmc_m1.log, error = Permission denied]
Oct 30 19:45:41 hostname zmc_m1[24310]: ERR [zmc_m1] [Can't connect to server: Access denied for user 'zoneminderu'@'localhost' (using password: YES)]
Oct 30 19:45:41 hostname zmc_m1[24310]: FAT [zmc_m1] [Can't connect to db. Can't continue.]
Oct 30 19:45:41 hostname zmdc[24184]: ERR ['zmc -m 1' exited abnormally, exit status 255]
When I removed the camera definition, the errors stopped. This happens for both camera streams.

Source for the camera. FYI, there is no password on the camera yet as I am testing

Code: Select all

rtsp://x.x.x.x:554/user=admin&password=&channel=1&stream=0.sdp
I'm trying to find a basic ONVIF viewer for Centos/RHEL akin to "ONVIF Device Manager" for Windows. "ONVIF Device Manager" finds the camera without issue.

Comments / Thoughts / Suggestions

Thanks!
Gary
gary21060_zm
Posts: 8
Joined: Thu Oct 29, 2020 7:17 pm

Re: added first camera now getting errors for zmc process (Centos 7)

Post by gary21060_zm »

I got VLC installed on my Centos system, and verified that both streams work.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: added first camera now getting errors for zmc process (Centos 7)

Post by Magic919 »

Start with sorting an FAT messages. This one suggests database credentials.
-
gary21060_zm
Posts: 8
Joined: Thu Oct 29, 2020 7:17 pm

Re: added first camera now getting errors for zmc process (Centos 7)

Post by gary21060_zm »

I was thinking that this morning wondering if ZoneMinder had a problem with special characters in the password. Which it does. ;-)

I had an 8 character password that included the "|" and "$". So I lengthened the password and only had alphanumeric characters. Magic!

Thanks!
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: added first camera now getting errors for zmc process (Centos 7)

Post by Magic919 »

Someone mentioned that recently in the context of a camera password. Good to see you found the problem. On to the next challenge!
-
Post Reply