ZM-1.21.3 not working

Support and queries relating to all previous versions of ZoneMinder
Locked
mahendrar
Posts: 18
Joined: Mon Mar 14, 2005 11:57 am

ZM-1.21.3 not working

Post by mahendrar »

Hi phil ,

I was using ZM-1.21.0 on FC3 and today i decided to upgrade to Zm-1.21.3.
First i just followed all the steps to upgrade from an older version.but it was giving me status Stopped on the web interface and the device was also not working.
I was able to see live stream.but it was showing 0 fps.
then i decided to go for a full install but after that i am feeling the same problem again.
I don't find any errors in lo9gs too.

Plz help me.

Thanks,
Mahendra
________
CLR
Last edited by mahendrar on Fri Feb 04, 2011 9:10 am, edited 1 time in total.
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

Without any error messages it's hard to know where to start, but there will be some error messages somewhere. You just have to find them. First make sure the log directory zoneminder is pointed at exists and is writable by the various user(s) zoneminder employs (usually apache). Then find out where your system log messages are going (usually into files in /var/log ). Then try starting zoneminder again, and check which files grow. Look in them for error messages...
Rick Hewett
mahendrar
Posts: 18
Joined: Mon Mar 14, 2005 11:57 am

Post by mahendrar »

I have checked all the logs of ZM as well as system logs but i did not find anything there.
the ZM is working and its recording events but it is showing Stopped on the console.

I can not understand what is the reason behind this.
I am using Zm for quite a long time.
________
easy vape review
Last edited by mahendrar on Fri Feb 04, 2011 9:11 am, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Did you check to make sure that SELinux is set to passive or off (should produce an error though in messages starting with AVC)?
Also check and make sure that all the web pages are owned and readable by apache (should also produce an error in apache's error log).
Regards,
Cordel
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
Tõnis
Posts: 3
Joined: Fri Aug 12, 2005 1:56 pm
Location: Estonia

Post by Tõnis »

Hi

I'm having similar problem on my gentoo box. I'm not quit sure though whether it is only ZoneMinder which is failing because some error messages I keep getting should not exist like
su: Authentication service cannot retrieve authentication info
when I try to

Code: Select all

su apache
Another thing which is odd: I had previously ZM (1.17, maybe?) installed and working (6 months ago). Then I left it alone and when I tried to login this week, I couldn't.
I checked from MySQL database and the password was correct. It just didn't let me in.

Then I decided to upgrade because there were newer and better versions available.
I decided to try emerge zoneminder but I couldn't get it to work.
Then I tried to compile the newest version. I configured it, compiled it and logged in. But I cannot start ZM from the web page.

Quick grep from /var/log/messages shows that something got running:
Aug 11 22:46:54 lepalind zma-m1[13927]: ERR [Can't find config item 11]
Aug 11 22:54:56 lepalind zmc-d0[14683]: INF [Debug Level = 0, Debug Log = ]
Aug 12 10:04:29 lepalind zmc_d0[31516]: INF [Debug Level = 0, Debug Log = <none>]
Aug 12 10:04:29 lepalind zmc_d0[31516]: INF [Starting Capture]
Aug 12 10:05:07 lepalind zmc_d0[31516]: INF [kontor: 1000 - Capturing at 26.32 fps]
Aug 12 10:07:34 lepalind zmc_d0[32052]: INF [Debug Level = 0, Debug Log = <none>]
Aug 12 10:07:34 lepalind zmc_d0[32052]: INF [Starting Capture]

I'm not sure, but I may have started it from console because I was messing with zmc. But I cannot stop it now.
Aug 12 16:33:01 lepalind zmu[18078]: ERR [Can't shmget, probably not enough shared memory space free: Permission denied]
Aug 12 16:33:01 lepalind zms[18082]: ERR [Can't shmget, probably not enough shared memory space free: Permission denied]

Code: Select all

zmdc.pl status daemonname
shows that nothing is running

zmpkg.log shows

Command: start
Executing: /usr/local/bin/zmdc.pl check
Removing shared memory
Executing: /usr/local/bin/zmfix
Executing: /usr/local/bin/zmdc.pl status
Can't open log file: Permission denied at /usr/local/bin/zmdc.pl line 167.
Can't connect: Permission denied at /usr/local/bin/zmdc.pl line 159.
Executing: /usr/local/bin/zmdc.pl start zmc -d 0
Can't open log file: Permission denied at /usr/local/bin/zmdc.pl line 167.
Can't connect: Permission denied at /usr/local/bin/zmdc.pl line 159.
Executing: /usr/local/bin/zmdc.pl start zmfilter.pl
Can't open log file: Permission denied at /usr/local/bin/zmdc.pl line 167.
Can't connect: Permission denied at /usr/local/bin/zmdc.pl line 159.
Executing: /usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y
Can't open log file: Permission denied at /usr/local/bin/zmdc.pl line 167.
Can't connect: Permission denied at /usr/local/bin/zmdc.pl line 159.
Executing: /usr/local/bin/zmdc.pl start zmwatch.pl
Can't open log file: Permission denied at /usr/local/bin/zmdc.pl line 167.
Can't connect: Permission denied at /usr/local/bin/zmdc.pl line 159.
Executing: /usr/local/bin/zmdc.pl start zmupdate.pl -c
Can't open log file: Permission denied at /usr/local/bin/zmdc.pl line 167.
Can't connect: Permission denied at /usr/local/bin/zmdc.pl line 159.

but I cannot understand why and what log file cannot be opened.
BTW, there isn't such logfile as /var/log/zoneminder
Log files have owner set to root by default
You just wasted five seconds of your time reading this nonsense..
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

I would have expected the webserver (apache, most likely) to own the zm log files and the zm log directory. That's certainly what happens on my system.
Rick Hewett
Tõnis
Posts: 3
Joined: Fri Aug 12, 2005 1:56 pm
Location: Estonia

Post by Tõnis »

Lazyleopard, you are correct - zm log files have to be owned by webserver (in my case apache). The strange part is that I think I don't have all log files created by install. I have zmpkg.log and zmdc.log which was owned by root.

I set these to be owned by apache and got zm running. But I still cannot see even still pictures from the camera. I suspect I have some more false ownership somewhere.

Could someone post a zm log directory tree so I could create necessary log files?
You just wasted five seconds of your time reading this nonsense..
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

Code: Select all

$ ll -a /var/log/zm
total 3356
drwxr-xr-x   2 apache apache    1712 Aug  7 03:16 .
drwxr-xr-x  12 root   root      5232 Aug 13 04:20 ..
-rw-r--r--   1 apache apache 1406370 Aug 13 12:50 zmaudit.log
-rw-r--r--   1 apache apache    1141 Aug  7 03:16 zmdc.log
-rw-r--r--   1 apache apache  442921 Aug 13 12:58 zmfilter.log
-rw-r--r--   1 apache apache     895 Aug  7 03:16 zmpkg.log
-rw-r--r--   1 apache apache      65 Aug  7 03:16 zmtrigger.log
-rw-r--r--   1 apache apache      71 Aug  7 03:16 zmwatch.log
Rick Hewett
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post by Baylink »

So, would it be a good time (or has it happened already, and I'm too inattentive to notice :-) to break "making sure all the permissions are set correctly" out as a separate script, so we can run it whenever we need to?
Tõnis
Posts: 3
Joined: Fri Aug 12, 2005 1:56 pm
Location: Estonia

Post by Tõnis »

That would be nice :D

But it won't help if you don't have log files created at all. I don't know why but somehow my install didn't create logfiles ( or do log files get created when needed? )

Anyway, when I created logfiles shown in lazyleopard's post, I got zm running. Some tweaking with video source and I'm happy with the outcome. Unfortunately I got carried away with tweaking and changed the Monitor's settings (brightness, contrast, etc.) to extreme values which wasn't good at all. It took me some time to figure out how to put decent values there - I wasn't careful enough to write down old values :oops: .
Maybe it won't be too timeconsuming to put Reset to default button to the settings page for people like me? :roll:

Mahendra, I didn't quite understand what is the problem you have? Is everything working or is there something you cannot do? If it is working ok but only showing it is not working then maybe there's problem with the script that checks the status of the daemons? Does it show Stopped only on the console or is it showing Stopped on the webpage too?
You just wasted five seconds of your time reading this nonsense..
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

The files will be created when needed, provided the process that wants to create them has a directory into which it can write them, and they havn't already been created by some other process using the wrong ID...

So you need to create the directory (and its location is in the zm configuration, so can be altered by the user). The usual permission problem involves log files being owned by (and only writable by) root instead of apache...
Rick Hewett
friscom
Posts: 4
Joined: Tue Aug 23, 2005 5:26 pm
Location: Italy

simialr trouble: any idea?

Post by friscom »

Because I also have problems to see the streaming in my webcam monitoring window, I checked the content of the related log files to have some clue.

Nothing noteworthy came except a repeated message in the zmwatch.log:
"Can't get shared memory id '2053971970': No such file or directory".

Well, I did some search in the forum that led me here for some similarities.

My question: does anybody have some idea if this is a useful message to debug my problem? How, or what else, to look for?

[ZM 1.21.2 with an intellinet webcam connected remotely and a local USB webcam that xawtv does recognize, but I am not able et to manage properly with ZM]

Thanks in advance,
friscom
Locked