Page 1 of 1

Zoneminder failed after upgrade from Ubuntu 13.04 to 13.10

Posted: Tue Oct 22, 2013 7:28 pm
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.

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

Posted: Wed Oct 23, 2013 6:23 pm
by kylejohnson
Hey there,

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

Kyle

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

Posted: Wed Oct 23, 2013 9:31 pm
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

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

Posted: Wed Oct 23, 2013 10:10 pm
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.

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

Posted: Wed Oct 23, 2013 10:11 pm
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?

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

Posted: Thu Oct 24, 2013 12:26 am
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

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

Posted: Thu Oct 24, 2013 2:15 am
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.

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

Posted: Thu Oct 24, 2013 6:27 am
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

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

Posted: Thu Oct 24, 2013 11:04 pm
by leggypr
Yes, apache.conf is in /etc/zm, but....

the directory conf.d does not exist, i.e.
zoneminder.conf neither.

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

Posted: Wed Oct 30, 2013 8:01 pm
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