Problems starting zm
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Can you try this and post what you get?zoneminder wrote:Can you confirm that if you do
that you get a row of data out?Code: Select all
mysql -u<your db user> -p<your db pass> <your db> select * from Config where Name = "ZM_SHM_KEY"; quit;
Phil
mysql> select * from Config where Name = "ZM_SHM_KEY";
+-----+------------+------------+-------------+--------------+-------------+-----------------------------------+-----------+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+----------+----------+
| Id | Name | Value | Type | DefaultValue | Hint | Pattern | Format | Prompt | Help | Category | Readonly | Requires |
+-----+------------+------------+-------------+--------------+-------------+-----------------------------------+-----------+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+----------+----------+
| 109 | ZM_SHM_KEY | 0x7a6d2000 | hexadecimal | 0x7a6d2000 | hexadecimal | (?-xism:^(?:0x)?([0-9a-f]{1,8})$) | "0x".$1 | Shared memory root key to use | ZoneMinder uses shared memory to speed up communication between modules. To identify the right area to use shared memory keys are used. This option controls what the base key is, each monitor will have it's Id or'ed with this to get the actual key used. You will not normally need to change this value unless it clashes with another instance of ZoneMinder on the same machine. | system | 0 | |
+-----+------------+------------+-------------+--------------+-------------+-----------------------------------+-----------+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+----------+----------+
1 row in set (0.00 sec)
+-----+------------+------------+-------------+--------------+-------------+-----------------------------------+-----------+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+----------+----------+
| Id | Name | Value | Type | DefaultValue | Hint | Pattern | Format | Prompt | Help | Category | Readonly | Requires |
+-----+------------+------------+-------------+--------------+-------------+-----------------------------------+-----------+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+----------+----------+
| 109 | ZM_SHM_KEY | 0x7a6d2000 | hexadecimal | 0x7a6d2000 | hexadecimal | (?-xism:^(?:0x)?([0-9a-f]{1,8})$) | "0x".$1 | Shared memory root key to use | ZoneMinder uses shared memory to speed up communication between modules. To identify the right area to use shared memory keys are used. This option controls what the base key is, each monitor will have it's Id or'ed with this to get the actual key used. You will not normally need to change this value unless it clashes with another instance of ZoneMinder on the same machine. | system | 0 | |
+-----+------------+------------+-------------+--------------+-------------+-----------------------------------+-----------+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+----------+----------+
1 row in set (0.00 sec)
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I have the same problem when upgrading from 1.21.4
# zmupdate.pl –version=1.21.4
Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
Compilation failed in require at /usr/local/bin/zmupdate.pl line 48.
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 48.
# zmupdate.pl –version=1.21.4
Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
Compilation failed in require at /usr/local/bin/zmupdate.pl line 48.
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 48.
Check your zm.config and make sure that you have the same login info for the database in the new conf.
If you're cut and pasting from one to the other, be aware that the variable ZM_DB_SERVER is now ZM_DB_HOST.
If you filled out the configure line correctly ( same as your previous 1.21.4 build) and added the correct db login to the end on the configure line then it should be set to go.
I suspect that something is off with your zm.conf.
Corey
If you're cut and pasting from one to the other, be aware that the variable ZM_DB_SERVER is now ZM_DB_HOST.
If you filled out the configure line correctly ( same as your previous 1.21.4 build) and added the correct db login to the end on the configure line then it should be set to go.
I suspect that something is off with your zm.conf.
Corey
Check all your logs and make sure that access to the database is not being denied. I'm not sure yet how to check to see where zm thinks its zm.conf should be but you might look in /usr/local/etc and make sure that is not one there ( I think this is the default location if you don't specify in the configure).
Corey
Corey
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
zmfix completes successfully. zmupdate dies with the same error
Code: Select all
$ zmpkg.pl
Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: