Problems with 1.24.3

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Problems with 1.24.3

Post by lyallp »

I just upgraded from 1.24.2, which was working.
Now, I am unable to 'watch' captured events.
I see the following errors in my apache error log

Code: Select all

[Tue May 24 09:44:44 2011] [error] [client 127.0.0.1] PHP Warning:  localtime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Jayapura' for 'CST/9.0/no DST' instead in /var/www/zoneminder/htdocs/includes/functions.php on line 136, referer: http://localhost/zoneminder/index.php?view=events&page=1&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=3

[Tue May 24 09:44:48 2011] [error] [client 127.0.0.1] socket_sendto( /var/run/zm/zms-011488s.sock ) failed: No such file or directory, referer: http://localhost/zoneminder/index.php?view=event&eid=5278&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=3&sort_field=StartTime&sort_asc=0&page=1
[Tue May 24 09:44:48 2011] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/zoneminder/htdocs/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /var/run/zm/zms-011488s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/zoneminder/htdocs/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/zoneminder/htdocs/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/zoneminder/index.php?view=event&eid=5278&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=3&sort_field=StartTime&sort_asc=0&page=1

[Tue May 24 09:44:53 2011] [error] [client 127.0.0.1] socket_sendto( /var/run/zm/zms-011488s.sock ) failed: No such file or directory, referer: http://localhost/zoneminder/index.php?view=event&eid=5278&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=3&sort_field=StartTime&sort_asc=0&page=1
[Tue May 24 09:44:53 2011] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/zoneminder/htdocs/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /var/run/zm/zms-011488s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/zoneminder/htdocs/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/zoneminder/htdocs/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/zoneminder/index.php?view=event&eid=5278&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=3&sort_field=StartTime&sort_asc=0&page=1
(blank lines inserted for clarity)
I also see in the system log

Code: Select all

May 24 09:44:45 pearcely zms[18020]: INF [Debug Level = 0, Debug Log = <none>]
May 24 09:44:45 pearcely zms[18020]: ERR [Attempt to fetch string value for ZM_COLOUR_JPEG_FILES, actual type is boolean. Try running 'zmupdate.pl -f' to reload config.]
May 24 09:44:45 pearcely zms[18022]: INF [Debug Level = 0, Debug Log = <none>]
May 24 09:44:45 pearcely zms[18022]: ERR [Attempt to fetch string value for ZM_COLOUR_JPEG_FILES, actual type is boolean. Try running 'zmupdate.pl -f' to reload config.]
I have tried doing the zmupdate.pl, I have applied the /usr/share/zoneminder/db/zm_update-1.24.2.sql
I have completely re-started apache and zoneminder.
Nothing obvious in the /var/log/zoneminder/*.log files

Suggestions?

I am running on Gentoo linux, 32 bit, fully patched up, php 5.3.6, mysql 5.1.56.
...Lyall
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Re: Problems with 1.24.3

Post by lyallp »

I should mention that alarms, recording and everything seem to work fine.
I just can't view the event as an 'animated series of jpegs', like I used to. When I try, I see the above messages generated.
I can view individual images, but that is tedious :)
...Lyall
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Problems with 1.24.3

Post by cordel »

lyallp wrote:[Tue May 24 09:44:48 2011] [error] [client 127.0.0.1] socket_sendto( /var/run/zm/zms-011488s.sock ) failed: No such file or directory, referer: http://localhost/zoneminder/index.php?v ... c=0&page=1
This pretty much says that the socket file is either not being read where it is expected. Check and make sure the socket file is actually being created. Usually just a permissions error. So just be sure that /var/run/zm/ is owned by the apache user/group for your Distro and has read/write/create access for that folder.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Problems with 1.24.3

Post by mastertheknife »

The errors on your apache log are because zms is not starting.
And there is no need to diagnose even further, you already found the reason why zms is not starting.
I suggest trying to remove the row for "ZM_COLOUR_JPEG_FILES" from the Config table. ZM 1.24.3 should re-create it.

mastertheknife
Kfir Itzhak.
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Re: Problems with 1.24.3

Post by lyallp »

Thanks for taking the time to answer, much appreciated.

I tried deleting the ZM_COLOUR_JPEG_FILES entry, yes, it was re-created, the error persists.
The socket is there, it's called /var/run/zm/zmdc.sock, not /var/run/zm/zms-681590s.sock

All log files in /var/log/zoneminder (zmudit.log, zmdc.log, zmfilter.log, zmpkg.log, zmupdate.log ,zmvideo.log, zmwatch.log) all give no indication of errors.

In particular, zmdc.log

Code: Select all

27/05/11 10:48:44.260845 zmdc[5503].INF [Server starting at 11/05/27 10:48:44]
27/05/11 10:48:47.391745 zmdc[5503].INF ['zmc -d /dev/video0' starting at 11/05/27 10:48:47, pid = 5528]
27/05/11 10:48:47.526793 zmdc[5503].INF ['zma -m 3' starting at 11/05/27 10:48:47, pid = 5533]
27/05/11 10:48:47.659377 zmdc[5503].INF ['zmfilter.pl' starting at 11/05/27 10:48:47, pid = 5538]
27/05/11 10:48:47.798600 zmdc[5503].INF ['zmaudit.pl -c' starting at 11/05/27 10:48:47, pid = 5543]
27/05/11 10:48:47.996736 zmdc[5503].INF ['zmwatch.pl' starting at 11/05/27 10:48:47, pid = 5550]
27/05/11 10:48:48.137633 zmdc[5503].INF ['zmupdate.pl -c' starting at 11/05/27 10:48:48, pid = 5555]
I still see in the apache error log

Code: Select all

[Fri May 27 10:49:31 2011] [error] [client 127.0.0.1] socket_sendto( /var/run/zm/zms-681590s.sock ) failed: No such file or directory, referer: http://localhost/zoneminder/index.php?view=event&eid=5393&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=3&sort_field=StartTime&sort_asc=0&page=1
[Fri May 27 10:49:31 2011] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/zoneminder/htdocs/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /var/run/zm/zms-681590s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/zoneminder/htdocs/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/zoneminder/htdocs/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/zoneminder/index.php?view=event&eid=5393&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=3&sort_field=StartTime&sort_asc=0&page=1
[Fri May 27 10:54:14 2011] [error] [client 127.0.0.1] PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Jayapura' for 'CST/9.0/no DST' instead in /var/www/zoneminder/htdocs/includes/functions.php on line 1427, referer: http://localhost/zoneminder/index.php
I am happy to paste part of a relevant source file or supply any underlying versions (php? perl?), to see if my installation is correct.
...Lyall
Locked