Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Forum for questions and support relating to the 1.29.x releases only.
Locked
jeanlikethis
Posts: 13
Joined: Fri Aug 21, 2015 12:51 pm

Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Post by jeanlikethis »

Hi,

I was using 1.28.1 well under Linux Mint 17.3.

Just did the upgrade to zoneminder 1.29.x, and found all the files that were there in /usr/share/zoneminder/ folder are all gone!!!

Only three ones left:

-rwxrwxr-x 1 hanz hanz 46494 Aug 21 22:00 cambozola.jar
drwxr-xr-x 2 root root 4096 Feb 5 21:19 db
drwxr-xr-x 12 root root 4096 Feb 5 21:19 www


But I can start/stop the zoneminder service though.

This might be a web UI problem?

Please help me out, Thanks.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Post by bbunge »

Did you update your database?
jeanlikethis
Posts: 13
Joined: Fri Aug 21, 2015 12:51 pm

Re: Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Post by jeanlikethis »

Yes, I used:

sudo zmupdate.pl

to update the database. I can't run the zoneminder service before updating the database. After the database update, I can start the zoneminder service but found all files under the installation folder are gone.....

This happened once before when I installed a trail version zoneminder. Then I switched back to stable PPA and things got fixed. But it comes again in 1.29.x......
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Post by bbunge »

Look in /var/cache/zoneminder/events
jeanlikethis
Posts: 13
Joined: Fri Aug 21, 2015 12:51 pm

Re: Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Post by jeanlikethis »

Yes, there are new files add each motion detection.

How should I bring back my web UI?

Thanks.
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Post by SteveGilvarry »

jeanlikethis wrote: Just did the upgrade to zoneminder 1.29.x, and found all the files that were there in /usr/share/zoneminder/ folder are all gone!!!

Only three ones left:

-rwxrwxr-x 1 hanz hanz 46494 Aug 21 22:00 cambozola.jar
drwxr-xr-x 2 root root 4096 Feb 5 21:19 db
drwxr-xr-x 12 root root 4096 Feb 5 21:19 www
I am slightly concerned that you refer to all the files gone and only 3 left, and 2 of the 3 "files" are directories, and they are normally the only dirs in this folder. Given the number of links on www is 12 which is the same as my fully functioning install, are you sure that "cd /usr/share/zoneminder/www" is not the missing link?

Next step will be to allow your apache account access to www dir, ensure your apache config is correct, but refer to guides for details.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Post by bbunge »

Actually the files were never there in the first place. What was there was a symbolic link that directed you to the actual location of the files. That symbolic link has moved, your files have not.

I would guess you are having issues with the upgrade. There are upgrade instructions in the WIKI:

https://wiki.zoneminder.com/Common_Issu ... _on_Ubuntu
jeanlikethis
Posts: 13
Joined: Fri Aug 21, 2015 12:51 pm

Re: Lost all the files in /usr/share/zoneminder after upgrade to 1.29

Post by jeanlikethis »

Dear all

Problem fixed.

I was using the old installation instruction that was right for 1.28.x but not for 1.29.x.

I purged the complete installation and reisntalled package, did the configuration according to:

http://zoneminder.readthedocs.org/en/st ... buntu.html

and it works.

Feels like zm changed a lot in this update and all old config files needs to be removed to have this work. Just need to reinstall all the cameras again.

Cheers.
Locked