Page 4 of 7

sorry

Posted: Sat Apr 21, 2007 3:37 pm
by rjewell
I figured out I was wrong but thought I would hold off on posting a correction because I imagined I would be wrong about more of what I said (that I need to think more before posting). I finally realized I had the script 'zoneminder' (I was using 'zm' before). This may have caused some problems last time around because I was controlling the package with 'zm' script from a previous install.

I still need to test and see if everything is working. The package installed and I could monitor cameras.

Thanks!

still problem viewing events

Posted: Mon Apr 23, 2007 7:15 pm
by rjewell
I doubt this is a problem with the ubuntu package but I was hoping for general ideas.

I am able to monitor cameras and in modect zm is recording events and some have motion. If I try to view an event or an image I get nothing.

I can see the events in the db and directories for them on the hd but no files within.

In the error logs I haven't found the source of the problem but I did see errors that processes couldn't open /usr/share/zoneminder/events/1/178/001-capture.jpg etc. (I don't see any files in those dirs).

I verified those dirs (ln to /var/cache/zoneminder) belong to www-data and I chmod'd to 777 as a test. I also freed up space on the hd and have 40GB free.

Thanks in advance,
Ryan

fixed

Posted: Mon Apr 23, 2007 11:29 pm
by rjewell
OK, I removed the package again. Scanned the entire drive for zm, zoneminder etc and deleted all of that. Reinstalled and everything works. I think there were more left overs from past installs.

Thanks for all of the support. A wonderful app and package!
Ryan

Video Not Appearing

Posted: Mon Apr 30, 2007 1:37 am
by jdblank
I installed the Ubuntu 6.06 desktop edition and was able to get the zoneminder console to come up by following this thread. However, the camera is not appearing. I just see a broken image in firefox.

Any suggestions would be appreciated.

BTW - I know the camera works because I also have the LiveCD version so i can make sure the hardware is functioning and it is.

Re: Video Not Appearing

Posted: Mon Apr 30, 2007 1:58 am
by PeterHoward
jdblank wrote:I installed the Ubuntu 6.06 desktop edition and was able to get the zoneminder console to come up by following this thread. However, the camera is not appearing. I just see a broken image in firefox.
Which version of Apache is running? One explanation is that, even though you've got Apache2 installed, Apache1 is getting started instead.

PJH

Re: Video Not Appearing

Posted: Mon Apr 30, 2007 3:23 am
by jdblank
How can i determine that? (I am a novice linux user)

Thanks,

Josh

Re: Video Not Appearing

Posted: Tue May 01, 2007 3:49 pm
by jdblank
OK I am running Apache 2

So that is not the problem.

On my first attempt to install i was blocked because ffmpeg was not installed so I did an apt-get and installed it and then installed zoneminder no problem.

Any help troubleshooting would be appreciated.

Posted: Wed May 02, 2007 12:13 am
by PeterHoward
The next thing to do is go through the system log and check what the various programs (zma, zmc, etc) are doing. Hopefully there's going to be a useful error message in there.

a little more feedback

Posted: Wed May 02, 2007 3:19 am
by rjewell
Hi again.

I have been messing with this on and off over the last few days. I have a little more feedback.

I had the problem where video0 properties were messed up. This thread had the fix.
http://www.zoneminder.com/forums/viewtopic.php?t=8621

When I installed an axis 214 at 640x480 I had to follow the instructions to increase the shared memory. I can find the link I followed if its useful info (editing a kernel config shmmax etc). Anyway, the machine would crash after 45 minutes. I couldn't find a reason for the crash in a standard log file. I repaired the above, reduced the mem and the crash is gone.

I hope this helps. Thanks for taking the time to create this package and make my life a lot easier!

Ryan

jdblank...

Posted: Wed May 02, 2007 3:34 am
by rjewell
Reviewing the logs like Peter mentioned should help. I've found there are a number of reasons why a camera might not run (the camera profile displays red when there is a problem with its settings).

Anyway, you might check the thread I referenced and the video0 problem. If you are using the same rev as me this would definitely prevent you from viewing video. This problem did show up in the error log for me.

Ryan

Re: jdblank...

Posted: Thu May 03, 2007 3:48 am
by jdblank
Thanks I will try that tomorrow.

Re: jdblank...

Posted: Fri May 04, 2007 10:26 pm
by jdblank
Ok here is some info from the syslog. Not sure if it is useful.

If anyone might be available to chat via skype and help me troubleshoot I would be happy to pay for your time...

May 4 15:11:51 dvr zmfix[15779]: ERR [Can't chmod /dev/video to 20666: Operation not permitted]
May 4 15:11:51 dvr zmdc[4807]: WAR [Can't find process with command of 'zmc -d /dev/video']
May 4 15:11:52 dvr zmdc[4807]: WAR [Can't find process with command of 'zma -m 2']
May 4 15:13:11 dvr zmu[15843]: ERR [Shared memory not initialised by capture daemon]
May 4 15:15:16 dvr zma_m0[15930]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:15:16 dvr zma_m0[15930]: FAT [Can't open /etc/zm/zm.conf: Permission denied]
May 4 15:15:19 dvr zma_m0[15936]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:15:19 dvr zma_m0[15936]: FAT [Can't open /etc/zm/zm.conf: Permission denied]
May 4 15:15:21 dvr zma_m0[15939]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:15:21 dvr zma_m0[15939]: FAT [Can't open /etc/zm/zm.conf: Permission denied]
May 4 15:15:22 dvr zma_m0[15943]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:15:22 dvr zma_m0[15943]: FAT [Can't open /etc/zm/zm.conf: Permission denied]
May 4 15:15:47 dvr zma_m2[15956]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:15:47 dvr zma_m2[15956]: FAT [Can't open /etc/zm/zm.conf: Permission denied]
May 4 15:17:01 dvr /USR/SBIN/CRON[16019]: (root) CMD ( run-parts --report /etc/cron.hourly)
May 4 15:23:30 dvr zma_m2[16269]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:23:30 dvr zma_m2[16269]: ERR [Shared memory not initialised by capture daemon]
May 4 15:23:35 dvr zma_m2[16288]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:23:35 dvr zma_m2[16288]: ERR [Shared memory not initialised by capture daemon]
May 4 15:23:49 dvr zmu[16299]: ERR [Shared memory not initialised by capture daemon]
May 4 15:23:58 dvr zma_m0[16308]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:24:01 dvr zma_m2[16313]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:24:01 dvr zma_m2[16313]: ERR [Shared memory not initialised by capture daemon]
May 4 15:24:11 dvr zma_m1[16324]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:24:39 dvr zmc_dvideo0[16341]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:24:39 dvr zmc_dvideo0[16341]: FAT [Can't open /etc/zm/zm.conf: Permission denied]
May 4 15:24:51 dvr zmc_dvideo0[16354]: INF [Debug Level = 0, Debug Log = <none>]
May 4 15:24:51 dvr zmc_dvideo0[16354]: ERR [No monitors found]
May 4 15:25:02 dvr zmfix[16366]: ERR [Can't chmod /dev/video to 20666: Operation not permitted]
May 4 15:25:02 dvr zmdc[4807]: WAR [Can't find process with command of 'zmc -d /dev/video']
May 4 15:25:02 dvr zmdc[4807]: WAR [Can't find process with command of 'zma -m 2']
May 4 15:25:04 dvr zmu[16389]: ERR [Shared memory not initialised by capture daemon]
May 4 15:25:07 dvr zmu[16397]: ERR [Shared memory not initialised by capture daemon]
May 4 15:25:08 dvr zmu[16401]: ERR [Shared memory not initialised by capture daemon]

Re: jdblank...

Posted: Fri May 04, 2007 10:40 pm
by cordel
jdblank wrote:

Code: Select all

May  4 15:11:51 dvr zmfix[15779]: ERR [Can't chmod /dev/video to 20666: Operation not permitted]
May  4 15:15:16 dvr zma_m0[15930]: FAT [Can't open /etc/zm/zm.conf: Permission denied]
Check your permisions for both of these files.
Your video dev should also be /dev/video0
zmfix should be rwsr_xr_x

Re: jdblank...

Posted: Sat May 05, 2007 1:07 am
by jdblank
Can you explain what you mean by dev/video should by dev/video0?

All the permissions seem OK but I am not 100%

Re: jdblank...

Posted: Mon May 14, 2007 11:04 am
by PeterHoward
jdblank wrote:Can you explain what you mean by dev/video should by dev/video0?
I think he's just removing one possibility (rather than a certainty) but . . .

/dev/video0 is the "real" device. /dev/video, if it exists, will be a link to /dev/video0