IPsec not starting and getting PHP error
on SG3100 Thu Aug 30 00:38:38 EDT 2018
Crash report begins. Anonymous machine information:
FreeBSD 11.2-RELEASE-p2 #80 ef03b27b545(factory-RELENG_2_4_4): Thu Aug 30 00:55:02 EDT 2018 root@buildbot3:/builder/crossbuild-master/obj/armv6/C5dYt69Q/arm.armv6/builder/crossbuild-master/pfSense/tmp/FreeBSD-src/sys/pfSense-SG-3100
Crash report details:
[31-Aug-2018 09:17:05 Europe/Moscow] PHP Warning: mkdir(): File exists in /etc/inc/vpn.inc on line 174
[31-Aug-2018 09:18:49 Europe/Moscow] PHP Warning: mkdir(): File exists in /etc/inc/vpn.inc on line 174
[31-Aug-2018 09:19:58 Europe/Moscow] PHP Warning: mkdir(): File exists in /etc/inc/vpn.inc on line 174
In IPsec log:
Aug 31 09:20:05 charon 09[IKE] <con1000|4> no private key found for '<ddns local peer ID>'
#1 Updated by Jim Pingle over 1 year ago
- Status changed from New to In Progress
- Assignee set to Jim Pingle
I see some room for improvement in that area of the code, but that error appears to come from a disk issue.
Speaking with @vlind on Slack he attempted to look at the directory and received this:
ls -la /var/etc/ipsec/ipsec.d ls: /var/etc/ipsec/ipsec.d: Bad file descriptor
ipsec.d directory does not exist under
/var/etc/ipsec/. With a working filesystem that should say "No such file or directory".
I'll commit the fix I have worked up here but the original issue will most likely be corrected by a fsck of the drive.
#3 Updated by Vladimir Lind over 1 year ago
Yes, fsck fixed IPsec issue, now it works, thank you.
- Last Mounted on /
- Root file system
- Phase 1 - Check Blocks and Sizes
- Phase 2 - Check Pathnames
UNALLOCATED I=323499 OWNER=root MODE=0
SIZE=0 MTIME=Jan 1 03:00 1970
UNEXPECTED SOFT UPDATE INCONSISTENCY