Page 1 of 1
Gentoo 2.6.4 and no image
Posted: Tue Mar 30, 2004 1:49 pm
by bigd
I'm getting the following errors at the moment as displayed in my /var/log/messages.
Mar 30 14:36:28 galileo zmfix[13730]: INF [Debug Level = 0, Debug Log = ]
Mar 30 14:36:34 galileo zms[13732]: INF [Debug Level = 0, Debug Log = ]
Mar 30 14:36:34 galileo zms[13732]: ERR [Shared memory not initialised by capture daemon]
Any idea? The installation went relatively well with no image being displayed yet however I'm sure this is due to this issue which needs to be resolved first.
The rest of the system pretty much rocks running Apache, MySQL, DNS but this is my first time with Cameras under Linux. I've checked the camera's and cards and these work perfectly under Windows. Only did that to prove the equipment wasn't faulty. Initially I'd used a couple of other different cards suspecting it was these as there were a few issues but having brought a very nice card from Phillip I know thats not the problem anymore.
Any ideas? Really appreciated
Davin S. George
Re: Gentoo 2.6.4 and no image
Posted: Tue Mar 30, 2004 1:59 pm
by zoneminder
Hi Davin,
It may be a stupied question but did you start ZM? I can't tell from just the lines you posted whether it's running or not. Check all the other zm*.log files and see if anything suspicious is reported in those, otherwise post a bit more of you messages file.
Phil,
Re: Gentoo 2.6.4 and no image
Posted: Tue Mar 30, 2004 2:55 pm
by bigd
Hi Phil,
I'm doing the /usr/local/zoneminder/bin/zmpkg.pl start
which unfortunately doesn't display anything. Actually have a blank line appear when I do a status as well.
against that.
Checked the /var/log/messages which now shows the following after the start:
Mar 30 15:49:24 galileo zmu[3364]: ERR [Shared memory not initialised by capture daemon]
Mar 30 15:49:24 galileo zmu[3366]: ERR [Shared memory not initialised by capture daemon]
Mar 30 15:49:24 galileo zmu[3371]: ERR [Shared memory not initialised by capture daemon]
Have this showing in the /var/zoneminder/zmpkg.log file:
Command: start
Executing: su apache --shell=/bin/sh --command='/usr/local/zoneminder/bin/zmdc.pl check'
Command: status
Executing: su apache --shell=/bin/sh --command='/usr/local/zoneminder/bin/zmdc.pl check'
But now I suspect its not starting at all. Any ideas
Davin
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 9:07 am
by zoneminder
I don't know if this applies to Gentoo but Slackware for example doesn't seem to like the format of the su statements in zmpkg.pl(.z). Can you execute a command in the format above manually? If not you may need to change
$command = “su “.ZM_WEB_USER.” --shell=/bin/sh --command=’$command’”;
to
$command = “su “.ZM_WEB_USER.” –c ’$command’”;
in zmpkg.pl(.z)
Phil,
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 10:28 am
by bigd
Phil,
Thanks for that. Okay down to this in the /var/log/messages:
Mar 31 11:24:44 galileo zmu[9364]: ERR [Can't open Camera-1.jpg: Permission denied]
Mar 31 11:24:45 galileo zmu[9370]: ERR [Can't open Camera-1.jpg: Permission denied]
Mar 31 11:24:57 galileo zmc-d0[8605]: INF [Camera-1: 3000 - Capturing at 4.17 fps]
Mar 31 11:24:57 galileo zmc-d0[8605]: INF [Camera-2: 3000 - Capturing at 4.17 fps]
Using the /usr/local/bin/zmpkg.pl start we now show a status of running. Appears down to permissions now though. Definitely permissions. Just changed the permissions to 777 for the images directory and something is appearing. Now to check the camera itself.
Thanks for ALL the help. I owe you a couple of beers. Just gotta document the changes. Didn't realise Gentoo was going to be the problems its been. Using it long enough but mainly for other types of servers so this has never been a problem.
Now some fine tuning and reinstallation etc. Thanks again
Davin
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 10:32 am
by bigd
Phil,
Thanks for that. Okay down to this in the /var/log/messages:
Mar 31 11:24:44 galileo zmu[9364]: ERR [Can't open Camera-1.jpg: Permission denied]
Mar 31 11:24:45 galileo zmu[9370]: ERR [Can't open Camera-1.jpg: Permission denied]
Mar 31 11:24:57 galileo zmc-d0[8605]: INF [Camera-1: 3000 - Capturing at 4.17 fps]
Mar 31 11:24:57 galileo zmc-d0[8605]: INF [Camera-2: 3000 - Capturing at 4.17 fps]
Using the /usr/local/bin/zmpkg.pl start we now show a status of running. Appears down to permissions now though. Definitely permissions. Just changed the permissions to 777 for the images directory and something is appearing. Now to check the camera itself.
Thanks for ALL the help. I owe you a couple of beers. Just gotta document the changes. Didn't realise Gentoo was going to be the problems its been. Using it long enough but mainly for other types of servers so this has never been a problem.
Now some fine tuning and reinstallation etc. Thanks again
Davin
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 12:39 pm
by bigd
Hmmmmm Did a recompile and getting the following now:
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/03/31 13:37:58
'zmc -d 0' starting at 04/03/31 13:37:58, pid = 10309
'zmc -d 0' crashed at 04/03/31 13:37:58, exit status 255
I had recompiled the entire application using:
./configure --prefix=/usr/local/zoneminder --exec-prefix=/usr/local/zoneminder --with-ffmpeg=/usr/src/ffmpeg-0.4.8 --with-mysql=/usr --with-lame=/usr --with-webdir=/data/www/Virtuals/zoneminder/www --with-cgidir=/data/www/Virtuals/zoneminder/cgi-bin
with the source in /usr/src/ffmpeg being compiled with the standard options:
./configure --prefix=/usr --enable-mp3lame
The application is at least now starting but this crash is occuring :-( Hence no display. Sorry to be such a pain
Davin
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 1:13 pm
by bigd
Hmmmmm Did a recompile and getting the following now:
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/03/31 13:37:58
'zmc -d 0' starting at 04/03/31 13:37:58, pid = 10309
'zmc -d 0' crashed at 04/03/31 13:37:58, exit status 255
I had recompiled the entire application using:
./configure --prefix=/usr/local/zoneminder --exec-prefix=/usr/local/zoneminder --with-ffmpeg=/usr/src/ffmpeg-0.4.8 --with-mysql=/usr --with-lame=/usr --with-webdir=/data/www/Virtuals/zoneminder/www --with-cgidir=/data/www/Virtuals/zoneminder/cgi-bin
with the source in /usr/src/ffmpeg being compiled with the standard options:
./configure --prefix=/usr --enable-mp3lame
The application is at least now starting but this crash is occuring :-( Hence no display. Sorry to be such a pain
Davin
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 1:40 pm
by zoneminder
Check in /var/log/messages, I suspect it's something fairly straightforward.
Phil,
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 2:08 pm
by bigd
Phil,
Yep, checked that, this is what I'm getting at present:
Mar 31 15:06:52 galileo zmu[3694]: ERR [Shared memory not initialised by capture daemon]
Mar 31 15:06:52 galileo zmu[3696]: ERR [Shared memory not initialised by capture daemon]
Mar 31 15:06:53 galileo zmu[3701]: ERR [Shared memory not initialised by capture daemon]
I tried to disable the Shared Memory Variable but didn't fix it so put it back to this. Would this have anything to do with ffmpeg if its been built with shared-memory enabled? As I'm on Gentoo I've done the ebuild install which may have done done this. I built the source for ffmpeg in its own directory of /usr/src/ffmpeg-0.4.8 which is referenced in the .confgure script for installing zoneminder.
Davin
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 2:19 pm
by zoneminder
Have you looked a bit further back in the log, something from zmc so it will have zmc in the place where the above have zmu.
Phil,
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 2:29 pm
by bigd
Hi Phil,
Was actually just doing that at the same time. Its showing the following:
Mar 31 15:27:16 galileo zmu[3902]: ERR [Can't shmget: Invalid argument]
Mar 31 15:27:16 galileo zmu[3904]: ERR [Can't shmget: Invalid argument]
Mar 31 15:27:17 galileo zmu[3908]: ERR [Can't shmget: Invalid argument]
Mar 31 15:27:32 galileo zmc-d0[3910]: INF [Debug Level = 0, Debug Log = ]
Mar 31 15:27:32 galileo zmc-d0[3910]: ERR [Failed to set window attributes: Invalid argument]
But at least the daemon is showing as running now. I'd just gone back to check it. So the startup script component is working correctly. Still no image but I'm now beginning to think it that maybe its the ebuild process for Gentoo with ffmpeg as I'm beginning to suspect its built with a enable-shared by default.
Davin
Re: Gentoo 2.6.4 and no image
Posted: Wed Mar 31, 2004 2:38 pm
by zoneminder
I very much doubt that ffmpeg has anything to do with this. The error you are seeing is quite a common one and is usually either (a) because you are trying to set the camera to capture at something like 197x253 or other unsupported resolution or palette etc or (b), more commonly, the driver just objects to something but does do what it's told. In which case you need to set STRICT_VIDEO_CONFIG to off, see the Faq for a bit more info.
Phil,