OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: Ringo De Smet on September 02, 2015, 06:21:21 pm

Title: [SOLVED] Several log files become binary and have file size 511488
Post by: Ringo De Smet on September 02, 2015, 06:21:21 pm
Hello,

First of all, thank you for the OPNsense effort. After my router died, I reviewed a number of software router/firewalls and landed with OPNsense.

We are a few days up and running now, and today I tried to configure an IPSec VPN to an Amazon VPC. The IPSec daemon doesn't seem to start:

OPNsense opnsense: /diag_ipsec.php: The command '/usr/local/sbin/ipsec up con1' returned exit code '7', the output was ''

So I tried the IPSec log files. No respons in the web UI, so I tried a good old console. In /var/log, I have several log files of file size 511488 bytes. Checking the file type and trying out less, it returns garbage.

I suspect there is disk corruption. However, it's my first time on a (Free)BSD system, so I don't find my way around the tooling.

System:
* OPNsense 15.7.11
* 64bit VM on VMware ESXi 6.0
* 1GB RAM
* 40 GB virtual disk (thin provisioned) on an iSCSI datastore from my Synology NAS (only 3% used after install)
Title: Re: Several log files become binary and have file size 511488: disk corruption?
Post by: AdSchellevis on September 02, 2015, 10:00:19 pm
Hi Ringo,

Welcome to OPNsense!
The syslog files use clog, so you need clog to display them.

To tail the ipsec.log, just use:

Code: [Select]
clog -f /var/log/ipsec.log


This should return readable output if all is working like it should, although it's a mystery why your UI doesn't display the entries because it should do something similar.

If you have disk issues, I suspect a dmesg should tell you something more about it.

I hope you can find the issue,

Regards,

Ad
Title: Re: [SOLVED] Several log files become binary and have file size 511488
Post by: franco on September 10, 2015, 04:58:58 pm
Log-term we want to go back to non-clog style log files.