Mkstemp: Permission denied

2.3.0p16.cre
Debian 12.6 (bookworm)

omd start mysite

Temporary filesystem already mounted
Starting agent-receiver…OK
Starting mkeventd…OK
Starting rrdcached…OK
Starting npcd…OK
Starting nagios…OK
Starting apache…OK
Starting redis…OK
Initializing Crontab…/var/spool/cron/: mkstemp: Permission denied
Exception ignored in: <_io.TextIOWrapper name=‘’ mode=‘w’ encoding=‘utf-8’>
BrokenPipeError: [Errno 32] Broken pipe
ERROR

This error is shown in the forum in 2020 and 2021, but no solution at all. It appears on a brand new VM with Debian. I even tried the former solution with reconfigure-dpkg cron, but the error persists.

Any hints?

Kind regards from Germany
Mikmu

  1. Can you provide links to the posts you found, so others can understand your research properly?
  2. What are the permissions on the relevant directory?

For sure, take Problem with check-mk-raw:2.0.0b6 - "Initializing Crontab.../var/spool/cron/: mkstemp: Permission denied".

Concerning the permissions…well…which directory is it? as user root without selinux, I have write persmissions to everything.

Maybe this KB article helps.
The forum posts are so old and referring to the Docker image, that I doubt this issue has much to do with them.

Thanks, robin, but as I sad bevore

and yes, it is a brand-new, never bevore touched environment für the cerntral service of check_mk. This issue seems to exist only under Debian, neither RHEL (which we use in the company) nor Ubuntu.

Kind regards
mikmu

Hi there,

apparently, crontab is not what it should on a brand new Dabian 12. I fixed it by

> chmod 1730 /var/spool/cron/crontabs
> chown root:crontab /var/spool/cron/crontabs

and omd can now launch. Thanks & good by!

Mikmu

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.