@viragomann said in Unable to contact daemon:
check the system log for hints to the reason, why the server did not start.
Thanks for the suggestion. It looks like I had a few separate (unrelated) issues. The first was my logs were not actually working at all...since none of the logs had updated since 19 March 2023 (the most recent entries for the System, Firewall, DHCP, etc. logs are 19 March).
Going to System Logs > Settings showed a PHP error:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_logs_settings.php:72 Stack trace: #0 {main} thrown in /usr/local/www/status_logs_settings.php on line 72 PHP ERROR: Type: 1, File: /usr/local/www/status_logs_settings.php, Line: 72, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_logs_settings.php:72 Stack trace: #0 {main} thrown
This seemed related to a bug in pfSense 23.01 where if the <syslog> portion of the config.xml file is empty then this error will happen and no logging occurs. This is in the bug report here: https://redmine.pfsense.org/issues/13942
So, once I got that fixed and the logs worked again I saw that OpenVPN had the following error when starting:
cannot open tun/tap dev /dev/tun1 no such file or directory pfsense
...which was related to another bug detailed here: https://redmine.pfsense.org/issues/13963
The ultimate fix for the OpenVPN issue was running the following command:
kldxref /boot/kernel
...and then the OpenVPN service started immediately.
Hope this might help anyone else in the same situation as me!