Page 3 of 3

Posted: Wed Nov 16, 2005 8:23 pm
by caseystone

Code: Select all

Nov 16 12:05:09 zoneminder gconfd (tcstone-4364): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration sou$
Nov 16 12:05:11 zoneminder zmc_dvideo0[4379]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:11 zoneminder zmc_dvideo0[4379]: ERR [Failed to open video device /dev/video0: Permission denied]
Nov 16 12:05:11 zoneminder zmc_dvideo0[4383]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:11 zoneminder zmc_dvideo0[4383]: ERR [Failed to open video device /dev/video0: Permission denied]
Nov 16 12:05:11 zoneminder zma_m1[4389]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:11 zoneminder zma_m1[4389]: ERR [Shared memory not initialised by capture daemon]
Nov 16 12:05:11 zoneminder zma_m1[4391]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:11 zoneminder zma_m1[4391]: ERR [Shared memory not initialised by capture daemon]
Nov 16 12:05:16 zoneminder zmc_dvideo0[4451]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:16 zoneminder zma_m1[4452]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:17 zoneminder zmc_dvideo0[4451]: ERR [Failed to open video device /dev/video0: Permission denied]
Nov 16 12:05:17 zoneminder zma_m1[4452]: ERR [Shared memory not initialised by capture daemon]
Nov 16 12:05:25 zoneminder zmu[4476]: ERR [Shared memory not initialised by capture daemon]
Nov 16 12:05:26 zoneminder zms[4482]: ERR [Shared memory not initialised by capture daemon]
Nov 16 12:05:27 zoneminder zmc_dvideo0[4484]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:27 zoneminder zma_m1[4485]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:27 zoneminder zmc_dvideo0[4484]: ERR [Failed to open video device /dev/video0: Permission denied]
Nov 16 12:05:27 zoneminder zma_m1[4485]: ERR [Shared memory not initialised by capture daemon]
Nov 16 12:05:31 zoneminder gconfd (tcstone-4364): Resolved address "xml:readwrite:/home/tcstone/.gconf" to a writable configuration source at po$
Nov 16 12:05:50 zoneminder zmc_dvideo0[4567]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:50 zoneminder zmc_dvideo0[4567]: INF [Starting Capture]
Nov 16 12:05:50 zoneminder zma_m1[4571]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:50 zoneminder zma_m1[4571]: INF [Warming up]
Nov 16 12:05:54 zoneminder kernel: zmc[4567]: segfault at 00002aaaacd3f000 rip 000000338d3714ca rsp 00007ffffffff9c8 error 6
Nov 16 12:05:54 zoneminder zmc_dvideo0[4598]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:05:54 zoneminder zmc_dvideo0[4598]: INF [Starting Capture]
Nov 16 12:05:58 zoneminder kernel: zmc[4598]: segfault at 00002aaaacd3f000 rip 000000338d3714ca rsp 00007ffffffff9c8 error 6
Nov 16 12:06:03 zoneminder zmc_dvideo0[4600]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 12:06:03 zoneminder zmc_dvideo0[4600]: INF [Starting Capture]
Nov 16 12:06:07 zoneminder kernel: zmc[4600]: segfault at 00002aaaacd3f000 rip 000000338d3714ca rsp 00007ffffffff9c8 error 6
Nov 16 12:06:15 zoneminder zma_m1[4571]: INF [Got signal (Terminated), exiting]

Code: Select all

Server starting at 05/11/16 12:04:56
'zmfilter.pl' started at 05/11/16 12:04:59
'zmfilter.pl' starting at 05/11/16 12:04:59, pid = 4248
'zmaudit.pl -d 900 -y' started at 05/11/16 12:04:59
'zmaudit.pl -d 900 -y' starting at 05/11/16 12:04:59, pid = 4253
'zmwatch.pl' started at 05/11/16 12:05:00
'zmwatch.pl' starting at 05/11/16 12:05:00, pid = 4258
'zmupdate.pl -c' started at 05/11/16 12:05:00
'zmupdate.pl -c' starting at 05/11/16 12:05:00, pid = 4263
'zmfilter.pl' running at 05/11/16 12:04:59, pid = 4248, valid
'zmwatch.pl' running at 05/11/16 12:05:00, pid = 4258, valid
'zmupdate.pl -c' running at 05/11/16 12:05:00, pid = 4263, valid
'zmaudit.pl -d 900 -y' running at 05/11/16 12:04:59, pid = 4253, valid
Can't find process with command of 'zmc -d /dev/video0'   
'zmc -d /dev/video0' started at 05/11/16 12:05:11
'zmc -d /dev/video0' starting at 05/11/16 12:05:11, pid = 4379
'zmc -d /dev/video0' crashed at 05/11/16 12:05:11, exit status 255
'zmc -d /dev/video0' started at 05/11/16 12:05:11
'zmc -d /dev/video0' starting at 05/11/16 12:05:11, pid = 4383
'zmc -d /dev/video0' crashed at 05/11/16 12:05:11, exit status 255
Can't find process with command of 'zma -m 1'
'zma -m 1' started at 05/11/16 12:05:11
'zma -m 1' starting at 05/11/16 12:05:11, pid = 4389
'zma -m 1' crashed at 05/11/16 12:05:11, exit status 255
'zma -m 1' started at 05/11/16 12:05:11
'zma -m 1' starting at 05/11/16 12:05:11, pid = 4391
'zma -m 1' crashed at 05/11/16 12:05:11, exit status 255
'zmfilter.pl' running at 05/11/16 12:04:59, pid = 4248, valid
'zmwatch.pl' running at 05/11/16 12:05:00, pid = 4258, valid
'zmupdate.pl -c' running at 05/11/16 12:05:00, pid = 4263, valid
'zmaudit.pl -d 900 -y' running at 05/11/16 12:04:59, pid = 4253, valid
'zmc -d /dev/video0' pending at 05/11/16 12:05:16
'zma -m 1' pending at 05/11/16 12:05:16
Starting pending process, zmc -d /dev/video0
'zmc -d /dev/video0' started at 05/11/16 12:05:16
'zmc -d /dev/video0' starting at 05/11/16 12:05:16, pid = 4451
Starting pending process, zma -m 1
'zma -m 1' started at 05/11/16 12:05:16
'zma -m 1' starting at 05/11/16 12:05:16, pid = 4452
'zmc -d /dev/video0' crashed at 05/11/16 12:05:17, exit status 255
'zma -m 1' crashed at 05/11/16 12:05:17, exit status 255
Starting pending process, zmc -d /dev/video0
'zmc -d /dev/video0' started at 05/11/16 12:05:27
'zmc -d /dev/video0' starting at 05/11/16 12:05:27, pid = 4484
Starting pending process, zma -m 1
'zma -m 1' started at 05/11/16 12:05:27
'zma -m 1' starting at 05/11/16 12:05:27, pid = 4485
'zmc -d /dev/video0' crashed at 05/11/16 12:05:27, exit status 255
'zma -m 1' crashed at 05/11/16 12:05:27, exit status 255
'zmfilter.pl ' stopping at 05/11/16 12:05:36
'zmfilter.pl ' died at 05/11/16 12:05:36, signal 14
'zmwatch.pl ' stopping at 05/11/16 12:05:36
'zmupdate.pl -c' died at 05/11/16 12:05:36, signal 14
'zmaudit.pl -d 900 -y' stopping at 05/11/16 12:05:36
'zmaudit.pl -d 900 -y' died at 05/11/16 12:05:36, signal 14
Server shutdown at 05/11/16 12:05:46
Server starting at 05/11/16 12:05:47
'zmc -d /dev/video0' started at 05/11/16 12:05:50
'zmc -d /dev/video0' starting at 05/11/16 12:05:50, pid = 4567
'zma -m 1' started at 05/11/16 12:05:50
'zma -m 1' starting at 05/11/16 12:05:50, pid = 4571
'zmfilter.pl' started at 05/11/16 12:05:50
'zmfilter.pl' starting at 05/11/16 12:05:50, pid = 4575
'zmaudit.pl -d 900 -y' started at 05/11/16 12:05:50
'zmaudit.pl -d 900 -y' starting at 05/11/16 12:05:50, pid = 4580
'zmwatch.pl' started at 05/11/16 12:05:50
'zmwatch.pl' starting at 05/11/16 12:05:50, pid = 4585
'zmupdate.pl -c' started at 05/11/16 12:05:50
'zmupdate.pl -c' starting at 05/11/16 12:05:50, pid = 4589
'zmfilter.pl' running at 05/11/16 12:05:50, pid = 4575, valid
'zmupdate.pl -c' running at 05/11/16 12:05:50, pid = 4589, valid
'zmaudit.pl -d 900 -y' running at 05/11/16 12:05:50, pid = 4580, valid
'zmwatch.pl' running at 05/11/16 12:05:50, pid = 4585, valid
'zmc -d /dev/video0' running at 05/11/16 12:05:50, pid = 4567, valid
'zma -m 1' running at 05/11/16 12:05:50, pid = 4571, valid
'zmc -d /dev/video0' died at 05/11/16 12:05:54, signal 10
'zmc -d /dev/video0' started at 05/11/16 12:05:54
'zmc -d /dev/video0' starting at 05/11/16 12:05:54, pid = 4598
'zmc -d /dev/video0' died at 05/11/16 12:05:58, signal 10
Starting pending process, zmc -d /dev/video0
'zmc -d /dev/video0' started at 05/11/16 12:06:03
'zmc -d /dev/video0' starting at 05/11/16 12:06:03, pid = 4600
'zmc -d /dev/video0' died at 05/11/16 12:06:07, signal 10
'zmfilter.pl ' stopping at 05/11/16 12:06:15
'zmfilter.pl ' died at 05/11/16 12:06:15, signal 14
'zmupdate.pl -c' stopping at 05/11/16 12:06:15
'zmupdate.pl -c' died at 05/11/16 12:06:15, signal 14
'zmaudit.pl -d 900 -y' stopping at 05/11/16 12:06:15
'zmaudit.pl -d 900 -y' died at 05/11/16 12:06:15, signal 14
'zmwatch.pl ' stopping at 05/11/16 12:06:15
'zmwatch.pl ' died at 05/11/16 12:06:15, signal 14
'zma -m 1' stopping at 05/11/16 12:06:15
'zma -m 1' died at 05/11/16 12:06:15
Server shutdown at 05/11/16 12:06:25
Server starting at 05/11/16 12:06:25
Server shutdown at 05/11/16 12:06:52
This was after a reboot. Then I did zmpkg.pl start. Then I went into the web interface and put video0 into modect. It didn't seem to start zmc or zma so I issued a restart from the web interface. Then it did start the capture, then crashed. These logs look informative! I'm actually sending it before even looking much at it myself.

gdb coming next.

-Casey

Posted: Wed Nov 16, 2005 8:29 pm
by caseystone

Code: Select all

[root@zoneminder tmp]# zmpkg.pl stop
[root@zoneminder tmp]# zmpkg.pl status
stopped
[root@zoneminder tmp]# gdb /usr/local/bin/zmc
GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/tls/libthread_db.so.1".

(gdb) run -d /dev/video0
Starting program: /usr/local/bin/zmc -d /dev/video0

Program received signal SIGSEGV, Segmentation fault.
0x000000338d3714ca in memcpy () from /lib64/tls/libc.so.6
(gdb) bt
#0  0x000000338d3714ca in memcpy () from /lib64/tls/libc.so.6
#1  0x00000000004040ca in main (argc=100123056, argv=0x5f81a00) at zm_image.h:186
(gdb) quit
The program is running.  Exit anyway? (y or n) y

Posted: Wed Nov 16, 2005 8:32 pm
by cordel
Hi Phil,
I currently have my machine here building the base distro (I forgot how long this part can take) and really can't tell how far along it is (but things are flying on the screen so I know it's working). Once I have all/any of the bugs worked out of the base and it's all done building it I'll open some ports for the box and PM you the info if you would like to play a bit. I found that on a x86_64 it may install libs for both 32 and 64 bit. The distro I'm tring to build will be striped of all 32 bit versions of software (assuming this will not break anything).
The structure is

Code: Select all

/
|
lib
|
lib64
|
usr
    |
    lib
    |
    lib64
I'm going to take a look at the configure script and see if I understand it well enough to make the changes to check either one or both lib and lib64.

Regards,
Cordel

Posted: Wed Nov 16, 2005 8:58 pm
by caseystone
Hey Cordel...

I know it's a little early to ask for an ETA, but if you get something packaged up by this evening is there a way I could get it from you? I'm going out of town on Thurs and will be bummed if my ZM is not there to keep an eye on things!

I've had Bittorrent running to get the 32-bit CTU since last night and it's still less that half way done.. I'm getting about 4 KB down... like modem speed! I've seeded more data than I've received. Anyway...

Good luck making a nice clean 64-bit ZM install. People will love you for it. [love you even more that is]

-Casey

Posted: Wed Nov 16, 2005 9:03 pm
by jameswilson
people already love you Corey!!

Posted: Wed Nov 16, 2005 9:50 pm
by cordel
Sorry Casey,
I don't think I'll have anything by this evening. I'll try my best but I can't make any promises.
I know that I've got most everything worked out of the 32 bit rpm but 64 will take a bit more doing I'm afraid. The computer is building the base now (for the second time) and I hope This is the last round of changes to have a working distro. After that completes then I'll have to build all the extra packages that are not provided by Fedora (or other Packagers should I decide to take a short cut. Ex. ffmpeg, lame, perl-x10, perl-serialport, etc...) so it one of those things, it takes what it takes. I don't help that I had to get the slowest x86_64 proc (price was a factor) so it could go a bit faster but it will do the job at hand (At least it's faster than most of the other machines here :D ).

I'll do what I can.

Regards,
Cordel

Posted: Wed Nov 16, 2005 11:35 pm
by caseystone
Don't let me put any pressure on you!!! Better to get it done just right than to rush it.

I will probably just install your 32bit one for my immediate needs -- if it ever finishes downloading. If you (or anyone reading) has some upstream bandwidth available and can have your bittorrent client seeding CTU3-zm1.21.3-3.iso that would be appreciated! :-)

-Casey

Posted: Thu Nov 17, 2005 1:35 am
by caseystone
Hey... sorry to hear you have a cold Corey (saw in another forum). It makes me bad about requesting your time.

Did you or Phil or anyone else have a chance to look at those logs I posted? Did they suggest any particular thing I did wrong in updating FFMPEG and ZM that I could fix?

If FFMPEG runs correctly itself (and creating video within ZM works) then does that mean I shouldn't worry about FFMPEG anymore and should concentrate on the ZM configure?

Can you suggest any changes to my zm configure line that could possibly help?

I have been doing:

Code: Select all

./configure --with-libarch=lib64 --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr --with-lame=/usr/lib64
and I had also tried --with-ffmpeg=/usr/local which didn't seem to make any difference.

Since the CTS bittorrent is so slow I'm dl the latest LiveCD (which is what I used the first time I installed ZM -- it was great) and will blow out my whole install pretty soon. So I can take any drastic measures I want! I have made video of any saved events so I don't care about losing anything.

Thanks for any further help! :-)

-Casey

Posted: Thu Nov 17, 2005 9:46 am
by caseystone
well... that nightmare is over.

Don't bother spending much time going over those, anyone. I have wiped it all away!!!!

Using the Cordel CTU iso... so far so good. It's a very nice install. For some reason Ross' LiveCD does not work on my box. ZMC goes right to 85% of CPU use. CTU is good.

There's one interesting little gotcha though...

if you leave the password blank in zm.conf you cannot run zminit because it complains of no passoword. When I do put a passoword in zm.conf it still fails. The solution I found was to enter a passowrd in zm.conf (just make one up) then when running zminit enter the username as root and just hit return when it asks for the password -- do not enter the password. Other than that, just remember to be root and use /sbin/chkconfig and /sbin/service for the service starting.

Fun times!!

Thanks Cordel!!! Looking forward to the 64-bit one.

-Casey