Page 1 of 2
zm-1.21 RPM Problems
Posted: Wed May 18, 2005 3:17 am
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?
Posted: Wed May 18, 2005 9:32 am
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.
Posted: Wed May 18, 2005 2:30 pm
by cordel
I'll look into it.
Mean time you can manualy upgrade the database. Instructions are in the readme.
Regards,
cordel
same problem
Posted: Thu May 19, 2005 6:28 pm
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?
Posted: Fri May 20, 2005 5:28 am
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
where download rpm
Posted: Fri May 20, 2005 7:17 pm
by andres504
where can download the pakage rpm of zonminder
for Fedora core 3
Thank you
Posted: Sat May 21, 2005 12:07 am
by cordel
Downloads section of
http://www.ctuweb.com
Fault on mysql
Posted: Sat May 21, 2005 11:17 pm
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.
Posted: Sun May 22, 2005 12:05 pm
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
I cannot enter
Posted: Tue May 24, 2005 9:13 pm
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....
Posted: Tue May 24, 2005 10:54 pm
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?
Posted: Wed May 25, 2005 5:25 am
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.
Posted: Wed May 25, 2005 7:44 am
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
Posted: Wed May 25, 2005 8:32 am
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.
Posted: Wed May 25, 2005 8:35 am
by cordel
Great, a couple more success stories and I'll add it to the repo