ZoneMinder jail needs to be updated. Unable to do it.

SimpleUser

Cadet
Joined
Apr 7, 2022
Messages
9
Hello.

After a zoneminder update, it looks that the jail also needs to be updated based on the following post:


Therefor I tried to update the jail using the command

Code:
root@truenas[~]# iocage upgrade -r 12.3-RELEASE-p5 ZoneMinderJail
Snapshotting ZoneMinderJail...
Snapshot already exists
Updating plugin INDEX...
Updating plugin artifact...
Cloning git repository


Branch 12.2-RELEASE does not exist at https://github.com/freenas/iocage-plugin-zoneminder.git!
Using "master" branch for plugin, this may not work with your RELEASE
Running upgrade...
12.3-RELEASE is missing 'src.txz', please refetch!


Unfortunatly I have no ideia what can I do to overcome this problem.
If someone knowns, please provide information.
Thank you
 

SimpleUser

Cadet
Joined
Apr 7, 2022
Messages
9
Aparently I had to fetch first the release that I wanted to upgrade to:

iocage fetch 12.3-RELEASE

And the jail is now running 12.3-RELEASE-p5
Unfortunatly zoneminder still does not work and the issue is now related with the database.

Code:
root@ZoneMinderJail:~ # service zoneminder start
DBI connect('database=zm;host=localhost','dbadmin',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/local/lib/perl5/site_perl/ZoneMinder/Database.pm line 110.
DBI connect('database=zm;host=localhost','dbadmin',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/local/lib/perl5/site_perl/ZoneMinder/Database.pm line 110.
04/28/22 16:04:47.098024 zmpkg[35347].ERR [Z ....
 

SimpleUser

Cadet
Joined
Apr 7, 2022
Messages
9
Strangelly after a manual jail reboot, zoneminder looks to be working, but the web interface is not.

Code:
  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
37439 mysql        53  20    0  2116M   523M select   5   0:36  26.62% mysqld
37512 www           4  20    0   687M   398M select   7   0:37  26.11% zmc
37488 www           4  20    0   533M   265M select   7   0:25  18.10% zmc
37500 www           4  20    0   379M   102M select   5   0:20  14.36% zmc
37492 www           4  20    0   446M   162M select   3   0:16  11.38% zmc
37539 www           1  20    0    36M    23M sbwait   1   0:01   0.18% perl
37709 root          1  20    0    13M  3640K CPU3     3   0:00   0.02% top
37708 www           2  20    0   306M    44M select   0   0:00   0.01% zmc
 

SimpleUser

Cadet
Joined
Apr 7, 2022
Messages
9
Top