Zoneminder failed after upgrade from Ubuntu 13.04 to 13.10

Forum for questions and support relating to the 1.26.x releases only.
Locked
hans109h
Posts: 16
Joined: Fri Jun 10, 2011 11:58 pm

Zoneminder failed after upgrade from Ubuntu 13.04 to 13.10

Post by hans109h »

Zoneminder is not functional for me after upgrading to Ubuntu 13.10. Just a heads up. I have tried building the latest from source, but I keep running into errors. Please bewarned.
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by kylejohnson »

Hey there,

Could you post the errors that you're having? Are you able to successfully build from source?

Kyle
Idling as gnulnx in #zoneminder on freenode. Come say hi!
leggypr
Posts: 3
Joined: Wed Oct 23, 2013 9:28 pm

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by leggypr »

Hi,
I have the same problems, zoneminder and Ubuntu 13.10, not working.

sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
[sudo] password for xxxxx:
ln: failed to create symbolic link ‘/etc/apache2/conf.d/zoneminder.conf’: No such file or directory
hans109h
Posts: 16
Joined: Fri Jun 10, 2011 11:58 pm

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by hans109h »

Here is as far as I've gotten:

$ export CFLAGS="-march=native -O2 -pipe"
$ export CXXFLAGS="${CFLAGS}"
$ export CPPFLAGS="${CFLAGS} -D__STDC_CONSTANT_MACROS"

$ ./configure --prefix=/ --with-libarch=lib64 --with-mysql=/usr --with-ffmpeg=/usr --with-webuser=www-data --with-webgroup=www-data --disable-debug --disable-crashtrace --enable-mmap=yes --with-webdir=/usr/share/zoneminder --with-cgidir=/usr/lib/cgi-bin ZM_SSL_LIB=openssl

Checking if your kit is complete...
Looks good
Only one of PREFIX or INSTALL_BASE can be given. Not both.

$make

$sudo make install

$sudo service zoneminder start
failure

from syslog:
zmpkg[15480]: ERR [Unable to run "sudo -u www-data //bin/zmfix", output is ""]

When attempting to access index.php I get this warning and error:

[Wed Oct 23 16:47:30.026541 2013] [:error] [pid 30888] [client 192.168.0.2:36774] PHP Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/zoneminder/includes/database.php on line 32

Thats all for now.
hans109h
Posts: 16
Joined: Fri Jun 10, 2011 11:58 pm

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by hans109h »

leggypr wrote:Hi,
I have the same problems, zoneminder and Ubuntu 13.10, not working.

sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
[sudo] password for xxxxx:
ln: failed to create symbolic link ‘/etc/apache2/conf.d/zoneminder.conf’: No such file or directory
I had to get around this too, luckily I had a backup of apache.conf that I was able to copy. Can you do a "locate apache.conf" and a "locate zoneminder.conf" to see if they exist in your filesystem?
leggypr
Posts: 3
Joined: Wed Oct 23, 2013 9:28 pm

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by leggypr »

These are my results of <locate(s)>:

xxxxx@xxxxxxxxxx:~$ locate apache.conf
/etc/zm/apache.conf
/home/xxxxx/Downloads/ZoneMinder-1.26.4/distros/debian/apache.conf
/home/xxxxx/Downloads/ZoneMinder-1.26.4/distros/ubuntu1204/apache.conf
/home/xxxxx/Downloads/ZoneMinder-1.26.4/misc/apache.conf.in

xxxxx@xxxxxxxxxx:~$ locate zoneminder.conf
/home/xxxxx/Downloads/ZoneMinder-1.26.4/distros/fedora/zoneminder.conf
/home/xxxxx/Downloads/ZoneMinder-1.26.4/distros/redhat/zoneminder.conf
/var/lib/dpkg/info/zoneminder.conffiles
hans109h
Posts: 16
Joined: Fri Jun 10, 2011 11:58 pm

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by hans109h »

Hmmm,

I wonder if your locate database is out of date, did you verify that apache.conf is actually located in /etc/zm/?

You can do a sudo updatedb and then relocate to see if it is there.

otherwise copy it from the build directory into /etc/zm/ and run your ln again.
hans109h
Posts: 16
Joined: Fri Jun 10, 2011 11:58 pm

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by hans109h »

I rebuilt a bunch of times and finally got it to work. Not really sure what changed, just a different build I guess.

I ran into some problems trying to locate the binaries in /usr/bin, zmpkg.pl kept trying to load zmupdate out of //bin. Couldn't change the env path in zmpkg.pl to get it to work, so I just used /bin as my install location.

Hans
leggypr
Posts: 3
Joined: Wed Oct 23, 2013 9:28 pm

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by leggypr »

Yes, apache.conf is in /etc/zm, but....

the directory conf.d does not exist, i.e.
zoneminder.conf neither.
windracer
Posts: 61
Joined: Sat Jul 23, 2011 1:15 am

Re: Zoneminder failed after upgrade from Ubuntu 13.04 to 13.

Post by windracer »

The Apache 2.4 upgrade in Ubuntu 13.10 caused me all sorts of problems (not specifically with zoneminder).

conf.d has been replaced with conf-available (and then you symlink your conf files from there into conf-enabled). Some of the permission changes caused me headaches too but I finally got everything working.

I did notice this in my Apache error log, though:

Code: Select all

[Wed Oct 30 15:55:32.293381 2013] [:error] [pid 29988] [client 74.115.234.131:36028] PHP Deprecated:  mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/local/zoneminder/includes/database.php on line 32, referer: http://www.mysite.net/zm/index.php
Locked