CMK version:
2.0.0p29.cee/2.1.0p15.cee
OS version:
Docker 5:20.10.18~3-0~debian-bullseye running on openmediavault 6.0.45-1 (Shaitan)
Description of the problem:
Container/Checkmk does not start due to crontab permission error. The problem is already known, see https://forum.checkmk.com/t/problem-with-check-mk-raw-2-0-0b6-initializing-crontab-var-spool-cron-mkstemp-permission-denied/22791/3 or https://forum.checkmk.com/t/site-partially-running-after-appliance-upgrade-to-v1-4-7/14932.
I was unable to run the dpkg-reconfigure cron command with or after the container start.
Error message:
### CREATING SITE 'dev'
Adding /opt/omd/sites/dev/tmp to /etc/fstab.
Going to set TMPFS to off.
Preparing tmp directory /omd/sites/dev/tmp...Generating configuration for core (type cmc)...
Starting full compilation for all hosts Creating global helper config...OK
Creating cmc protobuf configuration...OK
Updating core configuration...
Executing post-create script "01_create-sample-config.py"...OK
Adding /opt/omd/sites/dev/tmp to /etc/fstab.
Going to set TMPFS to off.
Created new site dev with version 2.1.0p15.cee.
The site can be started with omd start dev.
The default web UI is available at http://60c492e29217/dev/
The admin user for the web applications is cmkadmin with password: y6FQgYvrEDpwLDrTMQAEbF5se6Xs3e7uxEqCx9AcNQ4ogDzU
For command line administration of the site, log in with 'omd su dev'.
After logging in, you can change the password for cmkadmin with 'htpasswd -B -C 12 etc/htpasswd cmkadmin'.
WARNING: You have to execute 'omd update-apache-config dev' as root to update and apply the configuration of the system apache.
WARNING: You have to execute 'omd update-apache-config dev' as root to update and apply the configuration of the system apache.
### STARTING XINETD
Starting internet superserver: xinetd.
### STARTING SITE
Preparing tmp directory /omd/sites/dev/tmp...Starting agent-receiver...OK
Starting mkeventd...OK
Starting liveproxyd...OK
Starting mknotifyd...OK
Starting rrdcached...OK
Starting cmc...OK
Starting apache...OK
Starting dcd...OK
Starting redis...OK
Starting stunnel...OK
Starting xinetd...OK
/var/spool/cron/: mkstemp: Permission denied
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
Initializing Crontab...ERROR