Page 1 of 1

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

Posted: Sat Feb 06, 2016 2:29 am
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.

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

Posted: Sat Feb 06, 2016 3:28 am
by bbunge
Did you update your database?

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

Posted: Sat Feb 06, 2016 3:34 am
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......

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

Posted: Sat Feb 06, 2016 1:15 pm
by bbunge
Look in /var/cache/zoneminder/events

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

Posted: Sun Feb 07, 2016 1:32 am
by jeanlikethis
Yes, there are new files add each motion detection.

How should I bring back my web UI?

Thanks.

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

Posted: Sun Feb 07, 2016 6:27 am
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.

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

Posted: Sun Feb 07, 2016 1:53 pm
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

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

Posted: Sun Feb 07, 2016 4:49 pm
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.