Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Webconfigurator fails start when bound to interface with DHCPv6
« previous
next »
Print
Pages: [
1
]
Author
Topic: Webconfigurator fails start when bound to interface with DHCPv6 (Read 1116 times)
uglymotha
Newbie
Posts: 10
Karma: 4
Webconfigurator fails start when bound to interface with DHCPv6
«
on:
February 04, 2024, 11:34:31 am »
When binding the webconfigurator to an interface using DHCPv6 it fails to start on boot.
This is because the rc.restart_webgui script runs before the interface is fully configured.
changed the startup of the configurator in /usr/local/etc/inc/plugins.in.d/webgui.inc:
mwexec('/sbin/ifconfig vtnet0 >/tmp/vtnet0; /usr/local/bin/flock -ne /var/run/lighty-webConfigurator.pid /usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf >>/tmp/vtnet0 2>&1; /bin/sleep 5; /sbin/ifconfig v
tnet0 >> /tmp/vtnet0; /usr/local/bin/flock -ne /var/run/lighty-webConfigurator.pid /usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf >>/tmp/vtnet0 2>&1'
And found:
vtnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: LAN (lan)
options=800a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,LINKSTATE>
ether 52:54:01:23:4a:58
inet 10.0.29.50 netmask 0xffffff00 broadcast 10.0.29.255
inet6 fe80::5054:1ff:fe23:4a58%vtnet0 prefixlen 64 tentative scopeid 0x1
media: Ethernet autoselect (10Gbase-T <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
2024-02-04 11:32:23: (/usr/obj/usr/ports/www/lighttpd/work/lighttpd-1.4.73/src/network.c.588) bind() [fe80::5054:1ff:fe23:4a58]:443: Can't assign requested address
vtnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: LAN (lan)
options=800a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,LINKSTATE>
ether 52:54:01:23:4a:58
inet 10.0.29.50 netmask 0xffffff00 broadcast 10.0.29.255
inet6 fe80::5054:1ff:fe23:4a58%vtnet0 prefixlen 64 scopeid 0x1
inet6 2a02:a452:42e8:f00f:5054:1ff:fe23:4a58 prefixlen 64 autoconf
media: Ethernet autoselect (10Gbase-T <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
Current workaround is to have the webgui startup sleep for a few seconds
Logged
Gipetto
Newbie
Posts: 1
Karma: 1
Re: Webconfigurator fails start when bound to interface with DHCPv6
«
Reply #1 on:
February 19, 2024, 07:49:49 pm »
Just wanted to +1 this. After upgrading my web ui fails to start up at boot time.
<11>1 2024-02-17T10:37:23-08:00 OPNsense.wookiee.internal opnsense 276 - [meta sequenceId="228"] /usr/local/etc/rc.bootup: The command '/usr/local/bin/flock -ne /var/run/lighty-webConfigurator.pid /usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf' returned exit code '255', the output was '2024-02-17 10:37:23: (/usr/obj/usr/ports/www/lighttpd/work/lighttpd-1.4.73/src/network.c.588) bind() [fe80::e63a:6eff:fe5c:ad42]:443: Can't assign requested address'
It can be manually started by running:
sudo /usr/local/etc/rc.restart_webgui
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Webconfigurator fails start when bound to interface with DHCPv6