update to svn 2846 broke zm

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

update to svn 2846 broke zm

Post by c0mputerking »

Hello i made the mistake of updating to the newer svn version that was listed on the zmlarch site zoneminder-svn-2846-1-i686.pkg.tar.gz. and now i get the error below when i try to start zm.

# pacman -U zoneminder-svn-2846-1-i686.pkg.tar.gz

usr/lib/zm/bin/zmfix: error while loading shared libraries: libfaad.so.2: cannot open shared object file: No such file or directory

I noticed that a new svn version on ffmpeg was listed there too, and added the same day so i updated it too

# pacman -R ffmpeg-svn
# pacman -U ffmpeg-svn-18344-1-i686.pkg.tar.gz

This did not fix my problem.

Also i tried downgrading like this
# pacman -R zoneminder-svn
# pacman -U zoneminder-svn-2844-1-i686.pkg.tar.gz

now i get this problem

usr/lib/zm/bin/zmfix: error while loading shared libraries: libavutil.so.49: cannot open shared object file: No such file or directory

for the record only one of the two files exist on my system
#locate libavutil.so.49
/usr/lib/libavutil.so.49
/usr/lib/libavutil.so.49.14.0


ps the only reason i did this was because i was getting white screens instead of cameras sometimes, no events listed in single camera view and no listing of fps. Mostly the white screen was reason for update.
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

The newer zoneminder-svn requires the newer ffmpeg-svn (because it wouldn't build against the older one.)
If you install the latest I think "pacman -Sy faad2" will fix the error you were getting.

I know you are using the svn packages because of problems with the stable version of zoneminder. Just consider that these are "developement" packages, and somethings may break. It would be nice to have a "testing" stage for these before release, but currently it appears that you are the testing stage :)

Anything I put up for download, I am running here, so I at least know that it's not completely broken. I regularly do a complete system update with "pacman -Syu". But the only guarantee I get is that if my system breaks I get to keep all the pieces. If you are going to use svn packages you may want to do the same. (Really problems are fairly rare and rolling back is not terribly difficult.)

I'm not trying to discourage you from following the svn versions, just recognize what they are. Any production system probably should stick with "stable" packages, or at least packages that you have tested yourself.
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

rdmelin wrote:The newer zoneminder-svn requires the newer ffmpeg-svn (because it wouldn't build against the older one.)
If you install the latest I think "pacman -Sy faad2" will fix the error you were getting.

I know you are using the svn packages because of problems with the stable version of zoneminder. Just consider that these are "developement" packages, and somethings may break. It would be nice to have a "testing" stage for these before release, but currently it appears that you are the testing stage :)

Anything I put up for download, I am running here, so I at least know that it's not completely broken. I regularly do a complete system update with "pacman -Syu". But the only guarantee I get is that if my system breaks I get to keep all the pieces. If you are going to use svn packages you may want to do the same. (Really problems are fairly rare and rolling back is not terribly difficult.)

I'm not trying to discourage you from following the svn versions, just recognize what they are. Any production system probably should stick with "stable" packages, or at least packages that you have tested yourself.
Thanks i tried running pacman -Sy faad2 but now i get another error hehe
/usr/lib/zm/bin/zmfix: error while loading shared libraries: libx264.so.66: cannot open shared object file: No such file or directory
guessing this has something to do with h264 compression, but not sure how to fix. Also i have not run pacman -Syu yet been afraid I might break everything heehee. I might have the courage to do this when i get home tonight.


I also tried rolling back to the last working version i had like this
# pacman -R zoneminder
# pacman -R zoneminder-svn
# pacman -U zoneminder-svn-2844-1-i686.pkg.tar.gz
but zm gives me an error anyway
usr/lib/zm/bin/zmfix: error while loading shared libraries: libavutil.so.49: cannot open shared object file: No such file or directory
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

I also tried rolling back to the last working version i had like this
# pacman -R zoneminder
# pacman -R zoneminder-svn
# pacman -U zoneminder-svn-2844-1-i686.pkg.tar.gz
but zm gives me an error anyway
usr/lib/zm/bin/zmfix: error while loading shared libraries: libavutil.so.49: cannot open shared object file: No such file or directory
You will also need to roll back ffmpeg-svn to 17404.
There is a package up for that now.[/quote]
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

Something else seems to be wrong as rolling back zm and ffmpeg has not fixed my issue. I even tried reinstall faad2

[root@1 updates]# pacman -R ffmpeg
ffmpeg not found, searching for group...
error: 'ffmpeg': not found in local db
[root@1 updates]# pacman -R ffmpeg-svn
:: ffmpeg-svn is designated as a HoldPkg. Remove anyway? [Y/n] y
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: sox: requires ffmpeg>=20081220
:: zoneminder-svn: requires ffmpeg>=0.5

[root@1 updates]# pacman -U ffmpeg-svn-17404-1-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading ffmpeg-svn [#####################] 100%

[root@1 updates]# /etc/rc.d/zm start
:: Starting ZoneMinder [BUSY] /usr/lib/zm/bin/zmfix: error while loading shared libraries: libavutil.so.50: cannot open shared object file: No such file or directory
[FAIL]

[root@1 updates]# pacman -R zoneminder-svn
checking dependencies...

warning: /etc/zm.conf saved as /etc/zm.conf.pacsave
(1/1) removing zoneminder-svn [#####################] 100%

[root@1 updates]# pacman -U zoneminder-svn-2844-1-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts [#####################] 100%

(1/1) installing zoneminder-svn [#####################] 100%
Note:
==> To initialize the ZoneMinder database run (as root)
==> /usr/lib/zm/bin/zminit

==> You must edit /etc/php/php.ini and add to it open_basedir "/etc/" as such:
==> open_basedir = /home/:/tmp/:/usr/share/pear/:/etc/
==> Otherwise ZoneMinder will be unable to read /etc/zm.conf

==> You must edit /etc/httpd/conf/httpd.conf
==> and add this line:
==> Include /etc/httpd/conf/extra/httpd-zm.conf

[root@1 updates]# /etc/rc.d/zm start
:: Starting ZoneMinder [BUSY] /usr/lib/zm/bin/zmfix: error while loading shared libraries: libfaad.so.1: cannot open shared object file: No such file or directory
[FAIL]

[root@1 updates]# pacman -Sy faad2
:: Synchronizing package databases...
larch5 is up to date
core 33.0K 71.8K/s 00:00:00 [#####################] 100%
extra 385.2K 138.0K/s 00:00:03 [#####################] 100%
community 366.8K 244.9K/s 00:00:01 [#####################] 100%
warning: faad2-2.7-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): faad2-2.7-1

Total Download Size: 0.00 MB
Total Installed Size: 0.75 MB

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading faad2 [#####################] 100%

[root@1 updates]# /etc/rc.d/zm start
:: Starting ZoneMinder [BUSY] /usr/lib/zm/bin/zmfix: error while loading shared libraries: libfaad.so.1: cannot open shared object file: No such file or directory
[FAIL]
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

I can see that I need to get some more info into the wiki about how to deal with a rolling release distro.
I have put a faad2 package up that you can roll back to. This is the version that zoneminder-svn-2844-1-i686.pkg.tar.gz was built against, and it contains libfaad.so.1 while the latest contains libfaad.so.2

You can recreate old package versions from the liveCD by booting up and running "bacman <some_app>". If your system is from an earlier ZMLarch and bacman is not found, do "pacman -Sy pacman-contrib" to install it.

You could also build zoneminder 1.24.1 against the libs you currently have installed by going to the build/zoneminder dir in /home/user and running makepkg.

Or you can do 'pacman -Syu" and install the latest ffmpeg-svn and zoneminder-svn.
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

I did a complete update using pacman -Syu did a reboot and still got the missing faad error. So i tried installing the package from your site and now i get the libx246 error again. got a scary message about -asroot from the makepkg command so i did not run it figured rebuilding the entire system should take care of things anyway.

pacman -U faad2-2.6.1-2-i686.tar.gz loading package data...
checking dependencies...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading faad2 [#####################] 100%
/sbin/ldconfig: /usr/lib/libfaad.so.1 is not a symbolic link

[root@1 updates]# /etc/rc.d/zm start:: Starting ZoneMinder [BUSY] /usr/lib/zm/bin/zmfix: error while loading shared libraries: libx264.so.65: cannot open shared object file: No such file or directory
[FAIL]
[root@1 updates]#
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

OK, c0mputerking, we can fix this. So don't quit now :)
What I see in your posts is you keep mixing update and rollback procedures.

After "pacman -Syu" you need to update to the latest zoneminder-svn and ffmpeg-svn. I can tell that you still have on earlier zoneminder-svn because it was still looking for the earlier /usr/lib/libfaad.so.1 instead of /usr/lib/libfaad.so.2.

Then you installed the faad2-2.6.1-2-i686.tar.gz which was a rollback from the latest that you got with "pacman -Syu". Now the zoneminder-svn you have installed finds the faad2 lib it's looking for but expects libx264.so.65. Your system update installed libx264.so.66.

There is no turning back now so no more rollback packages please. Update faad2 with "pacman -S faad2" and then install the latest zoneminder-svn and ffmpeg-svn.
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

Giving up is never really an option with me sort of a character strength/weakness depending on the perspective or situation. Anyways mixed up is one of my least favorite options heehee. Anyways here goes with making sure everything is the latest.

I am hoping you mean the latest version is the newest one on your website.

here is what i did (looks like faad2 automagically got updated) and lone behold it works however my java errors are back and i get freeze ups on the montage screen again grrrrrrrrr did i update to the wrong version?

# pacman -Syu:: Synchronizing package databases...
larch5 is up to date
core 33.0K 72.1K/s 00:00:00 [#####################] 100%
extra 385.4K 310.8K/s 00:00:01 [#####################] 100%
community 366.7K 297.1K/s 00:00:01 [#####################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (6): faad2-2.7-1 hdparm-9.14-1 libogg-1.1.3-2 man-db-2.5.5-1
man-pages-3.20-1 syslinux-3.74-1

Total Download Size: 5.83 MB
Total Installed Size: 19.66 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
hdparm-9.14-1-i686 54.1K 644.6K/s 00:00:00 [#####################] 100%
man-db-2.5.5-1-i686 700.8K 469.7K/s 00:00:01 [#####################] 100%
man-pages-3.20-1-i686 4.3M 323.9K/s 00:00:14 [#####################] 100%
:: Retrieving packages from extra...
libogg-1.1.3-2-i686 70.4K 129.3K/s 00:00:01 [#####################] 100%
syslinux-3.74-1-i686 722.2K 212.5K/s 00:00:03 [#####################] 100%
checking package integrity...
(6/6) checking for file conflicts [#####################] 100%
(1/6) upgrading faad2 [#####################] 100%
(2/6) upgrading hdparm [#####################] 100%
(3/6) upgrading libogg [#####################] 100%
(4/6) upgrading man-db [#####################] 100%
Optional dependencies for man-db
less
gzip
(5/6) upgrading man-pages [#####################] 100%
(6/6) upgrading syslinux [#####################] 100%

[root@1 updates]# pacman -U ffmpeg-svn-18344-1-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading ffmpeg-svn [#####################] 100%

[root@1 updates]# pacman -U zoneminder-svn-2846-1-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts [#####################] 100%

(1/1) upgrading zoneminder-svn [#####################] 100%

[root@1 updates]# /etc/rc.d/zm start
:: Starting ZoneMinder [DONE]

here are the java errors again

8.1.1 - - [10/Apr/2009:12:50:22 -0600] "POST /sks/index.php HTTP/1.1" 200 163
192.168.1.1 - - [10/Apr/2009:12:50:24 -0600] "POST /sks/index.php HTTP/1.1" 200 163
192.168.1.1 - - [10/Apr/2009:12:50:25 -0600] "POST /sks/index.php HTTP/1.1" 200 163

==> /var/log/messages.log <Apr>
Apr 10 12:50:25 1 array: (
Apr 10 12:50:25 1 'file': => '/var/lib/zm/www/ajax/stream.php',
Apr 10 12:50:25 1 'line': => 51,
Apr 10 12:50:25 1 'function': => 'ajaxError',
Apr 10 12:50:25 1 'args': =>
Apr 10 12:50:25 1 array: (
Apr 10 12:50:25 1 0: => 'socket_sendto( /var/lib/zm/socks/zms-510386s.sock ) failed: No such file or directory',
Apr 10 12:50:25 1 ),:
Apr 10 12:50:25 1 ),:
Apr 10 12:50:25 1 1: =>
Apr 10 12:50:25 1 array: (
Apr 10 12:50:25 1 'file': => '/var/lib/zm/www/index.php',
Apr 10 12:50:25 1 'line': => 116,
Apr 10 12:50:25 1 'args': =>
Apr 10 12:50:25 1 array: (
Apr 10 12:50:25 1 0: => '/var/lib/zm/www/ajax/stream.php',
Apr 10 12:50:25 1 ),:
Apr 10 12:50:25 1 'function': => 'require_once',
Apr 10 12:50:25 1 ),:
Apr 10 12:50:25 1 ):
Apr 10 12:50:25 1 httpd: socket_sendto( /var/lib/zm/socks/zms-928580s.sock ) failed: No such file or directory
Apr 10 12:50:25 1 httpd: array (
Apr 10 12:50:25 1 0: =>
Apr 10 12:50:25 1 array: (
Apr 10 12:50:25 1 'file': => '/var/lib/zm/www/ajax/stream.php',
Apr 10 12:50:25 1 'line': => 51,
Apr 10 12:50:25 1 'function': => 'ajaxError',
Apr 10 12:50:25 1 'args': =>
Apr 10 12:50:25 1 array: (
Apr 10 12:50:25 1 0: => 'socket_sendto( /var/lib/zm/socks/zms-928580s.sock ) failed: No such file or directory',
Apr 10 12:50:25 1 ),:
Apr 10 12:50:25 1 ),:
Apr 10 12:50:25 1 1: =>
Apr 10 12:50:25 1 array: (
Apr 10 12:50:25 1 'file': => '/var/lib/zm/www/index.php',
Apr 10 12:50:25 1 'line': => 116,
Apr 10 12:50:25 1 'args': =>
Apr 10 12:50:25 1 array: (
Apr 10 12:50:25 1 0: => '/var/lib/zm/www/ajax/stream.php',
Apr 10 12:50:25 1 ),:
Apr 10 12:50:25 1 'function': => 'require_once',
Apr 10 12:50:25 1 ),:
Apr 10 12:50:25 1 ):
[/u]
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

my java errors are back and i get freeze ups on the montage screen again grrrrrrrrr did i update to the wrong version?
You now have the latest developement version i have built. So you should report the errors on the 1.24.x forum. Include the svn number. But please note that Phil pointed out that you will need to adjust your bandwith settings and perhaps increase the WEB_*_AJAX_TIMEOUT. So better include these settings in your report.

These entries in the log are not errors, they are the web ui querying for fps:
8.1.1 - - [10/Apr/2009:12:50:22 -0600] "POST /sks/index.php HTTP/1.1" 200 163
192.168.1.1 - - [10/Apr/2009:12:50:24 -0600] "POST /sks/index.php HTTP/1.1" 200 163
192.168.1.1 - - [10/Apr/2009:12:50:25 -0600] "POST /sks/index.php HTTP/1.1" 200 163
fps is not working here with this version anyway. You can change to the WEB_COMPACT_MONTAGE and eliminate this query.

BTW the other errors are "ajax" and thus perhaps javascript related but have nothing to do with "java" which is a different animal altogether. Zoneminder only uses java if you employ the cambozola java applet and that runs on the client not the zoneminder server.

Anyway glad to see that your zoneminder is up and running again, errors notwithstanding. Now that was an educational adventure, wasn't it.:)
c0mputerking
Posts: 190
Joined: Tue Sep 16, 2008 5:22 am

Post by c0mputerking »

these ajax error are related to this post i think and were fixed back in 2844?

This is now fixed by the way in case nbody noticed. The mootools class extension format had changed and I had broken the timed ajax request class.

phil
Post Reply