Thanks for the Debian packages, Peter!

Support and queries relating to all previous versions of ZoneMinder
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post 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! :oops:

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.
stackbit
Posts: 18
Joined: Fri Feb 04, 2005 1:03 am

Post 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

:shock:
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post 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

:shock:
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.
stackbit
Posts: 18
Joined: Fri Feb 04, 2005 1:03 am

Post 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. :D
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post by PeterHoward »

stackbit wrote:
Anyway thank you, and if i can be any assistance please ask. :D
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.
stackbit
Posts: 18
Joined: Fri Feb 04, 2005 1:03 am

Post by stackbit »

:oops: Read the README! :oops:

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.
nodesyn
Posts: 4
Joined: Wed Feb 14, 2007 3:25 pm

Apology

Post 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.
Sully
Posts: 9
Joined: Sat Feb 17, 2007 12:41 am

Post 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
Last edited by Sully on Sat Feb 17, 2007 6:07 am, edited 1 time in total.
Sully
Posts: 9
Joined: Sat Feb 17, 2007 12:41 am

Getting it...

Post 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
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Re: Getting it...

Post by PeterHoward »

Sully wrote: The reinstall went without any errors, but still no http://localhost/zm
Sully
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
Sully
Posts: 9
Joined: Sat Feb 17, 2007 12:41 am

Post 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
Sully
Posts: 9
Joined: Sat Feb 17, 2007 12:41 am

Post 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
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

And thanks everyone

Post 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.
Sully
Posts: 9
Joined: Sat Feb 17, 2007 12:41 am

What have I missed?

Post 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
Sully
Posts: 9
Joined: Sat Feb 17, 2007 12:41 am

Follow-up...

Post 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
Locked