OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: logan23 on February 29, 2020, 08:25:55 am

Title: VPN: OpenVPN: Log File Loading...
Post by: logan23 on February 29, 2020, 08:25:55 am
Hi,

For some reason, lately, I cannot access anymore to my OpenVPN log file.

My OpenVPN clients work perfectly, I can connect, but when I click on "Log File" (https://192.168.X.X/ui/diagnostics/log/core/openvpn), I always get "Loading...".

Of course, I have tried to clear/flush the log and then "Refresh", reboot, etc. Nothing works.

I run the latest updates :
OPNsense 20.1.1-amd64
FreeBSD 11.2-RELEASE-p16-HBSD
LibreSSL 3.0.2

Any idea what's wrong?

Thanks!
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: Rickytr on February 29, 2020, 12:31:18 pm
I have the same problem after a reboot this morning. Everything seems to work well and the log files are correctly written but I cannot see anything in the GUI.
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: RalfG on February 29, 2020, 12:46:02 pm
Same here...,
killing syslogd, removing logs in /var/log, restarting syslogd didn't help.
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: miroco on February 29, 2020, 01:14:59 pm
As far as I can tell, apart from the OpenVPN log file, Backend and General under System, Plain View under Firewall and Unbound DNS also seem to be affected. They all just show "loading..."
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: logan23 on February 29, 2020, 01:42:54 pm
I forgot to mention this other problem:

My OPNsense is currently running on a standalone fanless computer that I use as a router.

Before I upgraded to 20.1.1, when I switched it on, my OpenVPN clients automatically connected to my VPN provider without any problem.

Now, when I switch it on, the VPN connection fails. I have to enter into my OPNsense setup, go to https://192.168.X.X/vpn_openvpn_client.php , disable my OpenVPN client and re-enable it, and then, it works...
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: logan23 on February 29, 2020, 01:45:47 pm
Plain View under Firewall and Unbound DNS also seem to be affected. They all just show "loading..."

I confirm!!! Same problem here.
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: Eagle on February 29, 2020, 02:44:01 pm
Feb 29 14:03:19 firewall configd.py: [98be8b12-2874-4a15-b266-c6d88e0b8272] Show log
Feb 29 14:03:19 firewall configd.py: [98be8b12-2874-4a15-b266-c6d88e0b8272] Script action failed with Command '/usr/local/opnsense/scripts/systemhealth/queryLog.py --limit '20' --offset '0' --filter ''  --module 'core' --filename 'pkg'' returned non-zero exit status 1. at Traceback (most recent call last):   File "/usr/local/opnsense/service/modules/processhandler.py", line 484, in execute     stdout=output_stream, stderr=error_stream)   File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call     raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/systemhealth/queryLog.py --limit '20' --offset '0' --filter ''  --module 'core' --filename 'pkg'' returned non-zero exit status 1.
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: Michel89 on February 29, 2020, 04:38:55 pm
As far as I can tell, apart from the OpenVPN log file, Backend and General under System, Plain View under Firewall and Unbound DNS also seem to be affected. They all just show "loading..."

Same problem for me.
No issue for reading the log files (like /var/log/system.log) using the utility 'clog', but GUI just shows "loading...".
May be an issue about the date ( Feb, 29)... ?

OPNsense 20.1.1-amd64
FreeBSD 11.2-RELEASE-p16-HBSD
OpenSSL 1.1.1d 10 Sep 2019

Title: Re: VPN: OpenVPN: Log File Loading...
Post by: AdSchellevis on February 29, 2020, 05:32:57 pm
looks like a leap-year issue, the following patch should fix it https://github.com/opnsense/core/commit/e3774ddfb6caaa48727029241a8486065d3c56a8

Install from the console using:
Code: [Select]
opnsense-patch e3774dd


Best regards,

Ad
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: xsfpo on February 29, 2020, 07:04:28 pm
Confirm - patch e3774dd working.
All logs ok now.
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: miroco on February 29, 2020, 07:52:16 pm
Thank you for the rapid response.

miroco
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: Michel89 on February 29, 2020, 08:48:52 pm
Patch is working  !

Thanks !
Title: Re: VPN: OpenVPN: Log File Loading...
Post by: logan23 on February 29, 2020, 10:38:24 pm
Thanks very much AdSchellevis! I confirm, log is working again.