alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.52k stars 214 forks source link

🐛 [Zoneminder] start don't work #867

Closed jodomi closed 1 year ago

jodomi commented 1 year ago

Description

Since the upgrade 2023.6.1 addon zoneminder won't work, stay in stop state even if the log seems OK. I uninstall and reinstall a lot but same result. I delete zoneminder in /config/addon_config before uninstall, i delete docker image before uninstall same result.

Reproduction steps

1. Go to Addon Zoneminder
2. Click on start 
3. The first time after reinstall seems ok then after few seconds nothing, log stay red.
4. retry (a lot) nothong
5. uninstall addon, re-start HA, reinstall addon, same result.

Addon Logs

/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
 Add-on: Zoneminder
 A full-featured, open source, state-of-the-art video surveillance software system
-----------------------------------------------------------
 Add-on version: 1.36.33
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.2  (amd64 / qemux86-64)
 Home Assistant Core: 2023.6.1
 Home Assistant Supervisor: 2023.06.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
/etc/cont-init.d/00-folders.sh: executing
... making sure /config/addons_config/zoneminder exists
... checking permissions
/./etc/cont-init.d/00-folders.sh: line 9: bashio::config.has_value: command not found
... making symlinks
/etc/cont-init.d/01-custom_script.sh: executing
[17:53:07] INFO: Execute /config/addons_autoscripts/zoneminder.sh if existing
[17:53:07] INFO: ... no script found
/etc/cont-init.d/99-run.sh: executing
[17:53:07] INFO: Defining database
[17:53:07] INFO: Using internal database
[17:53:07] INFO: Please wait while the app is loading !
 * Starting MySQL database server service   ...done.
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'zmuser'@'localhost'
 * ZoneMinder dB already exists, skipping table creation.
 * Starting Apache http web server service   ...done.
 * Starting ZoneMinder video surveillance recorder
Database already at version 1.36.12, update skipped.
Freshening configuration in database
Migratings passwords, if any...
Loading config from DB 221 entries
Saving config to DB 221 entries
   ...done.
tail: cannot open '/var/log/zoneminder/zm*.log' for reading: No such file or directory
==> /var/log/zm/zmdc.log <==
06/11/23 17:53:11.274818 zmdc[634].INF [ZMServer:411] ['zmfilter.pl --filter_id=1 --daemon' started at 23/06/11 17:53:11]
06/11/23 17:53:11.406177 zmdc[603].INF [ZMServer:411] ['zmfilter.pl --filter_id=2 --daemon' starting at 23/06/11 17:53:11, pid = 642]
06/11/23 17:53:11.419860 zmdc[642].INF [ZMServer:411] ['zmfilter.pl --filter_id=2 --daemon' started at 23/06/11 17:53:11]
06/11/23 17:53:11.543531 zmdc[603].INF [ZMServer:411] ['zmwatch.pl' starting at 23/06/11 17:53:11, pid = 650]
06/11/23 17:53:11.543534 zmdc[650].INF [ZMServer:411] ['zmwatch.pl' started at 23/06/11 17:53:11]
06/11/23 17:53:11.707888 zmdc[603].INF [ZMServer:411] ['zmupdate.pl -c' starting at 23/06/11 17:53:11, pid = 659]
06/11/23 17:53:11.708235 zmdc[659].INF [ZMServer:411] ['zmupdate.pl -c' started at 23/06/11 17:53:11]
06/11/23 17:53:11.810369 zmdc[603].INF [ZMServer:411] ['zmstats.pl' starting at 23/06/11 17:53:11, pid = 666]
06/11/23 17:53:11.810373 zmdc[666].INF [ZMServer:411] ['zmstats.pl' started at 23/06/11 17:53:11]
Update agent starting at 23/06/11 17:53:11
==> /var/log/zm/zmfilter_1.log <==
06/11/23 17:53:11.495832 zmfilter_1[634].INF [main:182] [Scanning for events using filter id '1']
==> /var/log/zm/zmfilter_2.log <==
06/11/23 17:53:11.628050 zmfilter_2[642].INF [main:182] [Scanning for events using filter id '2']
==> /var/log/zm/zmpkg.log <==
06/11/23 17:53:09.294780 zmpkg[584].INF [main:318] [Sanity checking States table...]
06/11/23 17:53:09.407513 zmpkg[584].INF [main:95] [Command: start]
06/11/23 17:53:10.895336 zmpkg[584].INF [main:211] [Single server configuration detected. Starting up services.]
==> /var/log/zm/zmupdate.log <==
==> /var/log/zm/zmwatch.log <==
06/11/23 17:53:11.641612 zmwatch[650].INF [main:79] [Watchdog starting, pausing for 30 seconds]
tail: cannot watch parent directory of '/var/log/zoneminder/zm*.log': No such file or directory
tail: inotify cannot be used, reverting to polling

Architecture

amd64

OS

Virtual Machine

jodomi commented 1 year ago

After many install; remove, reinstall, 3 days and now one install and it's ok!