Page 2 of 3
Posted: Fri Feb 16, 2007 3:13 am
by PeterHoward
i did the exit 0 and it almost worked.. Had to do it do .prerm file too.
Ooops, thanks for pointing that out.
Then i reinstalled the zoneminder deb.. but...
debian1:/tmp# dpkg -i zoneminder_1.22.3-1_i386.deb
A seleccionar pacote anteriormente não seleccionado zoneminder
(Lendo a base de dados ... 18677 ficheiros e directórios actualmente instalados.)
A descompactar zoneminder (desde zoneminder_1.22.3-1_i386.deb) ...
A instalar zoneminder (1.22.3-1) ...
Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
failure
invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: erro processando zoneminder (--install):
subprocesso post-installation script retornou erro do status de saída 255
Foram encontrados erros enquanto processava:
zoneminder
It seems you need to create a zmuser in mysql...
You shouldn't have to. However . . . I've just had a look in my mysql db, and it looks like I have zmuser hanging around from my original source install experiments.
In summary: 'DOH!
Note to self: Test on CLEAN system. Note to self: Test on CLEAN system.
I'll do the very quick and dirty fix to that and update the packages, then I'll work out a cleaner fix.
Posted: Fri Feb 16, 2007 3:17 am
by stackbit
after
mysql> GRANT ALL PRIVILEGES ON *.* TO 'zmuser'@'localhost' IDENTIFIED BY 'zmpass';
and dpkg -P zoneminder and reinstalling zoneminder installed sucessfully.
But still.. no
http://localhost/zm
Posted: Fri Feb 16, 2007 3:21 am
by PeterHoward
stackbit wrote:after
mysql> GRANT ALL PRIVILEGES ON *.* TO 'zmuser'@'localhost' IDENTIFIED BY 'zmpass';
and dpkg -P zoneminder and reinstalling zoneminder installed sucessfully.
But still.. no
http://localhost/zm
That last bit, at least, is intentional. And there's actually documentation for that!
Take a look in /usr/share/doc/zoneminder/README.Debian
I'm still in two minds as to whether to make this automatic or not.
Posted: Fri Feb 16, 2007 3:24 am
by stackbit
it seems that the apache2 - sites-available sites-enabled
directories do not have links to the /etc/zm/apache.conf
(correct me if i am wrong..)
Either way.. Keep up the good work, Peter.
A zoneminder package in the unstable branch would be a godsend to my zoneminder instalations. i was almost going to gentoo in some machines because of zoneminder...
maybe i will have... Damn deadlines...
Anyway thank you, and if i can be any assistance please ask.
Posted: Fri Feb 16, 2007 3:35 am
by PeterHoward
stackbit wrote:
Anyway thank you, and if i can be any assistance please ask.
If you look at my ftp site, you'll now see the version is 1.22.3-2. Hopefully this one will install without the previous pain. I've also removed the "set -e" from the postrm for now.
If you have the scope to do a clean install of the -2 version to cross-check my sanity and make sure that problem has gone, that would be helpful.
Thanks for the detailled feedback.
Posted: Fri Feb 16, 2007 3:52 am
by stackbit
Read the README!
i will do the install tomorrow morning.. It's 4:00 AM in here (Portugal, Europe)
I badly need some ZZZ's.
Thankx again . I will post a reply in here.
Apology
Posted: Fri Feb 16, 2007 10:08 pm
by nodesyn
Yes please do forgive my tone in that I was in the middle of 10 things at once as usual... and i wasn't very pleased about being stuck in dpkg hell heh.. I do appreciate your effort... I feel like an ass now
Didn't realize I was actually being rude.
Posted: Sat Feb 17, 2007 12:52 am
by Sully
Hello,
First of all THANKS to Peter and the makers for the package and ZM.
I did a 1.22.3-2 install on a fresh Ubuntu install this afternoon and cannot run
http://localhost/zm
I get:
Not Found
The requested URL /zm was not found on this server
In a terminal window I get this permission issue:
sully@ziggy:~$ zmpkg.pl start
Can't open log file '/tmp/zmpkg.log': Permission denied at /usr/share/perl5/ZoneMinder/Debug.pm line 279.
sh: Syntax error: Bad fd number
Password:
I am breaking away from years as a Windows user (Network Admin) and have discovered the wonderful word of Linux. Any help with the above would be great!
Thanks to you all.
Sully
Getting it...
Posted: Sat Feb 17, 2007 5:50 am
by Sully
After several hours of education
I am figuring this out.
I solved the "Syntax error: Bad fd number" problem from this source:
http://www.zoneminder.com/wiki/index.php/Ubuntu_6.10
The reinstall went without any errors, but still no
http://localhost/zm
After reading through this thread, I tried:
dpkg -P zoneminder
Then tried to reinstall and now I don't have rights to install.
This trying...
Sully
Re: Getting it...
Posted: Sat Feb 17, 2007 5:59 am
by PeterHoward
As I said above, take a look in /usr/share/doc/zoneminder/README.Debian
I'm now leaning towards making this an automatic step.
PJH
Posted: Sat Feb 17, 2007 6:22 am
by Sully
Hi Peter,
As I said above, take a look in /usr/share/doc/zoneminder/README.Debian
I sure did and see the instructions to link apache.conf to zoneminder.conf, but I can't get that far anymore. After I preformed this:
dpkg -P zoneminder
I cannot reinstall the package.
I get this error when trying to reinstall the package:
"The package might be corrupted or you are not allowed to open the file. Check the permissions of the file"
I downloaded a new one and still get error.
Is there a way to reverse this action?
Sully
Posted: Sat Feb 17, 2007 7:45 am
by Sully
Peter,
I took out the references to ZM in /var/lib/dpkg/status and was once again able to install the package.
Can you step me through how to 'link' apache.conf to zoneminder.conf ?
Not bad for my first Linux install (to be ex-Windower) Google is an awesome tool!!!
Thank you - I'm almost there
Sully
And thanks everyone
Posted: Sat Feb 17, 2007 8:29 am
by PeterHoward
Before I reply to the specific question, I'd like to thank everyone who's trying this package. The result will be a much better package. And it stopped me (hopefully) putting a fatally flawed package into debian unstable.
Now to the linking question.
Change directory to /etc/apache2/conf.d
Then type "ln -s /etc/zm/apache.conf zm.conf"
That will create a link called zm.conf in /etc/apache2/conf.d pointing to the config snippet for zoneminder.
If you look at the contents of /etc/zm/apache.conf, the key line is the very first one - "Alias /zm /usr/share/zoneminder". Apache2 will load all conf files in /etc/apache2/conf.d/ at startup. This results in requests to http://{your machine}/zm to look in /usr/share/zoneminder for the web content to load.
What have I missed?
Posted: Sat Feb 17, 2007 10:15 pm
by Sully
Still not working... this is what I have done:
Fresh install of Ubuntu 6.10
Installed MySQL (and dependence)
Created MySQL user: zmuser with pass: zmpass
Opened zoneminder_1.22.3-2_i386.deb using GDedi Package Installer
- Installer installed Apache 2, PHP4 and Perl along with other progs
- Installer installed ZM
GDedi indicated a good install
In the log it showed ZM failed to start: Syntex Error: bad fd number
To resolve the bad fd number issue:
dpkg-reconfigure dash
Select 'no'
Created the link in /etc/apache2/conf.d$ :
ln -s /etc/zm/apache.conf zm.conf
Link successful
http://localhost/zm
"Not Found"
What have I missed?
Regards,
Michael
Follow-up...
Posted: Sat Feb 17, 2007 10:43 pm
by Sully
Alright... I got ZM to display in the browser - yeah!!
I left out the last step... reload apache
/etc/init.d/apache2 reload
Now to get some cams configured. Thanks for spelling it out for me Peter! As I mentioned in an earlier post, I am very new to the Linux world and here to stay.
Regards,
Michael