how to debug captive portal failure to start?

Started by ikkeT, August 10, 2025, 11:19:14 PM

Previous topic - Next topic
Hi,

I've run captive portal for years. It has always just worked, even though it gets used very rarely.

Now recently within some months it has stopped working. I haven't touched to it's config in about a year, when I changed the template. And it worked since. Only big changes have been switch to kea and iunbounf. But now it won't start. No log in GUI. Where should I find more info of the failure?

When I join the guest wlan, I get the template for visitors. But there is no login button. And lobby lists captive portal as shut down. Pressing the start button just comes back to disabled after some seconds. OPNsense 25.7-amd64.


Any ideas?

Seems to be there is some permission issue with lighttpd:
```
<29>1 2025-08-18T09:50:50+03:00 OPNsense.mynet lighttpd 65919 - [meta sequenceId="1"] (/usr/obj/usr/ports/www/lighttpd/work/lighttpd-1.4.79/src/server.c.1974) server started (lighttpd/1.4.79)
<27>1 2025-08-18T09:50:50+03:00 OPNsense.mynet lighttpd 65919 - [meta sequenceId="2"] (/usr/obj/usr/ports/www/lighttpd/work/lighttpd-1.4.79/src/gw_backend.c.533) connect() /var/lib/php/tmp/php-fastcgi-cp.socket-0: Permission denied
<27>1 2025-08-18T09:50:50+03:00 OPNsense.mynet lighttpd 65919 - [meta sequenceId="3"] (/usr/obj/usr/ports/www/lighttpd/work/lighttpd-1.4.79/src/gw_backend.c.568) bind() unix:/var/lib/php/tmp/php-fastcgi-cp.socket-0: Permission denied
<27>1 2025-08-18T09:50:50+03:00 OPNsense.mynet lighttpd 65919 - [meta sequenceId="4"] (/usr/obj/usr/ports/www/lighttpd/work/lighttpd-1.4.79/src/gw_backend.c.1712) [ERROR]: spawning gw failed.
<27>1 2025-08-18T09:50:50+03:00 OPNsense.mynet lighttpd 65919 - [meta sequenceId="5"] (/usr/obj/usr/ports/www/lighttpd/work/lighttpd-1.4.79/src/server.c.1978) Configuration of plugins failed. Going down.
```

I never see such appear there:
```
root@OPNsense:~ # ls -la /var/lib/php/tmp/php-fastcgi*
srwxr-xr-x  1 root wheel 0 Aug 11 00:09 /var/lib/php/tmp/php-fastcgi.socket-0
srwxr-xr-x  1 root wheel 0 Aug  7 13:22 /var/lib/php/tmp/php-fastcgi.socket-1
srwxr-xr-x  1 root wheel 0 Aug 18 09:56 /var/lib/php/tmp/php-fastcgi.socket-2
srwxr-xr-x  1 root wheel 0 Aug 13 19:06 /var/lib/php/tmp/php-fastcgi.socket-3
srwxr-xr-x  1 root wheel 0 Aug 12 13:05 /var/lib/php/tmp/php-fastcgi.socket-4
srwxr-xr-x  1 root wheel 0 Aug 18 09:45 /var/lib/php/tmp/php-fastcgi.socket-5
```