Page 1 of 1
Logitech QuickCam E3500 Plus problem
Posted: Sat Feb 20, 2010 8:54 am
by dika
Hello All.
this is the first time i try to configure zoneminder. after i go through all the forum i can get my webcam working n successfull installed zoneminder but my problem is zoneminder cannot capture the video. then zoneminder can recognized. im using ubuntu 9.10 karmic koala.
and also able to stream using
http://localhost:8080
but when i click on zoneminder its just come out like this...waiting half an hours still the same.
please assist and help me regarding this.. pleaseeeee!!
p/s: im newbie in linux...
Posted: Mon Feb 22, 2010 2:10 am
by dika
anybody can help me?
Posted: Mon Feb 22, 2010 6:45 am
by mastertheknife
Hi.
It seems your problem is not that you can't capture video, but can't view streams!
Does
http://ZM-COMPUTER-IP/cgi-bin/nph-zms link work for you or does it give forbidden or error 404 (not found) ?
Try copying nph-zms and zms from your ZM's cgi-bin folder (/var/www/zm/cgi-bin probably) to your webserver's cgi-bin folder (/var/www/htdocs/cgi-bin probably) and then execute these commands:
Code: Select all
chmod a+x /var/www/htdocs/cgi-bin/nph-zms
chmod a+x /var/www/htdocs/cgi-bin/zms
Posted: Mon Feb 22, 2010 6:47 am
by dika
ok i will try your steps..then i will let u know...anyway thanks..
Posted: Mon Feb 22, 2010 6:52 am
by dika
mastertheknife wrote:Hi.
It seems your problem is not that you can't capture video, but can't view streams!
Does
http://ZM-COMPUTER-IP/cgi-bin/nph-zms link work for you or does it give forbidden or error 404 (not found) ?
Try copying nph-zms and zms from your ZM's cgi-bin folder (/var/www/zm/cgi-bin probably) to your webserver's cgi-bin folder (/var/www/htdocs/cgi-bin probably) and then execute these commands:
Code: Select all
chmod a+x /var/www/htdocs/cgi-bin/nph-zms
chmod a+x /var/www/htdocs/cgi-bin/zms
hello master.. its seems like the file that u mention does not exist in zm folder. its only has
Code: Select all
ajax css graphics includes js skins temp views
cambozola.jar events images index.php lang sounds tools
is there something wrong with my configuration?
Posted: Mon Feb 22, 2010 4:00 pm
by mastertheknife
It shouldnt be in the zm folder, but in the cgi-bin folder.
Does the link i posted above work for you? it probably does not, and its the reason you can't see streams.
And the paths of the commands are for my system, it may be different for your system. Need to copy nph-zms and zms so when you click on that link it wont say file not found or forbidden.
Posted: Tue Feb 23, 2010 12:44 am
by dika
mastertheknife wrote:It shouldnt be in the zm folder, but in the cgi-bin folder.
Does the link i posted above work for you? it probably does not, and its the reason you can't see streams.
And the paths of the commands are for my system, it may be different for your system. Need to copy nph-zms and zms so when you click on that link it wont say file not found or forbidden.
oic... first i try
http://ip-zoneminder/cgi-bin/nph-zms and it did not come out anything, just a blank page then i try
http://ip-zoneminder/zm/cgi-bin/nph-zms and its prompt me to donlod nph-zms file.
my zm folder inside here
Code: Select all
administrator@Editing:/var/www$ ls
index.html munin zm
and the file for nph-zms and zms inside here
Code: Select all
administrator@Editing:/usr/lib/cgi-bin$ ls
munin-cgi-graph nph-zms zms
so where should i copy that file? is it copy to /var/www/zm ?
Posted: Tue Feb 23, 2010 1:31 am
by whatboy
>>and its prompt me to donlod nph-zms file
Then your CGI is not configurated correctly... I think you have to configure apache with the cgi-bin directory... like maybe in /etc/httpd/conf/httpd.conf file... I don't know, I use Fedora...
greetings
Posted: Tue Feb 23, 2010 4:45 am
by floppyraid
your cgi-bin directory being at:
/var/lib/cgi-bin
should be just fine. to make sure, go to
/etc/apache2/sites-enabled
look in there, more than likely there is only one file called 000-default
open it up and you should see this:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory>
that means that anytime you go to your ((site))/cgi-bin/, it wraps that path to that place on your drive.
but i suspect, and am willing to bet we are experiencing the same problem that i have yet to find an answer for, ive been trying and trying but no luck so far.
first, go to your site a few times and try to watch the stream a few times (where it displays the broken image)
next, on go to
/var/log/apache2
and type
cat error.log
im willing to bet its going to look like something like this
[Mon Feb 22 22:43:18 2010] [error] [client 192.168.1.xxx] array (\n 0 => \n array (\n 'file' => '/var/www/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-241458s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/index.php',\n 'line' => 119,\n 'args' => \n array (\n 0 => '/var/www/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer:
http://192.168.1.xxx:8080/index.php?view=watch&mid=1
is that what you are seeing?
Re: greetings
Posted: Tue Feb 23, 2010 6:45 am
by dika
floppyraid wrote:your cgi-bin directory being at:
/var/lib/cgi-bin
should be just fine. to make sure, go to
/etc/apache2/sites-enabled
look in there, more than likely there is only one file called 000-default
open it up and you should see this:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory>
that means that anytime you go to your ((site))/cgi-bin/, it wraps that path to that place on your drive.
but i suspect, and am willing to bet we are experiencing the same problem that i have yet to find an answer for, ive been trying and trying but no luck so far.
first, go to your site a few times and try to watch the stream a few times (where it displays the broken image)
next, on go to
/var/log/apache2
and type
cat error.log
im willing to bet its going to look like something like this
[Mon Feb 22 22:43:18 2010] [error] [client 192.168.1.xxx] array (\n 0 => \n array (\n 'file' => '/var/www/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-241458s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/index.php',\n 'line' => 119,\n 'args' => \n array (\n 0 => '/var/www/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer:
http://192.168.1.xxx:8080/index.php?view=watch&mid=1
is that what you are seeing?
yups...you are right.... this is the error log..
Code: Select all
[Tue Feb 23 09:04:30 2010] [error] [client 129.X.X.X] array (\n 0 => \n array (\n 'file' => '/usr/share/zoneminder/ajax/stream.php',\n 'line' => 51,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-695077s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/share/zoneminder/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/usr/share/zoneminder/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://129.x.x.x/zm/index.php?view=watch&mid=1
so whats ur advise?
Posted: Tue Feb 23, 2010 7:05 am
by mastertheknife
That error is because the page tries to query fps and progress from the streamer (zms or nph-zms) but if the streamer doesn't run, it can't connect to it and this will generate this error, so its normal.
After you fix your cgi-bin folder, zms and nph-zms should work and this error won't show up.
Posted: Tue Feb 23, 2010 7:11 am
by dika
oic..then how should i fix my nph-zms and zms?