zm-1.21 RPM Problems

Support and queries relating to all previous versions of ZoneMinder
acrisp
Posts: 13
Joined: Wed May 18, 2005 3:09 am

zm-1.21 RPM Problems

Post by acrisp »

Hi,

I just installed the latest Fedora rpm via the yum repo and it doesn't work.

I only recently installed the previous version (1.20.1) and it worked fine.

It downloads fine, but once I try and run:

/usr/lib/zm/bin/zminit

I get:

# /usr/lib/zm/bin/zminit
Enter MySQL Administrator username: root
Enter password:
ERROR 1062 at line 377: Duplicate entry 'admin' for key 3 <--- (I can fix this by dropping the 'zm' database)

This is the main error:

Global symbol "$first_run" requires explicit package name at /usr/lib/zm/init/zmoptions line 1396.
Execution of /usr/lib/zm/init/zmoptions aborted due to compilation errors.

Can't seem to work out why this might be.

Any ideas?
acrisp
Posts: 13
Joined: Wed May 18, 2005 3:09 am

Post by acrisp »

I uninstalled 1.21.0 and re-installed 1.20.1-7, as expected, works fine.

I then tried an upgrade:

rpm -Uvh zm-1.21.0-0.FC3.CTU.i386.rpm

then tried service zm start and get the same error:

Upgrade ZoneMinder database: Global symbol "$first_run" requires explicit package name at zmoptions line 1396.
Execution of zmoptions aborted due to compilation errors.
[FAILED]

It's when it's updating the zm database for the first time.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I'll look into it.
Mean time you can manualy upgrade the database. Instructions are in the readme.
Regards,
cordel
stiperstones
Posts: 5
Joined: Thu May 19, 2005 10:56 am

same problem

Post by stiperstones »

I are also now recieving the same code
acrisp
Hi,

I just installed the latest Fedora rpm via the yum repo and it doesn't work.

I only recently installed the previous version (1.20.1) and it worked fine.

It downloads fine, but once I try and run:

/usr/lib/zm/bin/zminit

I get:

# /usr/lib/zm/bin/zminit
Enter MySQL Administrator username: root
Enter password:
ERROR 1062 at line 377: Duplicate entry 'admin' for key 3 <--- (I can fix this by dropping the 'zm' database)

This is the main error:

Global symbol "$first_run" requires explicit package name at /usr/lib/zm/init/zmoptions line 1396.
Execution of /usr/lib/zm/init/zmoptions aborted due to compilation errors.

Can't seem to work out why this might be.

Any ideas?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You should not run zminit on an upgrade. The upgrade script is called when zm restarts. If you have problems upgrading you can also do so manualy as in the readme. I'm still looking into the other error.
Regards,
Cordel
andres504
Posts: 19
Joined: Wed Jul 21, 2004 9:25 pm

where download rpm

Post by andres504 »

where can download the pakage rpm of zonminder
for Fedora core 3

Thank you
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Downloads section of
http://www.ctuweb.com
stiperstones
Posts: 5
Joined: Thu May 19, 2005 10:56 am

Fault on mysql

Post by stiperstones »

when i look at the mysql it is saying that the same id keys are having a primary key set and indexing on the same column. creating a error. do not now how to fix.

also Mysql does not like having the same user adding twice namely user "admin" password "admin" into the database has users 1 has to be Admin with capital A and user 2 has to be admin all in lowercase or change user 2 to zoneminder password zoneminder in the to be the resticted user to read the binary part of the database. This happens in your rpm and installing from the tar file the mysql schema needs changinig for both.
This happens in manual instaliton of mysql and /usr/lib/zm/init/zmoptions
Also stops your starting up the service rm.

this is happenig on fedora core 3.
stiperstones
Posts: 5
Joined: Thu May 19, 2005 10:56 am

Post by stiperstones »

Cordel
I have done a small hack at my machine that is remove the indexing off the files that have

the 2 keys set on the same column name.

zm then started up as a service automaticaly no errors.

i know this is not the correct way but trying to help.

I use phpmyadmin to create mysql databases it allow me to see the fault clearly

stiperstones
andres504
Posts: 19
Joined: Wed Jul 21, 2004 9:25 pm

I cannot enter

Post by andres504 »

when I go away to http://localhost/zm requests username and password to me entrance the one that forms in /etc/zm.conf and click login, and it does not pass anything, it does not enter any screen

thanks....
acrisp
Posts: 13
Joined: Wed May 18, 2005 3:09 am

Post by acrisp »

Try the admin/admin for the username/password.

I still can't get this RPM working. I've deleting the database, started from scratch, upgraded, downgraded, re-installed, etc etc.. The error is what I've posted above:

Global symbol "$first_run" requires explicit package name at zmoptions line 1396.
Execution of zmoptions aborted due to compilation errors.

Does anyone have any instructions on how to fix it?
sgtdawg
Posts: 17
Joined: Wed May 25, 2005 5:07 am
Location: Twin Cities, MN

Post by sgtdawg »

I am really new to this great product and am having the same problems listed here. When I try to start the zm service on my machine I get the following error:

Code: Select all

[root@dvr ~]# service zm start
Initialize ZonMinder database: ERROR 1062 at line 377: Duplicate entry 'admin' for key 3
                           [FAILED]
I then tried to run the zminit script and get the following (same) errors:

Code: Select all

[root@dvr ~]# /usr/lib/zm/bin/zminit
Enter MySQL Administrator username: root
Enter password:
ERROR 1062 at line 377: Duplicate entry 'admin' for key 3
Global symbol "$first_run" requires explicit package name at /usr/lib/zm/init/zmoptions line 1396.
Execution of /usr/lib/zm/init/zmoptions aborted due to compilation errors. 
I am running a fresh install of Fedora core 3 with the standard workstation install. I installed the zm-1.21.0-0.FC3.CTU package through yum and all the dependencies that came with it.
I installed mysql-server-3.23.58-16.FC3.1 through fedora updates-released repo.

Looks like a wonderful product, I can't wait to get it up and running.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I think this should work. Give it a go and let me know.
ftp://www.ctu-web.com/pub/linux/zonemin ... /testing/3
Regards,
Cordel
acrisp
Posts: 13
Joined: Wed May 18, 2005 3:09 am

Post by acrisp »

# rpm -Uvh zm-1.21.0-10.FC3.SEL.CTU.i386.rpm
Preparing... ########################################### [100%]
1:zm ########################################### [100%]

# service zm start
Upgrade ZoneMinder database: Loading config from 'zmconfig.txt'
Loading config from '/etc/zm.conf'
Loading config from DB
Saving config to DB
[ OK ]
Starting ZoneMinder: [ OK ]

It works!!

Well done, and thank you. Very happy about this.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Great, a couple more success stories and I'll add it to the repo :wink:
Locked