OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: delphi99 on November 09, 2024, 05:43:10 PM

Title: monit stopped with <118>Error opening the log file '/var/log/monit' for writing
Post by: delphi99 on November 09, 2024, 05:43:10 PM
Hello,
sorry for my poor english...

Yesterday my monit service has stopped. May be after update to OPNsense 24.7.8-amd64.
And I can't start it yet, only error messages...

I can see the following notes in logfile:
2024-11-08T16:43:07   Notice   kernel   <118>/usr/local/etc/rc.d/monit: WARNING: failed to start monit   
2024-11-08T16:43:07   Notice   kernel   <118>Error opening the log file '/var/log/monit' for writing -- Is a directory   
2024-11-08T16:43:07   Notice   kernel   <118>Starting monit.   
2024-11-08T16:43:07   Notice   root   /usr/local/etc/rc.d/monit: WARNING: failed to start monit   
...   
2024-11-08T16:43:05   Notice   kernel   <118>Setting up gateway monitor...done.

Searching in forum and google had no results.
Any suggestions to solve the error?

Many thanks
Frank
Title: SOLVED: monit stopped with <118>Error opening the log file '/var/log/monit'
Post by: delphi99 on November 26, 2024, 07:01:51 PM
there was a directoty named "monit", but the new system expected a file with this name. After deleteing the directory and all old logfiles, the service has started properly :-)