Lots of startup problems

Support and queries relating to all previous versions of ZoneMinder
Locked
qwe10730
Posts: 13
Joined: Thu Jan 22, 2004 2:34 pm

Lots of startup problems

Post by qwe10730 »

Hi,

I've recently had to rebuild my Linux box from scratch and lost my previously running Zoneminder installation (version 1.17 I think). I've just installed ZM 1.19.4 and after solving all the usual missing perl module problems I'm stuck with some errors I don't know how to solve.

When I start the zm service I seesm to come up OK but there's no video capture and there are errors in the log files. This is what's in zmdc.log:

Server starting at 04/07/13 20:54:40
'zmc -d 0' starting at 04/07/13 20:54:43, pid = 2970
'zmc -d 0' started at 04/07/13 20:54:43
'zmc -d 0' crashed at 04/07/13 20:54:43, exit status 255
'zmc -d 0' started at 04/07/13 20:54:43
'zmc -d 0' starting at 04/07/13 20:54:43, pid = 2972
'zmc -d 0' crashed at 04/07/13 20:54:43, exit status 255
'zma -m 1' started at 04/07/13 20:54:44
'zma -m 1' starting at 04/07/13 20:54:44, pid = 2977
'zma -m 1' crashed at 04/07/13 20:54:44, exit status 255
'zma -m 1' started at 04/07/13 20:54:44
'zma -m 1' starting at 04/07/13 20:54:44, pid = 2979
'zma -m 1' crashed at 04/07/13 20:54:44, exit status 255
'zmfilter.pl' starting at 04/07/13 20:54:44, pid = 2984
'zmfilter.pl' started at 04/07/13 20:54:44
'zmaudit.pl -d 900 -y' started at 04/07/13 20:54:45
'zmaudit.pl -d 900 -y' starting at 04/07/13 20:54:45, pid = 2989
'zmwatch.pl' started at 04/07/13 20:54:46
'zmwatch.pl' starting at 04/07/13 20:54:46, pid = 2995
'zmupdate.pl -c' starting at 04/07/13 20:54:47, pid = 3001
'zmupdate.pl -c' started at 04/07/13 20:54:47
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/07/13 20:54:48
'zmc -d 0' starting at 04/07/13 20:54:48, pid = 3006
'zmc -d 0' crashed at 04/07/13 20:54:48, exit status 255
Starting pending process, zma -m 1
'zma -m 1' started at 04/07/13 20:54:49
'zma -m 1' starting at 04/07/13 20:54:49, pid = 3008
'zma -m 1' crashed at 04/07/13 20:54:49, exit status 255
and so on

and in zmpkg.log

Command: start
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check'
Removing shared memory
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmfix'
/usr/local/bin/zmfix: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl status'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmc -d 0'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zma -m 1'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmfilter.pl'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmwatch.pl'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmupdate.pl -c'

I don't understand where it's looking for libmp3lame.so.0 as it's in the directory I set when building zm.


zmwatch.log has this:

Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory


I'm stumped. There must be multiple things wrong.

On another note, in the previous version of ZM when you used the web interface it showed up different colours for corretly working monitors etc. This one has a very crude text only interface. Have I misconfigured something?
sgocken
Posts: 13
Joined: Mon Jul 12, 2004 8:00 pm

Post by sgocken »

To fix the shared memory error look at this FAQ entry:

http://www.zoneminder.com/index.php?id= ... faq_faq=10

That will fix it. Stop zm make cat the values to proc and then start zm again.
Don't forget to change the kernel start up values.
qwe10730
Posts: 13
Joined: Thu Jan 22, 2004 2:34 pm

Post by qwe10730 »

thanks for the tip. I hadn't connected the shared memory problem with that entry in the FAQ. But it worked fine.

I still have the other errors though. Any ideas?
sgocken
Posts: 13
Joined: Mon Jul 12, 2004 8:00 pm

Post by sgocken »

I don't have lame support in my install. Check where the libmp3lam.so.0 file is. Copy it to /usr/local/lib or what ever other lib search path.

Can you post your errors that are still left after that.
qwe10730
Posts: 13
Joined: Thu Jan 22, 2004 2:34 pm

Post by qwe10730 »

the libmp3lame.so file is definitely in /usr/local/lib. LD_LIBRARY_PATH is set to that directory and there's several libs in there:

-rw-r--r-- 1 root root 167322 May 24 22:46 liblzo.a
-rwxr-xr-x 1 root root 651 May 24 22:46 liblzo.la*
-rw-r--r-- 1 root root 390606 Jul 12 14:09 libmp3lame.a
-rwxr-xr-x 1 root root 804 Jul 12 14:09 libmp3lame.la*
-rwxr-xr-x 1 root root 355735 Jul 13 20:51 libmp3lame.so*
-rwxr-xr-x 1 root root 355735 Jul 13 20:51 libmp3lame.so.0*
-rwxr-xr-x 1 root root 355735 Jul 12 14:09 libmp3lame.so.0.0.0*

The errors in the other log files are still the same as in my original post.

Thanks.
sgocken
Posts: 13
Joined: Mon Jul 12, 2004 8:00 pm

Post by sgocken »

Try turning off: ZM_STRICT_VIDEO_CONFIG.
JimNoble
Posts: 58
Joined: Thu Jul 29, 2004 12:12 am

Post by JimNoble »

I'm getting the same zmc crashing problem.

/var/log/messages also has this:

Jul 29 01:23:56 hostname zmc-m2[16549]: INF [Starting Capture]
Jul 29 01:23:56 hostname zmc-m2[16549]: FAT [You must have libpcre.a installed to use remote cameras]
Jul 29 01:23:56 hostname zmc-m1[16548]: INF [Starting Capture]
Jul 29 01:23:56 hostname zmc-m1[16548]: FAT [You must have libpcre.a installed to use remote cameras]

I've installed pcre-devel and now have libpcre.a in /usr/lib but I still get those errors :-(

Jim
JimNoble
Posts: 58
Joined: Thu Jul 29, 2004 12:12 am

Post by JimNoble »

Ah, spoke too soon. I re-ran configure, re-ran make, re-installed, and now I have pictures! :lol:

Jim
Locked