unable to change state, view imagesq

Support and queries relating to all previous versions of ZoneMinder
Locked
ark
Posts: 6
Joined: Wed Jul 25, 2007 8:56 pm

unable to change state, view imagesq

Post by ark »

I've read the docs and the faq and the 'read this first post' so I'll have egg on my face if this is a simple fix, but I hope it is.

I have zoneminder 1.22.3 running on ubuntu. I installed it from source following these steps...
http://www.zoneminder.com/wiki/index.ph ... _Alternate

I have a BT878 based 4 input card that is able to read video super fine using camstream, xawtv and "/usr/bin/v4lctl -c snap jpeg full out.jpg" so I'm confident the card works awesome with video4linux.

The webui is up and running and I'm able to add zones and name them and set thier status to monitor (displayed in orange). I can access /cgi-bin/nph-zms just fine.

I can run /etc/init.d/zm start and it starts. all my logs are in /tmp/zm*.log since I'm running as my user (not root). They used to show shared memry problems but I reduced my capture size and they show no errors now.

however...

when I click on the 'stopped' in the middle of this line:
ZoneMinder Console - Stopped - v1.22.3

it pops up a window where I can select start and enter a description, no matter what I do, it still endsup saying stopped. similarly the doc says I should be able to click on my zone name and see real time pictures from that input, but it's not clickable. I can click on the number in the zone column, a window pops up that looks like it should have a current picture in it, but the image is broken, the image being referenced is /images/New-Zones.jpg?1185744836 "New" is the name of my zone. I look in the html/images directory and nothing is there, I even made it world writeable and still nothing.

what can I do to find where in the pipeline something is getting caught up?

my logs all appear benign... examples

zmaudit...

Code: Select all

07/28/2007 20:13:35.322698 zmaudit[15542].DBG [Got 0 events]
07/28/2007 20:28:35.331331 zmaudit[15542].DBG [Found database monitor '1']
07/28/2007 20:28:35.332685 zmaudit[15542].DBG [Got 0 events]
07/28/2007 20:43:35.341328 zmaudit[15542].DBG [Found database monitor '1']
zmdc...

Code: Select all

07/29/2007 07:40:16.007524 zmdc[15510].INF [Server shutdown at 07/07/29 07:40:16]
07/29/2007 07:40:19.061296 zmdc[20745].INF [Server starting at 07/07/29 07:40:19]
07/29/2007 07:40:22.472182 zmdc[20745].INF ['zmc -d /dev/video0' starting at 07/07/29 07:40:22, pid = 20768]
07/29/2007 07:40:23.091693 zmdc[20745].INF ['zmfilter.pl' starting at 07/07/29 07:40:23, pid = 20772]
07/29/2007 07:40:24.351286 zmdc[20745].INF ['zmaudit.pl -c' starting at 07/07/29 07:40:24, pid = 20777]
07/29/2007 07:40:25.301423 zmdc[20745].INF ['zmwatch.pl' starting at 07/07/29 07:40:25, pid = 20782]
07/29/2007 07:40:26.231248 zmdc[20745].INF ['zmupdate.pl -c' starting at 07/07/29 07:40:26, pid = 20786]
zmfilter

Code: Select all

07/28/2007 14:40:39.500632 zmfilter[15537].DBG [Reloading filters]
07/28/2007 14:40:39.501756 zmfilter[15537].DBG [Sleeping for 60 seconds]
07/28/2007 14:41:39.514633 zmfilter[15537].DBG [Sleeping for 60 seconds]
07/28/2007 14:42:39.520647 zmfilter[15537].DBG [Sleeping for 60 seconds]
07/28/2007 14:43:39.530771 zmfilter[15537].DBG [Sleeping for 60 seconds]
zmpkg

Code: Select all

07/28/2007 13:58:28.467963 zmpkg[15498].INF [Command: start]
07/29/2007 07:39:59.852138 zmpkg[20677].INF [Command: start]
07/29/2007 07:40:04.589479 zmpkg[20684].INF [Command: stop]
07/29/2007 07:40:18.257818 zmpkg[20733].INF [Command: start]
zmupdae

Code: Select all

07/29/2007 14:40:26.990630 zmupdate[20786].INF [Checking for updates]
07/29/2007 14:40:27.817936 zmupdate[20786].INF [Got version: '1.22.3']
zmwatch

Code: Select all

07/28/2007 13:58:35.962538 zmwatch[15547].INF [Watchdog starting]
07/28/2007 13:58:35.964019 zmwatch[15547].INF [Watchdog pausing for 30 seconds]
07/29/2007 07:40:25.752549 zmwatch[20782].INF [Watchdog starting]
07/29/2007 07:40:25.753939 zmwatch[20782].INF [Watchdog pausing for 30 seconds]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

There are more components than just ZM in order for everything to work. I suspect that the clue you need is in the Apache error log, but it might possibly show up in messages and r syslog as well.
My first hunch would be a permissions problem, make sure ZM is running as the same user/group as your Apache server.
ark
Posts: 6
Joined: Wed Jul 25, 2007 8:56 pm

Post by ark »

The user seemed to be the problem, I updated my user to be www-data and chown'd the html directory and now I see images, sweet!

Thanks so much for such a quick reply! I really appreciate it!

Now... my card has 4 inputs and I add all 4 as different zones (ID 1-4) and when I view them by clicking on the zone name I see them jitter/switch between the first zone and the zone they're supposed to be monitoring. I lowered the max fps (both regular and alert) down to just 1 and I still see the same problem. I also linked together my 4 monitors and that didn't solve the problem.

I really hope there's an easy fox for this!

Also when I click montage view, I get a devide by zero error, which seems to indicate that ZM_WEB_MONTAGE_MAX_COLS is not defined. I grepped all .php files and couldn't find it. in the source it looks like it's part of ZoneMinder/ConfigAdmin.pm? did part of my install fail?
ark
Posts: 6
Joined: Wed Jul 25, 2007 8:56 pm

Post by ark »

Heh, seems I had two battling zmc processes running, I killed them both, /etc/init.d/zm start and now everything is sweet! (apart from montage mode, but I'm sure that's my fault too)

zoneminder is great! I'm blown away by how awesome it is. thanks!
ark wrote: Now... my card has 4 inputs and I add all 4 as different zones (ID 1-4) and when I view them by clicking on the zone name I see them jitter/switch between the first zone and the zone they're supposed to be monitoring. I lowered the max fps (both regular and alert) down to just 1 and I still see the same problem. I also linked together my 4 monitors and that didn't solve the problem.
ark
Posts: 6
Joined: Wed Jul 25, 2007 8:56 pm

Post by ark »

ark wrote: Also when I click montage view, I get a devide by zero error, which seems to indicate that ZM_WEB_MONTAGE_MAX_COLS is not defined. I grepped all .php files and couldn't find it. in the source it looks like it's part of ZoneMinder/ConfigAdmin.pm? did part of my install fail?
This too was an installation problem, I was running on a system that I'd just copied over the zoneminder files on, I should have done another make install on the new system. It's working flawlessly now I've done that, I love it!

I'll be making my donation for sure!
Locked