On 28 Aug 2017 8:10 PM, "Akala Kehinde" <[email protected]
<mailto:[email protected]>> wrote:
HI guys,
Quick one.
I just suddenly get this error when trying to connect on Reg
VLAN. User gets a 503 error message when trying to redirect
via captive portal:
Seems some code was fetched from PF gitub and in the process
lead to the error.
See some logs below:
*httpd.dispatcher|not started*
*/var/log/messages*
Aug 28 18:10:07 egelsbach.testmawoh.de
<http://egelsbach.testmawoh.de> haproxy[3314]:
172.16.98.10:55086 <http://172.16.98.10:55086>
[28/Aug/2017:18:10:04.282] portal-http-172.16.98.1
proxy/<NOSRV> 10/0/-1/-1/3015 503 213 - - SC-- 0/0/0/0/3 0/0
"POST / HTTP/1.1"
*/packetfence.log
*
Aug 28 19:10:02 egelsbach packetfence: INFO pfcmd.pl
<http://pfcmd.pl>(9434): Daemon httpd.dispatcher took 0.026
seconds to start. (pf::services::manager::launchService)
Aug 28 19:10:02 egelsbach pfhttpd: panic: json: cannot
unmarshal number into Go value of type string
Aug 28 19:10:02 egelsbach pfhttpd: goroutine 1 [running]:
Aug 28 19:10:02 egelsbach pfhttpd: panic(0xa7cb80, 0xc4201ad2c0)
Aug 28 19:10:02 egelsbach pfhttpd:
/usr/local/go/src/runtime/panic.go:500 +0x1a1
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/pfconfigdriver.decodeJsonInterface(0xe9aae0
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver.decodeJsonInterface%280xe9aae0>,
0xc42000e3d8, 0xc420143900, 0x4d2, 0x500, 0xa35820, 0xc420141e50)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/pfconfigdriver/fetch.go:173
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver/fetch.go:173>
+0x182
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/pfconfigdriver.decodeInterface(0xe9aae0
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver.decodeInterface%280xe9aae0>,
0xc42000e3d8, 0xb45bba, 0x4, 0xc420143900, 0x4d2, 0x500,
0xa35820, 0xc420141e50)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/pfconfigdriver/fetch.go:159
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver/fetch.go:159>
+0xc3
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/pfconfigdriver.FetchDecodeSocket(0xe9aae0
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver.FetchDecodeSocket%280xe9aae0>,
0xc42000e3d8, 0x7fbee85fb200, 0xeef700, 0x0, 0xe9aae0)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/pfconfigdriver/fetch.go:252
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver/fetch.go:252>
+0x2b7
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/pfconfigdriver.FetchDecodeSocketCache(0xe9aae0
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver.FetchDecodeSocketCache%280xe9aae0>,
0xc42000e3d8, 0x7fbee85fb200, 0xeef700, 0xeef701, 0x16,
0xc4200d9700)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/pfconfigdriver/fetch.go:228
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver/fetch.go:228>
+0x21c
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/pfconfigdriver.(*Pool).refreshStruct(0xeee360
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver.%28*Pool%29.refreshStruct%280xeee360>,
0xe9aae0, 0xc42000e3d8, 0xa90c40, 0xeef700)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/pfconfigdriver/pool.go:95
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver/pool.go:95>
+0x319
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/pfconfigdriver.(*Pool).AddStruct(0xeee360
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver.%28*Pool%29.AddStruct%280xeee360>,
0xe9aae0, 0xc42000e3d8, 0xa90c40, 0xeef700)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/pfconfigdriver/pool.go:74
<http://github.com/inverse-inc/packetfence/go/pfconfigdriver/pool.go:74>
+0xdc
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/caddy/httpdispatcher.setup(0xc42007ca20
<http://github.com/inverse-inc/packetfence/go/caddy/httpdispatcher.setup%280xc42007ca20>,
0x4, 0xb4e78e)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/caddy/httpdispatcher/httpdispatcher.go:25
<http://github.com/inverse-inc/packetfence/go/caddy/httpdispatcher/httpdispatcher.go:25>
+0xbe
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/caddy/caddy.executeDirectives(0xc4201b65b0
<http://github.com/inverse-inc/packetfence/go/caddy/caddy.executeDirectives%280xc4201b65b0>,
0x7ffe7dda0f3e, 0x35, 0xee5fa0, 0x34, 0x34, 0xc420076b00,
0x4, 0x4, 0x0, ...)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/caddy/caddy/caddy.go:597
<http://github.com/inverse-inc/packetfence/go/caddy/caddy/caddy.go:597>
+0x597
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/caddy/caddy.ValidateAndExecuteDirectives(0xe99fa0
<http://github.com/inverse-inc/packetfence/go/caddy/caddy.ValidateAndExecuteDirectives%280xe99fa0>,
0xc4201b87c0, 0xc4201b65b0, 0x4b5200, 0xb45b6a, 0x4)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/caddy/caddy/caddy.go:547
<http://github.com/inverse-inc/packetfence/go/caddy/caddy/caddy.go:547>
+0x3b5
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/caddy/caddy.startWithListenerFds(0xe99fa0
<http://github.com/inverse-inc/packetfence/go/caddy/caddy.startWithListenerFds%280xe99fa0>,
0xc4201b87c0, 0xc4201b65b0, 0x0, 0x0, 0x0)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/caddy/caddy/caddy.go:451
<http://github.com/inverse-inc/packetfence/go/caddy/caddy/caddy.go:451>
+0x6b
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/caddy/caddy.Start(0xe99fa0
<http://github.com/inverse-inc/packetfence/go/caddy/caddy.Start%280xe99fa0>,
0xc4201b87c0, 0x0, 0x0, 0x0)
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/caddy/caddy/caddy.go:443
<http://github.com/inverse-inc/packetfence/go/caddy/caddy/caddy.go:443>
+0x13d
Aug 28 19:10:02 egelsbach pfhttpd:
github.com/inverse-inc/packetfence/go/caddy/caddy/caddy/caddymain.Run()
<http://github.com/inverse-inc/packetfence/go/caddy/caddy/caddy/caddymain.Run%28%29>
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/caddy/caddy/caddy/caddymain/run.go:131
<http://github.com/inverse-inc/packetfence/go/caddy/caddy/caddy/caddymain/run.go:131>
+0x2c4
Aug 28 19:10:02 egelsbach pfhttpd: main.main()
Aug 28 19:10:02 egelsbach pfhttpd:
/tmp/tmp.RFVjTHbjr1/src/github.com/inverse-inc/packetfence/go/caddy/caddy/caddy/main.go:13
<http://github.com/inverse-inc/packetfence/go/caddy/caddy/caddy/main.go:13>
+0x1b
Aug 28 19:10:02 egelsbach packetfence: ERROR pfcmd.pl
<http://pfcmd.pl>(9434):
pf::services::manager::httpd_dispatcher=HASH(0xa91c948)->name
died or has failed to start
(pf::services::manager::postStartCleanup)
WIll appreciate a quick input as I have to present a demo
tomorrow.
Thank you.
Regards,
Kehinde
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
<https://lists.sourceforge.net/lists/listinfo/packetfence-users>