Page 1 of 1

Problems after 1.19.4 -> 1.20.1 upgrade

Posted: Sun Feb 20, 2005 11:55 pm
by gargoyle
Hi,

I've just upgraded to 1.20.1 and now my installation does not work.

I'm getting the following error when running zmc -d 0: (manually, it doesn't exit straight away)

Code: Select all

Feb 21 12:49:41 encoder zmc_d0[6154]: INF [Debug Level = 0, Debug Log = <none>]
Feb 21 12:49:41 encoder zmc_d0[6154]: ERR [Failed to set window attributes: Invalid argument]
Feb 21 12:49:41 encoder zmc_d0[6154]: INF [Starting Capture]
Then when i try to actually view a monitor I get:

Code: Select all

Feb 21 12:50:10 encoder zms[6160]: INF [Debug Level = 0, Debug Log = ]
Feb 21 12:50:10 encoder zms[6160]: WAR [Attempt to fetch boolean value for ZM_PATH_CAMBOZOLA, actual type is string]
Feb 21 12:50:10 encoder zms[6160]: WAR [Attempt to fetch boolean value for ZM_WATCH_CHECK_INTERVAL, actual type is integer]
Feb 21 12:50:10 encoder zms[6160]: WAR [Attempt to fetch boolean value for ZM_WATCH_MAX_DELAY, actual type is decimal]
Feb 21 12:50:10 encoder zms[6160]: WAR [Attempt to fetch boolean value for ZM_JPEG_IMAGE_QUALITY, actual type is integer]
Feb 21 12:50:10 encoder zms[6160]: WAR [Attempt to fetch boolean value for ZM_FORCED_ALARM_SCORE, actual type is integer]
Feb 21 12:50:10 encoder zms[6160]: WAR [Attempt to fetch integer value for ZM_URL, actual type is string]
Feb 21 12:50:10 encoder zms[6160]: ERR [Shared memory not initialised by capture daemon]
... which displays an "Error 500 - Internal Server Error" web-page instead of the monitor image.

I believe I have the shared memory settings correct, as it used to work just fine with 1.19.4:

Code: Select all

encoder:/tmp# ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x00000000 32768      root      600        737284     10         dest         
0x7a6d2004 491521     root      700        10138348   1                       
0x7a6d2003 524290     root      700        9360748    1                       
0x00000143 294915     www-data  700        9360448    0                       
0x00000144 327684     www-data  700        10138048   0           

encoder:/tmp# cat /proc/sys/kernel/shmall 
134217728
encoder:/tmp# cat /proc/sys/kernel/shmmax 
134217728
Looking at the apache log file, I'm seeing:

Code: Select all

[Mon Feb 21 12:50:10 2005] [error] [client 203.98.56.249] Premature end of script headers: /usr/lib/cgi-bin/zms
I am running Debian - Unstable, with a 2.4.5 kernel... everything compiled cleanly.

Any ideas?

Posted: Sun Feb 20, 2005 11:58 pm
by zoneminder
It looks like your new config has not been imported into the DB correctly. Try running 'perl zmconfig.pl' and re-answering the DB config questions at least before exiting and rebuilding, reinstalling etc.

Phil

Posted: Mon Feb 21, 2005 12:12 am
by gargoyle
I have just tried completely removing the old zm database, re-running zmconfig.pl, then rebuilding the database.

I'm still getting:

Code: Select all

Feb 21 13:09:25 encoder zmc_d0[7245]: INF [Debug Level = 0, Debug Log = <none>]
Feb 21 13:09:25 encoder zmc_d0[7245]: ERR [Failed to set window attributes: Invalid argument]
Feb 21 13:09:25 encoder zmc_d0[7245]: INF [Starting Capture]
Feb 21 13:09:31 encoder zms[7273]: INF [Debug Level = 0, Debug Log = ]
Feb 21 13:09:31 encoder zms[7273]: WAR [Attempt to fetch boolean value for ZM_PATH_CAMBOZOLA, actual type is string]
Feb 21 13:09:31 encoder zms[7273]: WAR [Attempt to fetch boolean value for ZM_WATCH_CHECK_INTERVAL, actual type is integer]
Feb 21 13:09:31 encoder zms[7273]: WAR [Attempt to fetch boolean value for ZM_WATCH_MAX_DELAY, actual type is decimal]
Feb 21 13:09:31 encoder zms[7273]: WAR [Attempt to fetch boolean value for ZM_JPEG_IMAGE_QUALITY, actual type is integer]
Feb 21 13:09:31 encoder zms[7273]: WAR [Attempt to fetch boolean value for ZM_FORCED_ALARM_SCORE, actual type is integer]
Feb 21 13:09:31 encoder zms[7273]: WAR [Attempt to fetch integer value for ZM_URL, actual type is string]
Feb 21 13:09:31 encoder zms[7273]: ERR [Shared memory not initialised by capture daemon]

Posted: Mon Feb 21, 2005 12:21 am
by gargoyle
Ahh... My bad.

Discovered the wrong zms was being run... that seems to have fixed most of those errors...

Posted: Mon Feb 21, 2005 12:28 am
by gargoyle
Yep, all working again now...

Thanks for your quick response!