OPNsense Forum

Archive => 15.1 Legacy Series => Topic started by: macafee on June 20, 2015, 10:05:50 am

Title: OPNsense 15.1.12-amd64 BUG!!!
Post by: macafee on June 20, 2015, 10:05:50 am
System Information:
FreeBSD 10.1-RELEASE-p12 #0 84c8e2b(master): Mon Jun 15 11:30:19 CEST 2015     root@sensey64:/usr/obj/usr/src/sys/SMP
OPNsense 15.1.12-eac7cdde6 (amd64)
OpenSSL 1.0.2c 12 Jun 2015

PHP Errors:
[20-Jun-2015 15:42:18 Asia/Shanghai] PHP Fatal error:  Uncaught exception 'Exception' with message 'Failed to connect: No such file or directory' in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php:67
Stack trace:
#0 /usr/local/etc/inc/util.inc(148): OPNsense\Core\Backend->configdRun('sshd restart', false)
#1 /usr/local/etc/rc.bootup(194): configd_run('sshd restart')
#2 {main}
  thrown in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php on line 67

The opnsense can't startup. I have tried to reinstall the opnsense with OPNsense-15.1.12_OpenSSL-vga-amd64.img but the system has same error´╝ü
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: domg on June 20, 2015, 11:04:25 am
Hi,

How much memory do you have installed ?

This could be the same issue as https://github.com/opnsense/ports/issues/10

HTH
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: macafee on June 20, 2015, 01:24:40 pm
The box has 8GB RAM totally. The 2GB for VAR and the 2GB for TMP.
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: franco on June 21, 2015, 07:10:28 pm
Hi, nope, different issue. I think Shawn added a workaround for his HardenedBSD builds, but it's not a proper solution, only a quick fix to pin down the issue:

https://github.com/HardenedBSD/opnsense-core/commit/9375bdc0b668d3307a9653ebb0dc0231e69e057b

This will help configd to bring up the socket and the error likely disappears. If that works around our problem we'll have to address it in configd_ctl.py I think...
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: macafee on June 22, 2015, 04:34:48 am
The opnsense works again after I add 'sleep 10' to the /usr/local/etc/rc file.

But the wan pppoe interface still gets the ip address slowly. The Wan PPPOE of welcome screen don't dispaly any ip address when the opnsense finished booting.
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: franco on June 22, 2015, 06:23:55 am
I have added a bug here: https://github.com/opnsense/core/issues/218

Can you let me know which hardware this happens on?
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: macafee on June 22, 2015, 08:32:18 am
INTEL XEON X5687

8GB RAM

128G SSD

INTEL I350 4 PORT NIC

Broadcom 5823 Cryptographic Accelerator

The Broadcom5823 can work at the pfsense i386 version but can't work at the opnsense amd64 version. The opnsense just can recognize the Broadcom5823 as ubsec devices.
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: franco on June 22, 2015, 09:43:25 am
Thanks, is there any significance in mentioning pfSense i386 and OPNsense amd64 exclusively? I couldn't find an exception in our code, it may be that pfSense patched FreeBSD 10.1 to support hardware crypto for said device. We don't have any custom patches in that area.
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: jschellevis on June 22, 2015, 11:54:32 am
The Broadcom needs a driver to be compiled...
Other than that it should work.

See:
https://www.freebsd.org/cgi/man.cgi?query=ubsec&sektion=4

Franco,
Is it included in OPNsense build?
Title: Re: OPNsense 15.1.12-amd64 BUG!!!
Post by: franco on June 22, 2015, 12:11:51 pm
Edit: ubsec is automatically loaded, no setup necessary.