Trouble on Zoneminder configuration...

Support and queries relating to all previous versions of ZoneMinder
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Trouble on Zoneminder configuration...

Post by carlesso »

Hi all, I'm having some trouble running zoneminder 1.22.3 on a slackware 11.

I'm running it with two ip cameras and I'm not able to get it working. The cameras are two axis. I cannot have it working nor using remote access nor using a file in which (with an infinite loop) i store the image by hand...
I cannot get the device turn into green, always have it red.
Here my logs:
A little extract of my zmdc.log

Code: Select all

01/23/2007 10:45:14.036014 zmdc[7031].INF ['zmc -m 10' starting at 07/01/23 10:45:14, pid = 19470]
01/23/2007 10:45:14.143312 zmdc[7031].ERR ['zmc -m 10' exited abnormally, exit status 255]
01/23/2007 10:45:24.759363 zmdc[7031].INF ['zmc -m 12' starting at 07/01/23 10:45:24, pid = 19474]
01/23/2007 10:45:26.722408 zmdc[7031].ERR ['zmc -m 12' exited abnormally, exit status 255]
01/23/2007 10:45:27.195454 zmdc[7031].INF ['zmc -m 11' starting at 07/01/23 10:45:27, pid = 19478]
01/23/2007 10:45:27.296210 zmdc[7031].ERR ['zmc -m 11' exited abnormally, exit status 255]
01/23/2007 10:45:27.847368 zmdc[7031].INF ['zmc -m 9' starting at 07/01/23 10:45:27, pid = 19482]
01/23/2007 10:45:27.941750 zmdc[7031].ERR ['zmc -m 9' exited abnormally, exit status 255]
And my zmwatch.log

Code: Select all

01/16/2007 16:23:28.359416 zmwatch[7812].INF [Restarting capture daemon for cento, shared memory not valid]
01/16/2007 16:23:29.094068 zmwatch[7812].INF ['zmc -m 6' starting at 07/01/16 16:23:28, pid = 9095]
01/16/2007 16:23:29.096568 zmwatch[7812].ERR [Can't get shared memory id '7a6d2007', 7: No such file or directory]
01/16/2007 16:23:29.097958 zmwatch[7812].INF [Restarting capture daemon for Nuovo, shared memory not valid]
01/16/2007 16:23:29.862950 zmwatch[7812].INF ['zmc -m 7' starting at 07/01/16 16:23:29, pid = 9105]
01/16/2007 16:23:39.884101 zmwatch[7812].ERR [Can't get shared memory id '7a6d2004', 4: No such file or directory]
01/16/2007 16:23:39.885611 zmwatch[7812].INF [Restarting capture daemon for cam2, shared memory not valid]
01/16/2007 16:23:40.626272 zmwatch[7812].INF ['zmc -m 4' starting at 07/01/16 16:23:40, pid = 9191]
01/16/2007 16:23:40.629066 zmwatch[7812].ERR [Can't get shared memory id '7a6d2006', 6: No such file or directory]
01/16/2007 16:23:40.630411 zmwatch[7812].INF [Restarting capture daemon for cento, shared memory not valid]
01/16/2007 16:23:41.329816 zmwatch[7812].INF ['zmc -m 6' starting at 07/01/16 16:23:41, pid = 9197]
01/16/2007 16:23:41.332382 zmwatch[7812].ERR [Can't get shared memory id '7a6d2007', 7: No such file or directory]
01/16/2007 16:23:41.333600 zmwatch[7812].INF [Restarting capture daemon for Nuovo, shared memory not valid]
01/16/2007 16:23:42.016164 zmwatch[7812].INF ['zmc -m 7' starting at 07/01/16 16:23:41, pid = 9201]
01/16/2007 16:23:52.026276 zmwatch[7812].ERR [Can't get shared memory id '7a6d2004', 4: No such file or directory]
01/16/2007 16:23:52.027846 zmwatch[7812].INF [Restarting capture daemon for cam2, shared memory not valid]
01/16/2007 16:23:52.706634 zmwatch[7812].INF ['zmc -m 4' starting at 07/01/16 16:23:52, pid = 9208]
The cameras are fully working, i can grab images by wgettin them as well as via ftp...

Any hints?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Check your messages/syslog log.
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Post by carlesso »

syslog

Code: Select all

Jan 23 10:27:56 ottocento zmdc[7031]: ERR ['zmc -m 9' exited abnormally, exit status 255] 
Jan 23 10:27:56 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d200a', 10: No such file or directory] 
Jan 23 10:27:57 ottocento zmc_m10[17742]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:27:57 ottocento zmdc[7031]: ERR ['zmc -m 10' exited abnormally, exit status 255] 
Jan 23 10:28:07 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d200c', 12: No such file or directory] 
Jan 23 10:28:08 ottocento zmc_m12[17764]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:28:08 ottocento zmdc[7031]: ERR ['zmc -m 12' exited abnormally, exit status 255] 
Jan 23 10:28:08 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d200b', 11: No such file or directory] 
Jan 23 10:28:09 ottocento zmc_m11[17768]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:28:09 ottocento zmdc[7031]: ERR ['zmc -m 11' exited abnormally, exit status 255] 
Jan 23 10:28:09 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d2009', 9: No such file or directory] 
Jan 23 10:28:11 ottocento zmc_m9[17772]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:28:11 ottocento zmdc[7031]: ERR ['zmc -m 9' exited abnormally, exit status 255] 
Jan 23 10:28:11 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d200a', 10: No such file or directory] 
Jan 23 10:28:14 ottocento zmc_m10[17776]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:28:14 ottocento zmdc[7031]: ERR ['zmc -m 10' exited abnormally, exit status 255] 
Jan 23 10:28:24 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d200c', 12: No such file or directory] 
Jan 23 10:28:26 ottocento zmc_m12[17814]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:28:26 ottocento zmdc[7031]: ERR ['zmc -m 12' exited abnormally, exit status 255] 
Jan 23 10:28:26 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d200b', 11: No such file or directory] 
Jan 23 10:28:27 ottocento zmc_m11[17821]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:28:27 ottocento zmdc[7031]: ERR ['zmc -m 11' exited abnormally, exit status 255] 
Jan 23 10:28:27 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d2009', 9: No such file or directory] 
Jan 23 10:28:28 ottocento zmc_m9[17825]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:28:28 ottocento zmdc[7031]: ERR ['zmc -m 9' exited abnormally, exit status 255] 
Jan 23 10:28:28 ottocento zmwatch[7284]: ERR [Can't get shared memory id '7a6d200a', 10: No such file or directory] 
Jan 23 10:28:30 ottocento zmc_m10[17832]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 23 10:28:30 ottocento zmdc[7031]: ERR ['zmc -m 10' exited abnormally, exit status 255] 
messages:

Code: Select all

Jan 23 10:45:26 ottocento zmc_m12[19474]: INF [Debug Level = 0, Debug Log = <none>]
Jan 23 10:45:27 ottocento zmdc[7031]: INF ['zmc -m 11' starting at 07/01/23 10:45:27, pid = 19478] 
Jan 23 10:45:27 ottocento zmdc[19478]: INF ['zmc -m 11' started at 07/01/23 10:45:27] 
Jan 23 10:45:27 ottocento zmc_m11[19478]: INF [Debug Level = 0, Debug Log = <none>]
Jan 23 10:45:27 ottocento zmwatch[7284]: INF ['zmc -m 11' starting at 07/01/23 10:45:27, pid = 19478] 
Jan 23 10:45:27 ottocento zmwatch[7284]: INF [Restarting capture daemon for Axis221, shared memory not valid] 
Jan 23 10:45:27 ottocento zmdc[19482]: INF ['zmc -m 9' started at 07/01/23 10:45:27] 
Jan 23 10:45:27 ottocento zmdc[7031]: INF ['zmc -m 9' starting at 07/01/23 10:45:27, pid = 19482] 
Jan 23 10:45:27 ottocento zmc_m9[19482]: INF [Debug Level = 0, Debug Log = <none>]
Jan 23 10:45:27 ottocento zmwatch[7284]: INF ['zmc -m 9' starting at 07/01/23 10:45:27, pid = 19482] 
Jan 23 10:45:27 ottocento zmwatch[7284]: INF [Restarting capture daemon for Axis_206, shared memory not valid] 
Jan 23 10:45:28 ottocento zmdc[7031]: INF ['zmc -m 10' starting at 07/01/23 10:45:28, pid = 19486] 
Jan 23 10:45:28 ottocento zmdc[19486]: INF ['zmc -m 10' started at 07/01/23 10:45:28] 
Jan 23 10:45:28 ottocento zmc_m10[19486]: INF [Debug Level = 0, Debug Log = <none>]
Jan 23 10:45:28 ottocento zmwatch[7284]: INF ['zmc -m 10' starting at 07/01/23 10:45:28, pid = 19486] 
Jan 23 10:45:38 ottocento zmwatch[7284]: INF [Restarting capture daemon for Nuovoadsfadfs, shared memory not valid] 
Jan 23 10:45:39 ottocento zmdc[7031]: INF ['zmc -m 12' starting at 07/01/23 10:45:39, pid = 19495] 
Jan 23 10:45:39 ottocento zmdc[19495]: INF ['zmc -m 12' started at 07/01/23 10:45:39] 
Jan 23 10:45:39 ottocento zmc_m12[19495]: INF [Debug Level = 0, Debug Log = <none>]
Jan 23 10:45:39 ottocento zmwatch[7284]: INF ['zmc -m 12' starting at 07/01/23 10:45:39, pid = 19495] 
Jan 23 10:45:39 ottocento zmwatch[7284]: INF [Restarting capture daemon for Cento, shared memory not valid] 
Jan 23 10:45:39 ottocento zmdc[7031]: INF ['zmc -m 11' starting at 07/01/23 10:45:39, pid = 19499] 
Jan 23 10:45:39 ottocento zmdc[19499]: INF ['zmc -m 11' started at 07/01/23 10:45:39] 
Jan 23 10:45:39 ottocento zmc_m11[19499]: INF [Debug Level = 0, Debug Log = <none>]
Jan 23 10:45:39 ottocento zmwatch[7284]: INF ['zmc -m 11' starting at 07/01/23 10:45:39, pid = 19499] 
Jan 23 10:45:39 ottocento zmwatch[7284]: INF [Restarting capture daemon for Axis221, shared memory not valid] 
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

See the FAQ in the Wiki
Jan 23 10:27:57 ottocento zmc_m10[17742]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Post by carlesso »

Adjusting the shared memory allocation, now I'm getting:

Code: Select all

Jan 23 12:06:05 ottocento zmu[2265]: ERR [Shared memory not initialised by capture daemon]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

There should be another error in one of the logs that explains why.
zmpkg zmdc zmwatch syslog messages
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Post by carlesso »

Now I'm getting:

Code: Select all

01/23/2007 12:34:42.224741 zmwatch[2462].FAT [Can't execute: MySQL server has gone away]

But mysql server is up an running, my syslog tells

Code: Select all

Jan 23 14:42:40 ottocento zma_m9[2331]: WAR [Can't connect to frame server: Connection refused]
Jan 23 14:42:40 ottocento zma_m9[2331]: ERR [Can't open /mnt/disk/zm/events/9/2/053-capture.jpg: No such file or directory]
and messages

Code: Select all

Jan 23 14:42:36 ottocento zmdc[2512]: INF ['zmtrigger.pl' started at 07/01/23 14:42:36] 
Jan 23 14:42:36 ottocento zma_m9[2331]: INF [Axis221: 1547 - Gone into alert state]
Jan 23 14:42:38 ottocento zma_m9[2331]: INF [Axis221: 1552 - Gone back into alarm state]
Jan 23 14:42:38 ottocento zma_m9[2331]: INF [Axis221: 1553 - Gone into alert state]
Jan 23 14:42:38 ottocento zmf_m9[2511]: INF [Debug Level = 0, Debug Log = <none>]
Jan 23 14:42:40 ottocento zma_m9[2331]: INF [Axis221: 1563 - Left alarm state (2) - 53(10) images]
Jan 23 14:43:17 ottocento zma_m9[2331]: INF [Axis221: 1689 - Gone into alarm state]
Jan 23 14:43:17 ottocento zmf_m9[2511]: INF [Frame server socket open, awaiting images]
Jan 23 14:43:22 ottocento last message repeated 11 times
Jan 23 14:43:23 ottocento zma_m9[2331]: INF [Axis221: 1690 - Gone into alert state]
Jan 23 14:43:23 ottocento zmf_m9[2511]: INF [Frame server socket open, awaiting images]
Jan 23 14:43:28 ottocento last message repeated 9 times
Jan 23 14:43:28 ottocento zma_m9[2331]: INF [Axis221: 1700 - Left alarm state (3) - 21(1) images]
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Post by carlesso »

Of couse, my web interface tell me that the program is stopped... The right way for starting is? I've tried zmpkg.pl start, also adjusting zm.in provided by the tarball, and via web...

I really do not know what to do.
User avatar
MJN
Posts: 251
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK

Post by MJN »

Click on Stopped and you'll get a popup where you can start it up.

The shared memory problems can often persist if you don't stop/start ZM - that could be why that particular error hung around. Have no idea about the SQL problem though.

Mathew
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Post by carlesso »

I saw it, but starting from web interface does not seems to do nothing... I remains in stopped mode...
I'm not longer getting memory problems...
User avatar
MJN
Posts: 251
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK

Post by MJN »

You really ought to be quoting logs all from the same time period - mixing and matching from different times (and days!) is only going to cause confusion.

What is the current situation? What is/isn't working? And what are your logs currently saying?

Mathew
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Post by carlesso »

Now I'm gettig it working, recording... but cannot get any image... having:

Code: Select all

Jan 23 17:16:45 ottocento zmf_m14[3399]: ERR [Incomplete read of frame image data, 16112 bytes only]
Jan 23 17:16:45 ottocento zma_m14[3406]: ERR [Incomplete frame write: 16128 of 18957 bytes written]
Jan 23 17:16:46 ottocento zmf_m14[3399]: ERR [Incomplete read of frame image data, 16112 bytes only]
Jan 23 17:16:46 ottocento zma_m14[3406]: ERR [Incomplete frame write: 16128 of 18997 bytes written]
Jan 23 17:16:46 ottocento zmf_m14[3399]: ERR [Incomplete read of frame image data, 16112 bytes only]
Jan 23 17:16:46 ottocento zma_m14[3406]: ERR [Incomplete frame write: 16128 of 19181 bytes written]
Jan 23 17:16:47 ottocento zmf_m14[3399]: ERR [Incomplete read of frame image data, 16112 bytes only]
Jan 23 17:16:47 ottocento zma_m14[3406]: ERR [Incomplete frame write: 16128 of 19081 bytes written]
Jan 23 17:16:48 ottocento zmf_m14[3399]: ERR [Incomplete read of frame image data, 16112 bytes only]
Jan 23 17:16:48 ottocento zma_m14[3406]: ERR [Incomplete frame write: 16128 of 18991 bytes written]
Jan 23 17:16:48 ottocento zmf_m14[3399]: ERR [Incomplete read of frame image data, 16112 bytes only]
Jan 23 17:16:48 ottocento zma_m14[3406]: ERR [Incomplete frame write: 16128 of 19194 bytes written]
Jan 23 17:18:01 ottocento zmdc[2210]: ERR ['zmtrigger.pl ' exited abnormally, exit status 9] 
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Post by carlesso »

And setting a lower resolution to the camera my syslog tells:

Code: Select all

Jan 23 17:24:08 ottocento zmf_m14[4229]: ERR [Can't accept: Interrupted system call]
Jan 23 17:24:08 ottocento zmdc[2210]: ERR ['zmf -m 14' exited abnormally, exit status 255] 
Jan 23 17:26:00 ottocento zmdc[2210]: WAR [Can't find process with command of 'zmtrack.pl -m 14'] 
Jan 23 17:26:01 ottocento zmf_m14[4465]: WAR [Socket closed at remote end]
Jan 23 17:26:01 ottocento zmf_m14[4465]: WAR [Can't unlink '/tmp/zmf-14.sock': Operation not permitted]
Jan 23 17:26:01 ottocento zmf_m14[4465]: ERR [Can't bind: Address already in use]
Jan 23 17:26:01 ottocento zmdc[2210]: ERR ['zmf -m 14' exited abnormally, exit status 255] 
Jan 23 17:26:01 ottocento zmf_m14[4711]: WAR [Can't unlink '/tmp/zmf-14.sock': Operation not permitted]
Jan 23 17:26:01 ottocento zmf_m14[4711]: ERR [Can't bind: Address already in use]
Jan 23 17:26:01 ottocento zmdc[2210]: ERR ['zmf -m 14' exited abnormally, exit status 255] 
User avatar
MJN
Posts: 251
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK

Post by MJN »

Try disabling ZM_OPT_FRAME_SERVER in Options > System (something JamesWilson suggested to another user so credit to him if it works!).

Remember to keep restarting the server when making changes - whilst not necessary for all cases I find it's a safe measure just in case.

Mathew
carlesso
Posts: 10
Joined: Tue Jan 23, 2007 9:43 am

Post by carlesso »

Here I'm! Again :)

So, now zoneminder seems to work fully, he's able to record images and work with any kind of source. The problem is that it's not possible to see any image from the web interface, just an empty box...

My syslog tells:

Code: Select all

Jan 24 09:35:20 ottocento zmdc[2222]: ERR ['zmtrigger.pl ' exited abnormally, exit status 9] 
Jan 24 09:35:56 ottocento last message repeated 4 times
And messages tells:

Code: Select all

Jan 24 09:35:21 ottocento sudo:     root : TTY=console ; PWD=/var/www/htdocs ; USER=apache ; COMMAND=/usr/local/zoneminder/bin/zmdc.pl start zmwatch.pl
Jan 24 09:35:22 ottocento zmdc[2222]: INF ['zmwatch.pl' starting at 07/01/24 09:35:22, pid = 2282] 
Jan 24 09:35:22 ottocento zmdc[2282]: INF ['zmwatch.pl' started at 07/01/24 09:35:22] 
Jan 24 09:35:22 ottocento zmwatch[2282]: INF [Watchdog starting] 
Jan 24 09:35:22 ottocento zmwatch[2282]: INF [Watchdog pausing for 30 seconds] 
Jan 24 09:35:26 ottocento zmdc[2222]: INF [Starting pending process, zmtrigger.pl] 
Jan 24 09:35:26 ottocento zmdc[2310]: INF ['zmtrigger.pl' started at 07/01/24 09:35:26] 
Jan 24 09:35:26 ottocento zmdc[2222]: INF ['zmtrigger.pl' starting at 07/01/24 09:35:26, pid = 2310] 
Jan 24 09:35:36 ottocento zmdc[2222]: INF [Starting pending process, zmtrigger.pl] 
Jan 24 09:35:36 ottocento zmdc[2222]: INF ['zmtrigger.pl' starting at 07/01/24 09:35:36, pid = 2320] 
Jan 24 09:35:36 ottocento zmdc[2320]: INF ['zmtrigger.pl' started at 07/01/24 09:35:36] 
Jan 24 09:35:56 ottocento zmdc[2222]: INF [Starting pending process, zmtrigger.pl] 
Jan 24 09:35:56 ottocento zmdc[2348]: INF ['zmtrigger.pl' started at 07/01/24 09:35:56] 
Jan 24 09:35:56 ottocento zmdc[2222]: INF ['zmtrigger.pl' starting at 07/01/24 09:35:56, pid = 2348] 
Jan 24 09:36:36 ottocento zmdc[2222]: INF [Starting pending process, zmtrigger.pl] 
Jan 24 09:36:36 ottocento zmdc[2222]: INF ['zmtrigger.pl' starting at 07/01/24 09:36:36, pid = 2385] 
Jan 24 09:36:36 ottocento zmdc[2385]: INF ['zmtrigger.pl' started at 07/01/24 09:36:36]
and so on...

The logs of zoneminder tells quite the same things, zmtrigger is dead and zmwatch is gone for an holiday :)

Any hint?
Thanks in advice!

(Yes, I've tried to disable what suggested, but not enough!)
Locked