fresh install broken images problem

Forum for questions and support relating to the 1.24.x releases only.
Locked
floppyraid
Posts: 12
Joined: Tue Feb 16, 2010 7:38 pm

fresh install broken images problem

Post by floppyraid »

greetings

i just did a fresh install on a machine using ubuntu 9.10 server and the guide posted here:

http://www.zoneminder.com/wiki/index.ph ... ver_32-bit

im using virtually the exact same hardware as is listed on the wiki (1 single "pico2000" bt878 card)

the install of everything went fine, and zm is up and running on port 80

the weird part is this.. from a fresh reboot, the zm webpage pulls up just fine, but i cannot access the cameras. in firefox, the image just shows up as if though it is a broken image

but if i log in over ssh and issue a "service zm restart" command, the cameras pop up as expected

also of interest might be this.

from a reboot, the main zm status page shows under "source" for the various monitors ive set up "/dev/video0" and /dev/video1" in red text.

as soon as i issue the "service zm restart" command, they assume 'normal' colors (green for monitors that are set to record and yellow for monitors set to monitor)


any ideas would be very appreciated. if you need me to paste anything (the /etc/init.d/zm script, etc)
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

GO check you logs will be helpful. /var/log or /tmp

also did you set shared memory. You should however be ok with just the few cameras.
floppyraid
Posts: 12
Joined: Tue Feb 16, 2010 7:38 pm

greetings

Post by floppyraid »

also did you set shared memory. You should however be ok with just the few cameras.
are you talking about the "--enable-mmap" option when doing the ./configure ?

if so then yes, i did use that option


which log in particular would be helpful to me in this case? i dont see anything that looks suspicious in /messages

zm loads up fine and i can access it over http, its just that in order for the cameras to show anything at all, i have to restart the zm service
floppyraid
Posts: 12
Joined: Tue Feb 16, 2010 7:38 pm

how about this

Post by floppyraid »

how about this for a workaround

is there anyway in the init script to, after starting the service at boot time, to wait say, 30 seconds, and then restart the service automatically?

anyone want to help me out with that one? ;)
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

the "--enable-mmap"

Uses dosent use shared memeory so your good on that.

In the configure line where did you tell it to put logs thats where you need to look.

good way to find them if you forgot.

find / -name zm

should fnd something like /var/log/

Also unless you have a good resion to compile zm just install a distro package. It much less headaches.
floppyraid
Posts: 12
Joined: Tue Feb 16, 2010 7:38 pm

hmm

Post by floppyraid »

the configure line i used was

./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --enable-debug=yes --with-webgroup=www-data --with-webuser=www-data --enable-mmap


i didnt specify anything regarding logs. does it default somewhere or does it decide simply not to log anything? :/

i checked /var/log but nothing like that there. doing a

updatedb
locate zm |grep log |more


didnt turn up anything that looks useful
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

I can't remember where it stores the logs at the moment. I have always seen them in /var/log or /tmp. I have been using and haven't compiled in a while. So hopefully some one will chime in here. If not feel free to bump.
Locked