[SOLVED] Storing files broken after Ubuntu 17.04 -> 17.10 upgrade

Forum for questions and support relating to the 1.30.x releases only.
Locked
packetloss
Posts: 4
Joined: Sat Nov 25, 2017 11:10 am

[SOLVED] Storing files broken after Ubuntu 17.04 -> 17.10 upgrade

Post by packetloss »

On Ubuntu 17.04 I had a working Zoneminder installation, that stored its files via CIFS on a FreeNAS server. All worked fine.

Then I upgraded Ubuntu 17.04 to 17.10 and the Zoneminder installation still works (after manually adding php7.1.conf and php7.1.load to /etc/apache2/mods-enabled/ !!!) , but cannot store its files anymore to the CIFS server. The CIFS server hasnt changed a bit, nor did I change the mount command / fstab contents on the zoneminder box. As the user www-data (that apache used) I can write to the mountpoint:

Code: Select all

sudo -u www-data touch /var/cache/zoneminder/test
but files from Zoneminder cannot be written anymore, because of symlink problems, it seems:

Code: Select all

11/25/17 10:14:10.945723 zma_m13[23520].FAT-zm_event.cpp/142 [Can't symlink events/13/17/11/25/.130044 -> events/13/17/11/25/10/14/10: Operation not supported]
Help anyone? I am thinking of reinstalling the box to Ububtu 16.04 LTS and keep it that way, until 2021...

Code: Select all

root@box:~# dpkg --list |grep zoneminder
ii  zoneminder                                 1.30.4+dfsg-2                                amd64        video camera security and surveillance solution
ii  zoneminder-doc                             1.30.4+dfsg-2                                all          video camera security and surveillance solution (documentation)

ii  samba-common                               2:4.6.7+dfsg-1ubuntu3.1                      all          common files used by both the Samba server and client
ii  cifs-utils                                 2:6.7-1                                      amd64        Common Internet File System utilities

Last edited by packetloss on Sun Nov 26, 2017 9:32 am, edited 1 time in total.
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Storing files broken after Ubuntu 17.04 -> 17.10 upgrade

Post by bbunge »

Likely it is yourZoneminder that was trashed. There is a procedure in the WIKI to install Zm on 17.10 with the 17.04 .deb from the iconnor ppa. Will soon Have a procedure to use Ngnix on 17.10 with Zm.
But 16.04 is your best bet. I recommend using the systemd mount process for reliability.
packetloss
Posts: 4
Joined: Sat Nov 25, 2017 11:10 am

Re: Storing files broken after Ubuntu 17.04 -> 17.10 upgrade

Post by packetloss »

I now also see that since the upgrade to 17.10 the following can been seen with dmesg:

Code: Select all

Nov 24 12:04:06 box kernel: [ 2945.534233] CIFS VFS: Autodisabling the use of server inode numbers on \\192.0.2.1\share. This server doesn't seem to support them properly. Hardlinks will not be recognized on this mount. Consider mounting with the "noserverino" option to silence this message.
doesn't look good. I'll reinstall the box with 16.04.3.

cheers
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Storing files broken after Ubuntu 17.04 -> 17.10 upgrade

Post by bbunge »

packetloss
Posts: 4
Joined: Sat Nov 25, 2017 11:10 am

Re: Storing files broken after Ubuntu 17.04 -> 17.10 upgrade

Post by packetloss »

Thank you.

I made a fuckup.. I did a mysqldump of the Config table (only this table), where I meant the Monitors table. I had to add all (like 6 or 7) cams manually to the config again. Anyway, all works great again, now with Ubuntu 16.04.

Code: Select all

ii  zoneminder                           1.30.4-xenial1                               amd64        video camera security and surveillance solution
ii  samba-common                         2:4.3.11+dfsg-0ubuntu0.16.04.12              all          common files used by both the Samba server and client
ii  cifs-utils                           2:6.4-1ubuntu1.1                             amd64        Common Internet File System utilities
Locked