[support] dlandon - Zoneminder 1.36


Recommended Posts

With fresh install (appdata deleted, image deleted and data deleted ) still the same issue, But still need to update the database from a version to another, and that seem that need some time or corrupt the database:

 

Get:29 http://ppa.launchpad.net/iconnor/zoneminder-1.36/ubuntu focal/main amd64 zoneminder-doc all 1.36.10-focal1 [4957 kB]
Preconfiguring packages ...
Fetched 40.0 MB in 14s (2773 kB/s)
Preparing to unpack .../00-distro-info-data_0.43ubuntu1.9_all.deb ...
Unpacking distro-info-data (0.43ubuntu1.9) over (0.43ubuntu1.8) ...
Preparing to unpack .../01-tzdata_2021e-0ubuntu0.20.04_all.deb ...
Unpacking tzdata (2021e-0ubuntu0.20.04) over (2021a-2ubuntu0.20.04) ...
Preparing to unpack .../02-alsa-ucm-conf_1.2.2-1ubuntu0.11_all.deb ...
Unpacking alsa-ucm-conf (1.2.2-1ubuntu0.11) over (1.2.2-1ubuntu0.10) ...
Preparing to unpack .../03-php7.4-readline_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-readline (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../04-php7.4-opcache_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-opcache (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../05-php7.4-mysql_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-mysql (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../06-php7.4-json_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-json (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../07-php7.4-gd_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-gd (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../08-php7.4-fpm_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-fpm (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../09-libapache2-mod-php7.4_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libapache2-mod-php7.4 (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../10-php7.4-cli_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-cli (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../11-php7.4-common_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-common (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../12-libcaca0_0.99.beta19-2.1ubuntu1.20.04.2_amd64.deb ...
Unpacking libcaca0:amd64 (0.99.beta19-2.1ubuntu1.20.04.2) over (0.99.beta19-2.1ubuntu1.20.04.1) ...
Preparing to unpack .../13-libegl-mesa0_21.0.3-0ubuntu0.3~20.04.3_amd64.deb ...
Unpacking libegl-mesa0:amd64 (21.0.3-0ubuntu0.3~20.04.3) over (21.0.3-0ubuntu0.3~20.04.2) ...
Preparing to unpack .../14-libgbm1_21.0.3-0ubuntu0.3~20.04.3_amd64.deb ...
Unpacking libgbm1:amd64 (21.0.3-0ubuntu0.3~20.04.3) over (21.0.3-0ubuntu0.3~20.04.2) ...
Preparing to unpack .../15-libgl1-mesa-dri_21.0.3-0ubuntu0.3~20.04.3_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (21.0.3-0ubuntu0.3~20.04.3) over (21.0.3-0ubuntu0.3~20.04.2) ...
Preparing to unpack .../16-libglx-mesa0_21.0.3-0ubuntu0.3~20.04.3_amd64.deb ...
Unpacking libglx-mesa0:amd64 (21.0.3-0ubuntu0.3~20.04.3) over (21.0.3-0ubuntu0.3~20.04.2) ...
Preparing to unpack .../17-libglapi-mesa_21.0.3-0ubuntu0.3~20.04.3_amd64.deb ...
Unpacking libglapi-mesa:amd64 (21.0.3-0ubuntu0.3~20.04.3) over (21.0.3-0ubuntu0.3~20.04.2) ...
Preparing to unpack .../18-libmysqlclient21_8.0.27-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libmysqlclient21:amd64 (8.0.27-0ubuntu0.20.04.1) over (8.0.26-0ubuntu0.20.04.3) ...
Preparing to unpack .../19-libntlm0_1.5-2ubuntu0.1_amd64.deb ...
Unpacking libntlm0:amd64 (1.5-2ubuntu0.1) over (1.5-2) ...
Preparing to unpack .../20-libpulse0_1%3a13.99.1-1ubuntu3.12_amd64.deb ...
Unpacking libpulse0:amd64 (1:13.99.1-1ubuntu3.12) over (1:13.99.1-1ubuntu3.11) ...
Preparing to unpack .../21-mesa-va-drivers_21.0.3-0ubuntu0.3~20.04.3_amd64.deb ...
Unpacking mesa-va-drivers:amd64 (21.0.3-0ubuntu0.3~20.04.3) over (21.0.3-0ubuntu0.3~20.04.2) ...
Preparing to unpack .../22-mesa-vdpau-drivers_21.0.3-0ubuntu0.3~20.04.3_amd64.deb ...
Unpacking mesa-vdpau-drivers:amd64 (21.0.3-0ubuntu0.3~20.04.3) over (21.0.3-0ubuntu0.3~20.04.2) ...
Preparing to unpack .../23-mesa-vulkan-drivers_21.0.3-0ubuntu0.3~20.04.3_amd64.deb ...
Unpacking mesa-vulkan-drivers:amd64 (21.0.3-0ubuntu0.3~20.04.3) over (21.0.3-0ubuntu0.3~20.04.2) ...
Preparing to unpack .../24-php7.4_7.4.25-1+ubuntu20.04.1+deb.sury.org+1_all.deb ...
Unpacking php7.4 (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) over (7.4.24-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../25-php8.0-mysql_8.0.12-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.0-mysql (8.0.12-1+ubuntu20.04.1+deb.sury.org+1) over (8.0.11-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../26-php8.0-common_8.0.12-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.0-common (8.0.12-1+ubuntu20.04.1+deb.sury.org+1) over (8.0.11-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../27-zoneminder_1.36.10-focal1_amd64.deb ...
Unpacking zoneminder (1.36.10-focal1) over (1.36.8-focal2) ...
Preparing to unpack .../28-zoneminder-doc_1.36.10-focal1_all.deb ...
Unpacking zoneminder-doc (1.36.10-focal1) over (1.36.8-focal2) ...
Setting up mesa-vulkan-drivers:amd64 (21.0.3-0ubuntu0.3~20.04.3) ...
Setting up mesa-vdpau-drivers:amd64 (21.0.3-0ubuntu0.3~20.04.3) ...
Setting up libmysqlclient21:amd64 (8.0.27-0ubuntu0.20.04.1) ...
Setting up php7.4-common (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up libcaca0:amd64 (0.99.beta19-2.1ubuntu1.20.04.2) ...
Setting up php7.4-mysql (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up libgbm1:amd64 (21.0.3-0ubuntu0.3~20.04.3) ...
Setting up alsa-ucm-conf (1.2.2-1ubuntu0.11) ...
Setting up libpulse0:amd64 (1:13.99.1-1ubuntu3.12) ...
Setting up distro-info-data (0.43ubuntu1.9) ...
Setting up php7.4-readline (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up tzdata (2021e-0ubuntu0.20.04) ...

Current default time zone: 'Europe/Athens'
Local time is now: Fri Oct 29 12:34:06 EEST 2021.
Universal Time is now: Fri Oct 29 09:34:06 UTC 2021.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up libntlm0:amd64 (1.5-2ubuntu0.1) ...
Setting up libglapi-mesa:amd64 (21.0.3-0ubuntu0.3~20.04.3) ...
Setting up php8.0-common (8.0.12-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up zoneminder-doc (1.36.10-focal1) ...
Setting up php7.4-opcache (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up mesa-va-drivers:amd64 (21.0.3-0ubuntu0.3~20.04.3) ...
Setting up php7.4-gd (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up php7.4-json (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up php8.0-mysql (8.0.12-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up libgl1-mesa-dri:amd64 (21.0.3-0ubuntu0.3~20.04.3) ...
Setting up php7.4-cli (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up libegl-mesa0:amd64 (21.0.3-0ubuntu0.3~20.04.3) ...
Setting up zoneminder (1.36.10-focal1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
Oct 29 12:34:12 b8458a0935fc /etc/mysql/debian-start[13528]: Upgrading MySQL tables if necessary.
Oct 29 12:34:12 b8458a0935fc /etc/mysql/debian-start[13533]: Looking for 'mysql' as: /usr/bin/mysql
Oct 29 12:34:12 b8458a0935fc /etc/mysql/debian-start[13533]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Oct 29 12:34:12 b8458a0935fc /etc/mysql/debian-start[13533]: This installation of MySQL is already upgraded to 10.3.31-MariaDB, use --force if you still need to run mysql_upgrade
Oct 29 12:34:12 b8458a0935fc /etc/mysql/debian-start[13555]: Checking for insecure root accounts.
Checking for db
Oct 29 12:34:12 b8458a0935fc /etc/mysql/debian-start[13561]: Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables
Db exists.
Updating permissions for user zmuser@localhost

Initiating database upgrade to version 1.36.10 from version 1.36.8

Upgrading database to version 1.36.10
Loading config from DB 221 entries
Saving config to DB 221 entries
Upgrading DB to 1.36.9 from 1.36.8

Database successfully upgraded to version 1.36.9.

Database upgrade to version 1.36.10 successful.


Freshening configuration in database
Migratings passwords, if any...
Loading config from DB 221 entries
Saving config to DB 221 entries
Done Updating
Setting up libapache2-mod-php7.4 (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
libapache2-mod-php7.4: not switching MPM - already enabled
Oct 29 12:34:14 b8458a0935fc libapache2-mod-php7.4: libapache2-mod-php7.4: not switching MPM - already enabled
Setting up libglx-mesa0:amd64 (21.0.3-0ubuntu0.3~20.04.3) ...
Setting up php7.4-fpm (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 7.4 FPM by default.
NOTICE: To enable PHP 7.4 FPM in Apache2 do:
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: Not enabling PHP 7.4 FPM by default.
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: To enable PHP 7.4 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.4-fpm
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: a2enconf php7.4-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: You are seeing this message because you have apache2 package installed.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up php7.4 (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for php7.4-cli (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for libapache2-mod-php7.4 (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for php7.4-fpm (7.4.25-1+ubuntu20.04.1+deb.sury.org+1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
NOTICE: Not enabling PHP 7.4 FPM by default.
NOTICE: To enable PHP 7.4 FPM in Apache2 do:
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: Not enabling PHP 7.4 FPM by default.
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: To enable PHP 7.4 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.4-fpm
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: a2enconf php7.4-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Oct 29 12:34:15 b8458a0935fc php7.4-fpm: NOTICE: You are seeing this message because you have apache2 package installed.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
*** Running /etc/my_init.d/30_gen_ssl_keys.sh...
generating self-signed keys in /config/keys, you can replace these with your own keys if required
Generating a RSA private key
..........................+++++
........+++++
writing new private key to '/config/keys/cert.key'
-----
*** Running /etc/my_init.d/40_firstrun.sh...
Creating conf folder
Copying zm.conf to config folder
Moving zmeventnotification.ini
Moving secrets.ini
Moving the event notification server
Moving the pushover api
Moving ssmtp to config folder
Moving mysql to config folder
Creating control folder in config folder
Copy /config/conf/ scripts to /etc/zm/conf.d/
Creating symbolink links
Using existing data directory for events
Correcting /var/cache/zoneminder/events permissions...
Using existing data directory for images
Correcting /var/cache/zoneminder/images permissions...
Using existing data directory for temp
Correcting /var/cache/zoneminder/temp permissions...
Using existing data directory for cache
Correcting /var/cache/zoneminder/cache permissions...
no crontab for root
Starting services...
* Starting Apache httpd web server apache2
*
* Starting MariaDB database server mysqld
...done.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Oct 29 12:34:21 b8458a0935fc zmupdate[15744]: ERR [Error reconnecting to db: errstr:Unknown database 'zm' error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Unable to connect to DB. ZM Cannot continue.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 150.
Compilation failed in require at /usr/bin/zmupdate.pl line 74.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 74.
Oct 29 12:34:21 b8458a0935fc zmupdate[15744]: ERR [Error reconnecting to db: errstr:Unknown database 'zm' error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Oct 29 12:34:21 b8458a0935fc zmupdate[15745]: ERR [Error reconnecting to db: errstr:Unknown database 'zm' error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Unable to connect to DB. ZM Cannot continue.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 150.
Compilation failed in require at /usr/bin/zmupdate.pl line 74.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 74.
Oct 29 12:34:21 b8458a0935fc zmupdate[15745]: ERR [Error reconnecting to db: errstr:Unknown database 'zm' error val:]
Starting ZoneMinder:
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Oct 29 12:34:31 b8458a0935fc zmpkg[15756]: ERR [Error reconnecting to db: errstr:Unknown database 'zm' error val:]
DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Unable to connect to DB. ZM Cannot continue.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 150.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 34.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Oct 29 12:34:31 b8458a0935fc zmpkg[15756]: ERR [Error reconnecting to db: errstr:Unknown database 'zm' error val:]
ZoneMinder failed to start

*** /etc/my_init.d/40_firstrun.sh failed with status 255

*** Killing all processes...

 

After that, I start it again and successfully started not needing to update the database, reporting that the database is has the desired version, so my conclusion is:

Because on some updates the database need to be upgraded, the upgrade need some time and somehow ZM does not have access to the database in time even if MariaDB is successfully starting and the error kill all running processes, but the upgrade process have enough time to upgrade the database, if databse have other data than the default when you install ZM and you do an update that change the database version, will try to upgrade the database, but somehow the database is not upgraded, and every time you start the ZM will try to update the DB ending up in the same place where ZM can not access the database, the result being the killing of all processes including, maybe, the database upgrade process that end up in not having enough time to upgrade the database.

 

Maybe that have some sense...

Edited by MorgothCreator
Link to comment
4 hours ago, MorgothCreator said:

This is quit anoying, two updates in a road to redo everything gain, there is nothing to do to fix it automatically, or at last to retain the most important settings like camera settings and other manual settings and the database to be reset automatically?

 

Or provide a script to reset only the database and let the manual settings untouched, most people don't want to have these issues, and mostly, more probably at every update 😔

 

Or at last to warning that the update can broke the database and everything will need to be setup again.

I've applied a fix that should prevent this in the future.

Link to comment
4 hours ago, DaFr0n said:

Does anyone know if there is a way to stop Zoneminder creating a cache share folder, it conflicts with the UnRaid cache share. Just to be clear i use Zoneminder with a 1TB HHD running through a disk share.

 

That doesn’t sound right.  Please explain further what you mean by a Zoneminder cache share.

Link to comment
On 10/30/2021 at 9:16 PM, dlandon said:

That doesn’t sound right.  Please explain further what you mean by a Zoneminder cache share.

Hi, if i create a disk share dedicated to Zoneminder it automatically creates a cache share, this conflicts with the default UnRaid cache. I have tried renaming this and it doesnt seem to affect anything, however after a update it will recreate the 'cache share' below.

image.thumb.png.98d5b421adbb8668a8fab1bb274f871e.png

 

image.thumb.png.e3507159d960fbe47a7d3d45a2973d6a.png

Link to comment
3 hours ago, DaFr0n said:

Hi, if i create a disk share dedicated to Zoneminder it automatically creates a cache share, this conflicts with the default UnRaid cache. I have tried renaming this and it doesnt seem to affect anything, however after a update it will recreate the 'cache share' below.

image.thumb.png.98d5b421adbb8668a8fab1bb274f871e.png

 

image.thumb.png.e3507159d960fbe47a7d3d45a2973d6a.png

You have an incorrect mapping.  Zoneminder doesn't create a 'cache' share.

 

Post a screen shot of your mappings.

Link to comment
On 11/2/2021 at 6:55 PM, dlandon said:

Don't mount the Data Path to /mnt/.  /mnt/ is only for Unraid shares.  It should be at /mnt/cache/, /mnt/appdata/, or a pool device..

Sorry, how would i allocate this to my zoneminderpool, without going through /mnt ?

Thanks for the support

Link to comment
4 hours ago, DaFr0n said:

Sorry, how would i allocate this to my zoneminderpool, without going through /mnt ?

Thanks for the support

All folders at /mnt/ are Unraid user shares , cache, or pool devices.  You should should set the data path to /mnt/some share/zoneminderpool. e.g. /mnt/user/appdata/zoneminderpool.

Edited by dlandon
Link to comment
9 hours ago, dlandon said:

All folders at /mnt/ are Unraid user shares , cache, or pool devices.  You should should set the data path to /mnt/some share/zoneminderpool. e.g. /mnt/user/appdata/zoneminderpool.

OK, so i have disk shares enabled in global disk settings, the disk is then named 'zoneminderpool' , as this is a disk share that i want fully allocated to zoneminder i.e all recordings to be saved on this disk only, how would you suggest this is mapped correctly to avoid issues. If i map this as /mnt/user/appdata/zoneminderpool, wont it save recordings to my 'default' pool and not the dedicated disk share i have created?

Link to comment
2 hours ago, DaFr0n said:

OK, so i have disk shares enabled in global disk settings, the disk is then named 'zoneminderpool' , as this is a disk share that i want fully allocated to zoneminder i.e all recordings to be saved on this disk only, how would you suggest this is mapped correctly to avoid issues. If i map this as /mnt/user/appdata/zoneminderpool, wont it save recordings to my 'default' pool and not the dedicated disk share i have created?

Based on what you are saying, it sounds like you have a dedicated disk for zoneminderpool.  I would assign the disk as a Pool device named 'zoneminderpool'.  Then refer to it as /mnt/zoneminderpool.

Link to comment
18 hours ago, dlandon said:

Based on what you are saying, it sounds like you have a dedicated disk for zoneminderpool.  I would assign the disk as a Pool device named 'zoneminderpool'.  Then refer to it as /mnt/zoneminderpool.

Hi thats strange, as this is how i have it setup & it created the cache share folder: image.thumb.png.7bd7d27bd551e0b7ebf550eed4734974.png

 

Actually after installing, Zoneminder creates a share folder for cache, temp, images & events. Its the cache folder it creates that causes the system conflict. The setup is exactly how you have described but it still causes issues. A 1TB disk in its own pool called 'zoneminderpool' through disk share, then setup using /mnt/zoneminderpool. Once its rank all the above folders are created & i have no option to stop this.

Edited by DaFr0n
Link to comment
2 hours ago, DaFr0n said:

Hi thats strange, as this is how i have it setup & it created the cache share folder: image.thumb.png.7bd7d27bd551e0b7ebf550eed4734974.png

 

Actually after installing, Zoneminder creates a share folder for cache, temp, images & events. Its the cache folder it creates that causes the system conflict. The setup is exactly how you have described but it still causes issues. A 1TB disk in its own pool called 'zoneminderpool' through disk share, then setup using /mnt/zoneminderpool. Once its rank all the above folders are created & i have no option to stop this.

Post your diagnostics.

Link to comment
31 minutes ago, dlandon said:

Zoneminder will create it's own folders in the /mnt/zoneminderpool folder.  How does this conflict with Unraid that creates it's cache at /mnt/cache/?

I believe its due to Unraid having two share folders both named cache, one default for Unraid and the other created by Zoneminder.

Both appear in 'Shares'

Link to comment
8 hours ago, dlandon said:

The Zoneminder cache folder won't show up as a share.  You have another issue.

Hi This is prior to reinstalling, i wont post the User shares but there is currently no cache share:

image.thumb.png.504873a2f9279b68e411a3d7c7507b00.png

 

Once i install Zoneminder, the below is created in user shares using /mnt/zoneminderpool for the data as per recommendation:

image.thumb.png.ef8174fd5774047679ffd0e871f66593.png

 

This cause the below error:

image.thumb.png.aedb5d53ab688bac92467ec56aed0ee1.png

Link to comment
4 hours ago, JonathanM said:

@DaFr0n, all folders in the root of an array disk or a pool are automatically user shares.

Since you are telling zm to create its folders in the root of the pool, they are showing up as user shares. Create a folder appdata on the zm pool device and map the container data location to /mnt/zoneminderpool/appdata/ZoneminderData

 

Hi, i think the issue was actually a setting in the disk share (Enable user share assignment: YES), i assume this automatically creates a share for all folders within that disk, hence the cache, events, images and temp share being created.

I just need to resolve the latest mysqld error then hopefully all will be good.

Edited by DaFr0n
Link to comment

Does anyone know how to rebuild the mysql database, i have tried NO_START_ZM="1", but this only states [fail] with no error codes after running service mysql start.

Fresh instal doesnt fix this so assume there is left over files i need to remove.

 

Thanks for all your support:)

Link to comment
5 hours ago, DaFr0n said:

Does anyone know how to rebuild the mysql database, i have tried NO_START_ZM="1", but this only states [fail] with no error codes after running service mysql start.

Fresh instal doesnt fix this so assume there is left over files i need to remove.

 

Thanks for all your support:)

Remove the Docker container and delete the /appdata/Zoneminder folder and start over.

Link to comment
7 hours ago, DaFr0n said:

Hi, i think the issue was actually a setting in the disk share (Enable user share assignment: YES), i assume this automatically creates a share for all folders within that disk, hence the cache, events, images and temp share being created.

I just need to resolve the latest mysqld error then hopefully all will be good.

Set the data path to '/mnt/zoneminderpool/data'.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.