dlandon / zoneminder.machine.learning

Zoneminder Docker
GNU General Public License v2.0
320 stars 144 forks source link

Apache does not start #192

Open toddrob99 opened 3 years ago

toddrob99 commented 3 years ago

I just tried spinning up a fresh ZM instance from this image on Synology NAS, and apache2 will not start in the container. Since the image seems to install updates on startup, I assume this will impact existing containers too when they are recreated.

Based on my research, it seems like there's a problem with the version of libapr1 that's being installed (1.7.0). This and this were pretty much the only references I could find for the error message. It seems the kernel used by Synology is not new enough to include the getrandom() method.

Starting services...
 * Starting Apache httpd web server apache2
 *
Output of config test was:
 * The apache2 configtest failed.
[Sun Sep 05 20:23:35.678896 2021] [:crit] [pid 16671] (38)Function not implemented: AH00141: Could not initialize random number generator
Action 'configtest' failed.
The Apache error log may have more information.
Webreaper commented 3 years ago

Seeing the same thing when running the image in docker on a Synology DS920., running DSM 7. Seems like that's unavailable in the DSM ubuntu distro.

renatkh commented 2 years ago

same here