Bareword "ZM_USE_DEEP_STORAGE" not allowed while &

Support and queries relating to all previous versions of ZoneMinder
Locked
jeangot
Posts: 4
Joined: Thu Sep 27, 2007 8:44 pm

Bareword "ZM_USE_DEEP_STORAGE" not allowed while &

Post by jeangot »

Hello,

I tried installing the RC1 over a working install of 1.22. Now when trying to start zoneminder, I get the following error from perl:

asterisk:/usr/local/bin # zmpkg.pl start
Bareword "ZM_USE_DEEP_STORAGE" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder/General.pm line 127.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder.pm line 35.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder.pm line 35.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 45.

The error seems pretty straightforward to me, but please let me know if I am doing something wrong. Also please let me know if you need more debug information.

Thank you!

Jean
hushpuppy
Posts: 147
Joined: Wed Aug 08, 2007 10:28 am

Post by hushpuppy »

I had the same problem, you need to run zmupdate.pl like this

zmupdate.pl -v 1.22.3 -u [user name] -p [password]

username doesnt have to be the zoneminder user, just a user with sufficient privileges.

Hope this helps
jeangot
Posts: 4
Joined: Thu Sep 27, 2007 8:44 pm

Post by jeangot »

Hello,

thank you so much! That worked great.
For others reading this post, the username and password that hushpuppy is talking about is a mysql username and password.

Unfortunately 1.23 did not resolve the problem I am having trying to capture from a GS1200G, only the error message seems to be a bit more detailed in 1.23 than in 1.22.3.

Not sure if I should continue this disussion here or downgrade back to 1.22.3 and discuss in the other forum?

For info, the error message log I'm getting is:

Sep 27 15:19:48 asterisk zmdc[20148]: INF [Starting pending process, zmc -m 1]
Sep 27 15:19:48 asterisk zmdc[20148]: INF ['zmc -m 1' starting at 07/09/27 15:19:48, pid = 20203]
Sep 27 15:19:48 asterisk zmdc[20203]: INF ['zmc -m 1' started at 07/09/27 15:19:48]
Sep 27 15:19:48 asterisk zmc_m1[20203]: INF [Debug Level = 0, Debug Log = <none>]
Sep 27 15:19:48 asterisk zmc_m1[20203]: INF [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.20203]
Sep 27 15:19:48 asterisk zmc_m1[20203]: INF [Starting Capture]
Sep 27 15:19:52 asterisk zmdc[20148]: INF [Starting pending process, zmfilter.pl]
Sep 27 15:19:52 asterisk zmdc[20216]: INF ['zmfilter.pl' started at 07/09/27 15:19:52]
Sep 27 15:19:52 asterisk zmdc[20148]: INF ['zmfilter.pl' starting at 07/09/27 15:19:52, pid = 20216]
Sep 27 15:19:52 asterisk zmdc[20148]: ERR ['zmfilter.pl ' exited abnormally, exit status 9]
Sep 27 15:19:53 asterisk zmc_m1[20203]: ERR [Select timed out]
Sep 27 15:19:53 asterisk zmc_m1[20203]: ERR [Unable to read subheader]
Sep 27 15:19:53 asterisk zmc_m1[20203]: ERR [Unable to get response]
Sep 27 15:19:53 asterisk zmc_m1[20203]: ERR [Failed to post-capture monitor 0]
Sep 27 15:19:53 asterisk zmdc[20148]: ERR ['zmc -m 1' exited abnormally, exit status 255]

Yet the stream from the camera works fine at /cgi-bin/getimage.cgi?motion=1 if I look at it from Firefox.

The headers shown with WGET are:

---request begin---
GET /cgi-bin/getimage.cgi?motion=1 HTTP/1.0
User-Agent: Wget/1.9.1
Host: 192.168.78.20
Accept: */*
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... HTTP/1.0 200 OK
Date: Thu, 06 Jan 2000 19:19:36 GMT
Server: WYM/1.0
Connection: close
Content-Type: multipart/x-mixed-replace;boundary=IPCAMBOUNDARY
Pragma: no-cache
Cache-Control: no-cache
Last-Modified: Thu, 06 Jan 2000 19:19:36 GMT



I tried Zoneminder with both regexp and no regexp, as well as HTTP 1.0 and 1.1 as mentionned in other posts with no luck.

Any suggestions would be appreciated, or let me know if I should repost this in a different forum.

Thank you again for the quick reply to my initial problem. I wish I had posted I week ago, but I figured I would just wait for an RC2 and it would resolve my problem :-)

Jean
hushpuppy
Posts: 147
Joined: Wed Aug 08, 2007 10:28 am

Post by hushpuppy »

thank you so much! That worked great.
No problem thats why i visit the forum, not just for help, but to give it too.

As for downgrading, youve another option, why not use my live cd ( http://www.doubleburgerbar.com/watchdog ), and use that instead for testing, it leaves your current installation intact, and doesnt require a hard drive.
ricks03

zmupdate also throws the ZM_USE_DEEP_STORAGE error

Post by ricks03 »

Running zm 1.22.3 and trying to update to 1.23.x or 1.24.x, and this suggestion sounds great but throws the same error as starting ZM:

[root@glutton ZoneMinder-1.24.1]# zmupdate.pl -v 1.22.3 -u zmuser -p zmpass
Warning, overriding installed ./zm.conf file with local copy
Bareword "ZM_USE_DEEP_STORAGE" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/General.pm line 95.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/General.pm line 113.
Compilation failed in require at /usr/local/bin/zmupdate.pl line 51.
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 51.
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Re: zmupdate also throws the ZM_USE_DEEP_STORAGE error

Post by henke »

ricks03 wrote:Running zm 1.22.3 and trying to update to 1.23.x or 1.24.x, and this suggestion sounds great but throws the same error as starting ZM:

[root@glutton ZoneMinder-1.24.1]# zmupdate.pl -v 1.22.3 -u zmuser -p zmpass
Warning, overriding installed ./zm.conf file with local copy
Bareword "ZM_USE_DEEP_STORAGE" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/General.pm line 95.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/General.pm line 113.
Compilation failed in require at /usr/local/bin/zmupdate.pl line 51.
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 51.
I have Exactly the same problem.

Anyone found a solution for it?

The database is quite full of relatively important events, users etc. so I cant really go and delete it.
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

Yep. For some reason or other the SQL to add the appropriate entry has escaped the normal string of updates. You'll need to do it by hand.

In db/zm_create.sql, find the line which starts:

Code: Select all

insert into Config set Id = 8, Name = 'ZM_USE_DEEP_STORAGE',
Then go into mysql and run that one insert manually:

Code: Select all

# mysql <zm_db_name> -u<user> -p<password>
.
.
.
> insert into Config set Id = 8, Name = 'ZM_USE_DEEP_STORAGE', ...rest.of.a.great.long.line...;
Then go back and re-try your update...
Rick Hewett
Locked