Webconfigurator/WebGUI fails if no DHCP address on WAN during Reboot



  • Ok so I have seen this issue documented a few times here but not one person seems to have an actual awnser.

    Today I was having some internet issues so I had to reset my cable modem and i restarted PFsense. The cable modem did not give an ip address and pfsense failed to configure web/gui during its boot up sequnce.

    This meant I was not able to access the WebGui after it finished booting.

    Does anyone from support or the community have any idea about this ????

    This has been documented to effect many other people in these other threads (see I did search first) :
    Multiple Threads about not being able to access WebGui during boot up when missing WAN IP

    https://forum.pfsense.org/index.php?topic=61635.0

    https://forum.pfsense.org/index.php/topic,71368.0.html

    https://forum.pfsense.org/index.php/topic,72622.0.html

    Thanks for the help



  • Was it hanging on trying to get a DHCP for WAN on boot? So it didn't finish booting?
    Have a boot log?
    Were you able to SSH to it?



  • Yes it did hang on trying to get DHCP for WAN (since my cable modem didn't want to give it an ip ) but it did boot .

    No I don't have any boot logs but its easy enough for me to reproduce (I just unplug the wan) .

    If the boot log will help then I will unplug it when I get home if u tell me where to grab the boot log from (never grabbed it before).

    Thanks



  • @DBayPlaya2k3:

    Yes it did hang on trying to get DHCP for WAN (since my cable modem didn't want to give it an ip ) but it did boot .

    No I don't have any boot logs but its easy enough for me to reproduce (I just unplug the wan) .

    If the boot log will help then I will unplug it when I get home if u tell me where to grab the boot log from (never grabbed it before).

    Thanks

    Need to see what it does and where it gets to really.

    1. system.log
    2. dmesg.boot
    3. if you ssh in and choose to restart the web configurator does it give you an error? Does it restart? Paste results.


  • I did try to restart the web configurator via ssh and I believe it said something to the effect of so such pid but the exact error I don't remember.

    It did also fail to start webconfigurator when the Wan was unplugged during boot up sequence.

    I am getting off work in an hour or so when I get home I'll unplug the WAN reboot let it fail and then grab you the log u specified.

    Thanks again



  • Ok I have collected the requested log.

    Of interest is this:```
    Feb 28 21:03:24 pfsense php: rc.bootup: The command '/usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf' returned exit code '255', the output was '2014-02-28 21:03:23: (network.c.385) can't bind to port: 0.0.0.0 443 Address already in use'

    
    Looks like its complaining about not being able to bind to 443 (ssl) for 0.0.0.0 (WAN IP) because its already in use.
    
    I do have a 3rd party ssl cert in case it helps. Below is full output of both logs.
    
    –system.log----
    
    

    Feb 28 21:01:38 pfsense syslogd: kernel boot file is /boot/kernel/kernel
    Feb 28 21:01:50 pfsense php: /reboot.php: Stopping all packages.
    Feb 28 21:01:53 pfsense shutdown: reboot by root:
    Feb 28 21:01:53 pfsense shutdown: reboot by root:
    Feb 28 21:01:53 pfsense sshlockout[11991]: sshlockout/webConfigurator v3.0 starting up
    Feb 28 21:01:55 pfsense syslogd: Logging subprocess 11991 (exec /usr/local/sbin/sshlockout_pf 15) exited due to signal 15.
    Feb 28 21:01:55 pfsense syslogd: exiting on signal 15
    Feb 28 21:03:07 pfsense syslogd: kernel boot file is /boot/kernel/kernel
    Feb 28 21:03:07 pfsense kernel: Copyright (c) 1992-2012 The FreeBSD Project.
    Feb 28 21:03:07 pfsense kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    Feb 28 21:03:07 pfsense kernel: The Regents of the University of California. All rights reserved.
    Feb 28 21:03:07 pfsense kernel: FreeBSD is a registered trademark of The FreeBSD Foundation.
    Feb 28 21:03:07 pfsense kernel: FreeBSD 8.3-RELEASE-p11 #1: Wed Sep 11 18:47:57 EDT 2013
    Feb 28 21:03:07 pfsense kernel: root@snapshots-8_3-i386.builders.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8 i386
    Feb 28 21:03:07 pfsense kernel: Timecounter "i8254" frequency 1193182 Hz quality 0
    Feb 28 21:03:07 pfsense kernel: CPU: Genuine Intel(R) CPU N270  @ 1.60GHz (1596.01-MHz 686-class CPU)
    Feb 28 21:03:07 pfsense kernel: Origin = "GenuineIntel"  Id = 0x106c2  Family = 6  Model = 1c  Stepping = 2
    Feb 28 21:03:07 pfsense kernel: Features=0xbfe9fbff <fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe>Feb 28 21:03:07 pfsense kernel: Features2=0x40c39d <sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,xtpr,pdcm,movbe>Feb 28 21:03:07 pfsense kernel: AMD Features=0x100000 <nx>Feb 28 21:03:07 pfsense kernel: AMD Features2=0x1 <lahf>Feb 28 21:03:07 pfsense kernel: TSC: P-state invariant
    Feb 28 21:03:07 pfsense kernel: real memory  = 1073741824 (1024 MB)
    Feb 28 21:03:07 pfsense kernel: avail memory = 1019133952 (971 MB)
    Feb 28 21:03:07 pfsense kernel: ACPI APIC Table: <041309 APIC0852>
    Feb 28 21:03:07 pfsense kernel: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
    Feb 28 21:03:07 pfsense kernel: FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads
    Feb 28 21:03:07 pfsense kernel: cpu0 (BSP): APIC ID:  0
    Feb 28 21:03:07 pfsense kernel: cpu1 (AP/HT): APIC ID:  1
    Feb 28 21:03:07 pfsense kernel: ioapic0: Changing APIC ID to 2
    Feb 28 21:03:07 pfsense kernel: ioapic0 <version 2.0="">irqs 0-23 on motherboard
    Feb 28 21:03:07 pfsense kernel: wlan: mac acl policy registered
    Feb 28 21:03:07 pfsense kernel: ipw_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    Feb 28 21:03:07 pfsense kernel: ipw_bss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    Feb 28 21:03:07 pfsense kernel: module_register_init: MOD_LOAD (ipw_bss_fw, 0xc07bb6f0, 0) error 1
    Feb 28 21:03:07 pfsense kernel: ipw_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    Feb 28 21:03:07 pfsense kernel: ipw_ibss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    Feb 28 21:03:07 pfsense kernel: module_register_init: MOD_LOAD (ipw_ibss_fw, 0xc07bb790, 0) error 1
    Feb 28 21:03:07 pfsense kernel: ipw_monitor: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    Feb 28 21:03:07 pfsense kernel: ipw_monitor: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    Feb 28 21:03:07 pfsense kernel: module_register_init: MOD_LOAD (ipw_monitor_fw, 0xc07bb830, 0) error 1
    Feb 28 21:03:07 pfsense kernel: kbd1 at kbdmux0
    Feb 28 21:03:07 pfsense kernel: cryptosoft0: <software crypto="">on motherboard
    Feb 28 21:03:07 pfsense kernel: padlock0: No ACE support.
    Feb 28 21:03:07 pfsense kernel: acpi0: <041309 RSDT0852> on motherboard
    Feb 28 21:03:07 pfsense kernel: acpi0: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: acpi0: Power Button (fixed)
    Feb 28 21:03:07 pfsense kernel: acpi0: reservation of 0, a0000 (3) failed
    Feb 28 21:03:07 pfsense kernel: acpi0: reservation of 100000, 3f700000 (3) failed
    Feb 28 21:03:07 pfsense kernel: Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    Feb 28 21:03:07 pfsense kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
    Feb 28 21:03:07 pfsense kernel: cpu0: <acpi cpu="">on acpi0
    Feb 28 21:03:07 pfsense kernel: ACPI Warning: Incorrect checksum in table [OEMB] - 0x5F, should be 0x5C (20101013/tbutils-354)
    Feb 28 21:03:07 pfsense kernel: cpu1: <acpi cpu="">on acpi0
    Feb 28 21:03:07 pfsense kernel: pcib0: <acpi host-pci="" bridge="">port 0xcf8-0xcff on acpi0
    Feb 28 21:03:07 pfsense kernel: pci0: <acpi pci="" bus="">on pcib0
    Feb 28 21:03:07 pfsense kernel: vgapci0: <vga-compatible display="">port 0xbc80-0xbc87 mem 0xfe780000-0xfe7fffff,0xd0000000-0xdfffffff,0xfe740000-0xfe77ffff irq 16 at device 2.0 on pci0
    Feb 28 21:03:07 pfsense kernel: agp0: <intel 945gme="" svga="" controller="">on vgapci0
    Feb 28 21:03:07 pfsense kernel: agp0: aperture size is 256M, detected 7932k stolen memory
    Feb 28 21:03:07 pfsense kernel: vgapci1: <vga-compatible display="">mem 0xfe680000-0xfe6fffff at device 2.1 on pci0
    Feb 28 21:03:07 pfsense kernel: pci0: <multimedia, hda="">at device 27.0 (no driver attached)
    Feb 28 21:03:07 pfsense kernel: pcib1: <acpi pci-pci="" bridge="">irq 16 at device 28.0 on pci0
    Feb 28 21:03:07 pfsense kernel: pci1: <acpi pci="" bus="">on pcib1
    Feb 28 21:03:07 pfsense kernel: em0: <intel(r) 1000="" pro="" network="" connection="" 7.3.2="">port 0xcc80-0xcc9f mem 0xfe8e0000-0xfe8fffff,0xfe8dc000-0xfe8dffff irq 16 at device 0.0 on pci1
    Feb 28 21:03:07 pfsense kernel: em0: Using MSIX interrupts with 3 vectors
    Feb 28 21:03:07 pfsense kernel: em0: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: em0: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: em0: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: pcib2: <acpi pci-pci="" bridge="">irq 17 at device 28.1 on pci0
    Feb 28 21:03:07 pfsense kernel: pci2: <acpi pci="" bus="">on pcib2
    Feb 28 21:03:07 pfsense kernel: em1: <intel(r) 1000="" pro="" network="" connection="" 7.3.2="">port 0xdc80-0xdc9f mem 0xfe9e0000-0xfe9fffff,0xfe9dc000-0xfe9dffff irq 17 at device 0.0 on pci2
    Feb 28 21:03:07 pfsense kernel: em1: Using MSIX interrupts with 3 vectors
    Feb 28 21:03:07 pfsense kernel: em1: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: em1: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: em1: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: uhci0: <intel 82801g="" (ich7)="" usb="" controller="" usb-a="">port 0xbc00-0xbc1f irq 23 at device 29.0 on pci0
    Feb 28 21:03:07 pfsense kernel: uhci0: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: uhci0: LegSup = 0x2f00
    Feb 28 21:03:07 pfsense kernel: usbus0: <intel 82801g="" (ich7)="" usb="" controller="" usb-a="">on uhci0
    Feb 28 21:03:07 pfsense kernel: uhci1: <intel 82801g="" (ich7)="" usb="" controller="" usb-b="">port 0xb880-0xb89f irq 19 at device 29.1 on pci0
    Feb 28 21:03:07 pfsense kernel: uhci1: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: uhci1: LegSup = 0x2f00
    Feb 28 21:03:07 pfsense kernel: usbus1: <intel 82801g="" (ich7)="" usb="" controller="" usb-b="">on uhci1
    Feb 28 21:03:07 pfsense kernel: uhci2: <intel 82801g="" (ich7)="" usb="" controller="" usb-c="">port 0xb800-0xb81f irq 18 at device 29.2 on pci0
    Feb 28 21:03:07 pfsense kernel: uhci2: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: uhci2: LegSup = 0x2f00
    Feb 28 21:03:07 pfsense kernel: usbus2: <intel 82801g="" (ich7)="" usb="" controller="" usb-c="">on uhci2
    Feb 28 21:03:07 pfsense kernel: uhci3: <intel 82801g="" (ich7)="" usb="" controller="" usb-d="">port 0xb480-0xb49f irq 16 at device 29.3 on pci0
    Feb 28 21:03:07 pfsense kernel: uhci3: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: uhci3: LegSup = 0x2f00
    Feb 28 21:03:07 pfsense kernel: usbus3: <intel 82801g="" (ich7)="" usb="" controller="" usb-d="">on uhci3
    Feb 28 21:03:07 pfsense kernel: ehci0: <intel 82801gb="" r="" (ich7)="" usb="" 2.0="" controller="">mem 0xfe737c00-0xfe737fff irq 23 at device 29.7 on pci0
    Feb 28 21:03:07 pfsense kernel: ehci0: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: usbus4: EHCI version 1.0
    Feb 28 21:03:07 pfsense kernel: usbus4: <intel 82801gb="" r="" (ich7)="" usb="" 2.0="" controller="">on ehci0
    Feb 28 21:03:07 pfsense kernel: pcib3: <acpi pci-pci="" bridge="">at device 30.0 on pci0
    Feb 28 21:03:07 pfsense kernel: pci3: <acpi pci="" bus="">on pcib3
    Feb 28 21:03:07 pfsense kernel: em2: <intel(r) 1000="" pro="" legacy="" network="" connection="" 1.0.4="">port 0xec80-0xecbf mem 0xfebe0000-0xfebfffff,0xfeb80000-0xfebbffff irq 16 at device 0.0 on pci3
    Feb 28 21:03:07 pfsense kernel: em2: [FILTER]
    Feb 28 21:03:07 pfsense kernel: em3: <intel(r) 1000="" pro="" legacy="" network="" connection="" 1.0.4="">port 0xec00-0xec3f mem 0xfebc0000-0xfebdffff,0xfeb00000-0xfeb3ffff irq 17 at device 0.1 on pci3
    Feb 28 21:03:07 pfsense kernel: em3: [FILTER]
    Feb 28 21:03:07 pfsense kernel: isab0: <pci-isa bridge="">at device 31.0 on pci0
    Feb 28 21:03:07 pfsense kernel: isa0: <isa bus="">on isab0
    Feb 28 21:03:07 pfsense kernel: atapci0: <intel ich7m="" sata150="" controller="">port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.2 on pci0
    Feb 28 21:03:07 pfsense kernel: ata0: <ata channel="">at channel 0 on atapci0
    Feb 28 21:03:07 pfsense kernel: ata0: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: ata1: <ata channel="">at channel 1 on atapci0
    Feb 28 21:03:07 pfsense kernel: ata1: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: pci0: <serial bus,="" smbus="">at device 31.3 (no driver attached)
    Feb 28 21:03:07 pfsense kernel: acpi_button0: <power button="">on acpi0
    Feb 28 21:03:07 pfsense kernel: atrtc0: <at realtime="" clock="">port 0x70-0x71 irq 8 on acpi0
    Feb 28 21:03:07 pfsense kernel: uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
    Feb 28 21:03:07 pfsense kernel: uart0: [FILTER]
    Feb 28 21:03:07 pfsense kernel: uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
    Feb 28 21:03:07 pfsense kernel: uart1: [FILTER]
    Feb 28 21:03:07 pfsense kernel: pmtimer0 on isa0
    Feb 28 21:03:07 pfsense kernel: sc0: <system console="">at flags 0x100 on isa0
    Feb 28 21:03:07 pfsense kernel: sc0: VGA <16 virtual consoles, flags=0x300>
    Feb 28 21:03:07 pfsense kernel: vga0: <generic isa="" vga="">at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    Feb 28 21:03:07 pfsense kernel: atkbdc0: <keyboard controller="" (i8042)="">at port 0x60,0x64 on isa0
    Feb 28 21:03:07 pfsense kernel: atkbd0: <at keyboard="">irq 1 on atkbdc0
    Feb 28 21:03:07 pfsense kernel: kbd0 at atkbd0
    Feb 28 21:03:07 pfsense kernel: atkbd0: [GIANT-LOCKED]
    Feb 28 21:03:07 pfsense kernel: atkbd0: [ITHREAD]
    Feb 28 21:03:07 pfsense kernel: ppc0: parallel port not found.
    Feb 28 21:03:07 pfsense kernel: est0: <enhanced speedstep="" frequency="" control="">on cpu0
    Feb 28 21:03:07 pfsense kernel: p4tcc0: <cpu frequency="" thermal="" control="">on cpu0
    Feb 28 21:03:07 pfsense kernel: est1: <enhanced speedstep="" frequency="" control="">on cpu1
    Feb 28 21:03:07 pfsense kernel: p4tcc1: <cpu frequency="" thermal="" control="">on cpu1
    Feb 28 21:03:07 pfsense kernel: Timecounters tick every 1.000 msec
    Feb 28 21:03:07 pfsense kernel: IPsec: Initialized Security Association Processing.
    Feb 28 21:03:07 pfsense kernel: usbus0: 12Mbps Full Speed USB v1.0
    Feb 28 21:03:07 pfsense kernel: usbus1: 12Mbps Full Speed USB v1.0
    Feb 28 21:03:07 pfsense kernel: usbus2: 12Mbps Full Speed USB v1.0
    Feb 28 21:03:07 pfsense kernel: usbus3: 12Mbps Full Speed USB v1.0
    Feb 28 21:03:07 pfsense kernel: usbus4: 480Mbps High Speed USB v2.0
    Feb 28 21:03:07 pfsense kernel: ad0: 305245MB <wdc wd3200bevt-00zct0="" 11.01a11="">at ata0-master UDMA100 SATA
    Feb 28 21:03:07 pfsense kernel: ugen0.1: <intel>at usbus0
    Feb 28 21:03:07 pfsense kernel: uhub0: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usbus0
    Feb 28 21:03:07 pfsense kernel: ugen1.1: <intel>at usbus1
    Feb 28 21:03:07 pfsense kernel: uhub1: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usbus1
    Feb 28 21:03:07 pfsense kernel: ugen2.1: <intel>at usbus2
    Feb 28 21:03:07 pfsense kernel: uhub2: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usbus2
    Feb 28 21:03:07 pfsense kernel: ugen3.1: <intel>at usbus3
    Feb 28 21:03:07 pfsense kernel: uhub3: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usbus3
    Feb 28 21:03:07 pfsense kernel: ugen4.1: <intel>at usbus4
    Feb 28 21:03:07 pfsense kernel: uhub4: <intel 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr="">on usbus4
    Feb 28 21:03:07 pfsense kernel: SMP: AP CPU #1 Launched!
    Feb 28 21:03:07 pfsense kernel: Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0
    Feb 28 21:03:07 pfsense kernel: uhub0: 2 ports with 2 removable, self powered
    Feb 28 21:03:07 pfsense kernel: uhub1: 2 ports with 2 removable, self powered
    Feb 28 21:03:07 pfsense kernel: uhub2: 2 ports with 2 removable, self powered
    Feb 28 21:03:07 pfsense kernel: uhub3: 2 ports with 2 removable, self powered
    Feb 28 21:03:07 pfsense kernel: Root mount waiting for: usbus4
    Feb 28 21:03:07 pfsense kernel: Root mount waiting for: usbus4
    Feb 28 21:03:07 pfsense kernel: Root mount waiting for: usbus4
    Feb 28 21:03:07 pfsense kernel: uhub4: 8 ports with 8 removable, self powered
    Feb 28 21:03:07 pfsense kernel: Trying to mount root from ufs:/dev/ad0s1a
    Feb 28 21:03:07 pfsense kernel: ZFS NOTICE: Prefetch is disabled by default on i386 -- to enable,
    Feb 28 21:03:07 pfsense kernel: add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
    Feb 28 21:03:07 pfsense kernel: ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
    Feb 28 21:03:07 pfsense kernel: Consider tuning vm.kmem_size and vm.kmem_size_max
    Feb 28 21:03:07 pfsense kernel: in /boot/loader.conf.
    Feb 28 21:03:07 pfsense kernel: ZFS filesystem version 5
    Feb 28 21:03:07 pfsense kernel: ZFS storage pool version 28
    Feb 28 21:03:07 pfsense dhcpleases: Could not deliver signal HUP to process because its pidfile does not exist, No such file or directory.
    Feb 28 21:03:07 pfsense sshd[9828]: Server listening on :: port 22.
    Feb 28 21:03:07 pfsense sshd[9828]: Server listening on 0.0.0.0 port 22.
    Feb 28 21:03:07 pfsense sshlockout[10149]: sshlockout/webConfigurator v3.0 starting up
    Feb 28 21:03:09 pfsense check_reload_status: Linkup starting em2
    Feb 28 21:03:09 pfsense kernel: em2: link state changed to UP
    Feb 28 21:03:09 pfsense kernel: em2_vlan3: link state changed to UP
    Feb 28 21:03:09 pfsense check_reload_status: Linkup starting em2_vlan3
    Feb 28 21:03:09 pfsense kernel: em3: link state changed to UP
    Feb 28 21:03:09 pfsense kernel: em3_vlan6: link state changed to UP
    Feb 28 21:03:09 pfsense kernel: em3_vlan7: link state changed to UP
    Feb 28 21:03:09 pfsense check_reload_status: Linkup starting em3
    Feb 28 21:03:09 pfsense check_reload_status: Linkup starting em3_vlan6
    Feb 28 21:03:09 pfsense check_reload_status: Linkup starting em3_vlan7
    Feb 28 21:03:18 pfsense php: rc.bootup: The command '/sbin/dhclient -c /var/etc/dhclient_wan.conf em0 > /tmp/em0_output 2> /tmp/em0_error_output' returned exit code '1', the output was ''
    Feb 28 21:03:18 pfsense php: rc.bootup: Resyncing OpenVPN instances.
    Feb 28 21:03:18 pfsense kernel: tun2: changing name to 'ovpns2'
    Feb 28 21:03:18 pfsense dhcpleases: Could not deliver signal HUP to process because its pidfile does not exist, No such file or directory.
    Feb 28 21:03:19 pfsense kernel: pflog0: promiscuous mode enabled
    Feb 28 21:03:19 pfsense kernel: ovpns2: link state changed to UP
    Feb 28 21:03:19 pfsense check_reload_status: rc.newwanip starting ovpns2
    Feb 28 21:03:19 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:19 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:19 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:19 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:19 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:21 pfsense check_reload_status: Linkup starting em1
    Feb 28 21:03:21 pfsense kernel: em1: link state changed to UP
    Feb 28 21:03:22 pfsense php: rc.newwanip: rc.newwanip: Informational is starting ovpns2.
    Feb 28 21:03:22 pfsense php: rc.newwanip: rc.newwanip: on (IP address: 192.168.2.1) (interface: ) (real interface: ovpns2).
    Feb 28 21:03:22 pfsense check_reload_status: Reloading filter
    Feb 28 21:03:22 pfsense php: rc.newwanip: pfSense package system has detected an ip change  ->  192.168.2.1 ... Restarting packages.
    Feb 28 21:03:22 pfsense check_reload_status: Starting packages
    Feb 28 21:03:24 pfsense php: rc.bootup: The command '/usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf' returned exit code '255', the output was '2014-02-28 21:03:23: (network.c.385) can't bind to port: 0.0.0.0 443 Address already in use'
    Feb 28 21:03:25 pfsense php: rc.start_packages: Restarting/Starting all packages.
    Feb 28 21:03:26 pfsense php: rc.filter_configure_sync: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:26 pfsense php: rc.filter_configure_sync: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:26 pfsense php: rc.filter_configure_sync: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:26 pfsense php: rc.filter_configure_sync: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:26 pfsense php: rc.filter_configure_sync: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:26 pfsense dhcpleases: kqueue error: unkown
    Feb 28 21:03:26 pfsense check_reload_status: Updating all dyndns
    Feb 28 21:03:27 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:27 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:27 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:27 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:27 pfsense php: rc.bootup: Could not find IPv4 gateway for interface (wan).
    Feb 28 21:03:29 pfsense php: rc.dyndns.update: DynDNS (OMITTED) There was an error trying to determine the public IP for interface - wan(em0). Probably interface is not a WAN interface.
    Feb 28 21:03:30 pfsense php: rc.dyndns.update: DynDNS (OMITTED) There was an error trying to determine the public IP for interface - wan(em0). Probably interface is not a WAN interface.
    Feb 28 21:03:32 pfsense php: rc.bootup: Creating rrd update script
    Feb 28 21:03:32 pfsense php: rc.bootup: miniupnpd: Starting service on interface: opt2
    Feb 28 21:03:32 pfsense syslogd: exiting on signal 15
    Feb 28 21:03:32 pfsense syslogd: kernel boot file is /boot/kernel/kernel
    Feb 28 21:03:33 pfsense php: rc.start_packages: Restarting/Starting all packages.
    Feb 28 21:03:41 pfsense login: login on ttyv0 as root
    Feb 28 21:03:41 pfsense sshlockout[95332]: sshlockout/webConfigurator v3.0 starting up
    Feb 28 21:03:46 pfsense ntpd_intres[1503]: host name not found: 0.pfsense.pool.ntp.org
    Feb 28 21:03:50 pfsense sshd[1751]: Accepted keyboard-interactive/pam for root from 192.168.1.198 port 58398 ssh2</intel></intel></intel></intel></intel></intel></intel></intel></intel></intel></wdc></cpu></enhanced></cpu></enhanced></at></keyboard></generic></system></at></power></serial></ata></ata></intel></isa></pci-isa></intel(r)></intel(r)></acpi></acpi></intel></intel></intel></intel></intel></intel></intel></intel></intel></intel></intel(r)></acpi></acpi></intel(r)></acpi></acpi></multimedia,></vga-compatible></intel></vga-compatible></acpi></acpi></acpi></acpi></software></version></lahf></nx></sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,xtpr,pdcm,movbe></fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe>

    
    –-dmesg.boot---
    
    

    Copyright (c) 1992-2012 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
    FreeBSD is a registered trademark of The FreeBSD Foundation.
    FreeBSD 8.3-RELEASE-p11 #1: Wed Sep 11 18:47:57 EDT 2013
        root@snapshots-8_3-i386.builders.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8 i386
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: Genuine Intel(R) CPU N270  @ 1.60GHz (1596.01-MHz 686-class CPU)
      Origin = "GenuineIntel"  Id = 0x106c2  Family = 6  Model = 1c  Stepping = 2
      Features=0xbfe9fbff <fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe>Features2=0x40c39d <sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,xtpr,pdcm,movbe>AMD Features=0x100000 <nx>AMD Features2=0x1 <lahf>TSC: P-state invariant
    real memory  = 1073741824 (1024 MB)
    avail memory = 1019133952 (971 MB)
    ACPI APIC Table: <041309 APIC0852>
    FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
    FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads
    cpu0 (BSP): APIC ID:  0
    cpu1 (AP/HT): APIC ID:  1
    ioapic0: Changing APIC ID to 2
    ioapic0 <version 2.0="">irqs 0-23 on motherboard
    wlan: mac acl policy registered
    ipw_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    ipw_bss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    module_register_init: MOD_LOAD (ipw_bss_fw, 0xc07bb6f0, 0) error 1
    ipw_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    ipw_ibss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    module_register_init: MOD_LOAD (ipw_ibss_fw, 0xc07bb790, 0) error 1
    ipw_monitor: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    ipw_monitor: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    module_register_init: MOD_LOAD (ipw_monitor_fw, 0xc07bb830, 0) error 1
    kbd1 at kbdmux0
    cryptosoft0: <software crypto="">on motherboard
    padlock0: No ACE support.
    acpi0: <041309 RSDT0852> on motherboard
    acpi0: [ITHREAD]
    acpi0: Power Button (fixed)
    acpi0: reservation of 0, a0000 (3) failed
    acpi0: reservation of 100000, 3f700000 (3) failed
    Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
    cpu0: <acpi cpu="">on acpi0
    ACPI Warning: Incorrect checksum in table [OEMB] - 0x5F, should be 0x5C (20101013/tbutils-354)
    cpu1: <acpi cpu="">on acpi0
    pcib0: <acpi host-pci="" bridge="">port 0xcf8-0xcff on acpi0
    pci0: <acpi pci="" bus="">on pcib0
    vgapci0: <vga-compatible display="">port 0xbc80-0xbc87 mem 0xfe780000-0xfe7fffff,0xd0000000-0xdfffffff,0xfe740000-0xfe77ffff irq 16 at device 2.0 on pci0
    agp0: <intel 945gme="" svga="" controller="">on vgapci0
    agp0: aperture size is 256M, detected 7932k stolen memory
    vgapci1: <vga-compatible display="">mem 0xfe680000-0xfe6fffff at device 2.1 on pci0
    pci0: <multimedia, hda="">at device 27.0 (no driver attached)
    pcib1: <acpi pci-pci="" bridge="">irq 16 at device 28.0 on pci0
    pci1: <acpi pci="" bus="">on pcib1
    em0: <intel(r) 1000="" pro="" network="" connection="" 7.3.2="">port 0xcc80-0xcc9f mem 0xfe8e0000-0xfe8fffff,0xfe8dc000-0xfe8dffff irq 16 at device 0.0 on pci1
    em0: Using MSIX interrupts with 3 vectors
    em0: [ITHREAD]
    em0: [ITHREAD]
    em0: [ITHREAD]
    pcib2: <acpi pci-pci="" bridge="">irq 17 at device 28.1 on pci0
    pci2: <acpi pci="" bus="">on pcib2
    em1: <intel(r) 1000="" pro="" network="" connection="" 7.3.2="">port 0xdc80-0xdc9f mem 0xfe9e0000-0xfe9fffff,0xfe9dc000-0xfe9dffff irq 17 at device 0.0 on pci2
    em1: Using MSIX interrupts with 3 vectors
    em1: [ITHREAD]
    em1: [ITHREAD]
    em1: [ITHREAD]
    uhci0: <intel 82801g="" (ich7)="" usb="" controller="" usb-a="">port 0xbc00-0xbc1f irq 23 at device 29.0 on pci0
    uhci0: [ITHREAD]
    uhci0: LegSup = 0x2f00
    usbus0: <intel 82801g="" (ich7)="" usb="" controller="" usb-a="">on uhci0
    uhci1: <intel 82801g="" (ich7)="" usb="" controller="" usb-b="">port 0xb880-0xb89f irq 19 at device 29.1 on pci0
    uhci1: [ITHREAD]
    uhci1: LegSup = 0x2f00
    usbus1: <intel 82801g="" (ich7)="" usb="" controller="" usb-b="">on uhci1
    uhci2: <intel 82801g="" (ich7)="" usb="" controller="" usb-c="">port 0xb800-0xb81f irq 18 at device 29.2 on pci0
    uhci2: [ITHREAD]
    uhci2: LegSup = 0x2f00
    usbus2: <intel 82801g="" (ich7)="" usb="" controller="" usb-c="">on uhci2
    uhci3: <intel 82801g="" (ich7)="" usb="" controller="" usb-d="">port 0xb480-0xb49f irq 16 at device 29.3 on pci0
    uhci3: [ITHREAD]
    uhci3: LegSup = 0x2f00
    usbus3: <intel 82801g="" (ich7)="" usb="" controller="" usb-d="">on uhci3
    ehci0: <intel 82801gb="" r="" (ich7)="" usb="" 2.0="" controller="">mem 0xfe737c00-0xfe737fff irq 23 at device 29.7 on pci0
    ehci0: [ITHREAD]
    usbus4: EHCI version 1.0
    usbus4: <intel 82801gb="" r="" (ich7)="" usb="" 2.0="" controller="">on ehci0
    pcib3: <acpi pci-pci="" bridge="">at device 30.0 on pci0
    pci3: <acpi pci="" bus="">on pcib3
    em2: <intel(r) 1000="" pro="" legacy="" network="" connection="" 1.0.4="">port 0xec80-0xecbf mem 0xfebe0000-0xfebfffff,0xfeb80000-0xfebbffff irq 16 at device 0.0 on pci3
    em2: [FILTER]
    em3: <intel(r) 1000="" pro="" legacy="" network="" connection="" 1.0.4="">port 0xec00-0xec3f mem 0xfebc0000-0xfebdffff,0xfeb00000-0xfeb3ffff irq 17 at device 0.1 on pci3
    em3: [FILTER]
    isab0: <pci-isa bridge="">at device 31.0 on pci0
    isa0: <isa bus="">on isab0
    atapci0: <intel ich7m="" sata150="" controller="">port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.2 on pci0
    ata0: <ata channel="">at channel 0 on atapci0
    ata0: [ITHREAD]
    ata1: <ata channel="">at channel 1 on atapci0
    ata1: [ITHREAD]
    pci0: <serial bus,="" smbus="">at device 31.3 (no driver attached)
    acpi_button0: <power button="">on acpi0
    atrtc0: <at realtime="" clock="">port 0x70-0x71 irq 8 on acpi0
    uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
    uart0: [FILTER]
    uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
    uart1: [FILTER]
    pmtimer0 on isa0
    sc0: <system console="">at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x300>
    vga0: <generic isa="" vga="">at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    atkbdc0: <keyboard controller="" (i8042)="">at port 0x60,0x64 on isa0
    atkbd0: <at keyboard="">irq 1 on atkbdc0
    kbd0 at atkbd0
    atkbd0: [GIANT-LOCKED]
    atkbd0: [ITHREAD]
    ppc0: parallel port not found.
    est0: <enhanced speedstep="" frequency="" control="">on cpu0
    p4tcc0: <cpu frequency="" thermal="" control="">on cpu0
    est1: <enhanced speedstep="" frequency="" control="">on cpu1
    p4tcc1: <cpu frequency="" thermal="" control="">on cpu1
    Timecounters tick every 1.000 msec
    IPsec: Initialized Security Association Processing.
    usbus0: 12Mbps Full Speed USB v1.0
    usbus1: 12Mbps Full Speed USB v1.0
    usbus2: 12Mbps Full Speed USB v1.0
    usbus3: 12Mbps Full Speed USB v1.0
    usbus4: 480Mbps High Speed USB v2.0
    ad0: 305245MB <wdc wd3200bevt-00zct0="" 11.01a11="">at ata0-master UDMA100 SATA
    ugen0.1: <intel>at usbus0
    uhub0: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usbus0
    ugen1.1: <intel>at usbus1
    uhub1: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usbus1
    ugen2.1: <intel>at usbus2
    uhub2: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usbus2
    ugen3.1: <intel>at usbus3
    uhub3: <intel 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usbus3
    ugen4.1: <intel>at usbus4
    uhub4: <intel 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr="">on usbus4
    SMP: AP CPU #1 Launched!
    Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0
    uhub0: 2 ports with 2 removable, self powered
    uhub1: 2 ports with 2 removable, self powered
    uhub2: 2 ports with 2 removable, self powered
    uhub3: 2 ports with 2 removable, self powered
    Root mount waiting for: usbus4
    Root mount waiting for: usbus4
    Root mount waiting for: usbus4
    uhub4: 8 ports with 8 removable, self powered
    Trying to mount root from ufs:/dev/ad0s1a
    ZFS NOTICE: Prefetch is disabled by default on i386 -- to enable,
                add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
    ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
                Consider tuning vm.kmem_size and vm.kmem_size_max
                in /boot/loader.conf.
    ZFS filesystem version 5
    ZFS storage pool version 28</intel></intel></intel></intel></intel></intel></intel></intel></intel></intel></wdc></cpu></enhanced></cpu></enhanced></at></keyboard></generic></system></at></power></serial></ata></ata></intel></isa></pci-isa></intel(r)></intel(r)></acpi></acpi></intel></intel></intel></intel></intel></intel></intel></intel></intel></intel></intel(r)></acpi></acpi></intel(r)></acpi></acpi></multimedia,></vga-compatible></intel></vga-compatible></acpi></acpi></acpi></acpi></software></version></lahf></nx></sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,xtpr,pdcm,movbe></fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe>



  • Hey!
    Has this issue ever been resoled? I am experiencing the exact same issue.



  • I resolved the issue by re-installing pfsense from scratch and then re-configuring it all over.

    Not really a great answer but I was never able to get to the bottom of this. The best I could determine is something specific in my config was creating this behavior but I have no idea what.



  • You had something setup to bind to port 443 other than the webGUI (that's the "can't bind to port: … Address already in use" part). The WAN restart triggered a service restart, and the ordering was such that the other service "won" and grabbed the port before the web interface could.



  • Well CMB that makes sense though this problem was over a year old I do remember having openvpn set to use port 443 via TCP. Maybe that is what was hijacking the port. Lol now if I'd only figured that out a year ago.

    02user123 it may help to post the same logs I posted to see if your issue is similar or something else with the same symptoms.



  • @DBayPlaya2k3:

    Well CMB that makes sense though this problem was over a year old I do remember having openvpn set to use port 443 via TCP. Maybe that is what was hijacking the port. Lol now if I'd only figured that out a year ago.

    Better late than never I guess? :) I apparently missed this thread a year ago.

    Yeah if you're going to bind OpenVPN to 443, you'll want to change the port of the web interface to something else. While OpenVPN binding to a specific IP as it does rather than * will generally work fine, in the case of a DHCP interface that has no IP, it won't. A DHCP interface has an IP of 0.0.0.0 while it's attempting to get a lease. From the perspective of OpenVPN, then its IP to bind is 0.0.0.0:443. Well, that's the same as *:443, so it takes precedence. We'll get something into 2.3 probably to control which IPs the management services bind to, which could make that scenario workable (bind one to LAN, one to WAN).



  • Question - If you open a WAN port to 443, how much of a denial of service / annoyance attack on that open port would it take to make the web gui inaccessible to everyone, including people on the LAN?



  • Oh man! Thank you guys! I have OpenVPN set to port 443/tcp, so no wonder the web configurator cannot bind to that port if it's too slow.

    So yes, I will bind the web configurator to a different port then. Thanks!

    Although…OpenVPN should only bind to the WAN interface, while the web configurator should only bind to the LAN interface. Is there an option to configure that?



  • 3 years since the original post and as of 2.3.4 this issue persists.  I ran into this yesterday and had to put my own DHCP server on the WAN to get that interface to DHCP an IP so that webConfigurator would even start.

    I need webConfigurator to make changes to the WAN so it would actually connect to my ISP.  Major catch 22 here.  Why on earth would webConfigurator fail because it can't bind to the WAN IP of 0.0.0.0?.  That's absurd.  It should always bind to the (surely static) LAN address irrespective of what's going on with the WAN, up, down, misconfigured, or whatever.

    I keep wanting to contribute to the project financially and recommend pfSense to clients but every time I turn around, there's a new bug that's years old in my exceptionally basic home setup.

    For anyone else with this issue, you just need to be certain that your WAN gets an IP on startup, via whatever absurdity you have to pull in the shell to make it happen.


Log in to reply