IPsec widget breaks dashboard loading
CPU usage does not finish loading, interface statistics, NTP neither.
Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at Object.ipsec_callback [as callback] (gw.example.com/:1348) at Object.success (gw.example.com/:3573) at i (jquery-1.12.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.12.0.min.js:2) at y (jquery-1.12.0.min.js:4) at XMLHttpRequest.c (jquery-1.12.0.min.js:4)
2.4 snapshot: Fri Aug 18 00:32:41 CDT 2017
#2 Updated by Kill Bill over 3 years ago
There's just one IPsec tunnel (and mobile IPsec server). I don't think the OS/browser matters. Same thing with Chrome v60, FF v55, both on Windows and Linux.
Gets stuck at "Retrieving overview data". When I switch to Tunnel/Mobile tab, it gets stuck there as well (Retrieving tunnel/mobile data). Actually the tunnel/mobile tabs are much worse, getting "TypeError: d.getSeconds is not a function" every second in addition. I tried with the tunnel disconnected and connected, makes no difference.
- System Information
- Services Status
- Thermal Sensors
- Interfaces Statistics
- NTP Status
- DynDNS Status
- Traffic Graphs
- Firewall Logs
#3 Updated by Steve Beaver over 3 years ago
Thanks for the information. We have still not been able to reproduce but will keep trying.
The IPSec tab you select should't matter any more since the AJAX call returns a JSON formatted list of the overview, tunnels, and mobile data on every call no matter which tab is selected. I have been monitoring using Firefox "Network" tab and verified that on my systems this is working as expected. The POST and the response look good.
Thanks again for the help.
#4 Updated by Kill Bill over 3 years ago
OK, it's caused by the mobile tunnel. If you put
$jsondata .= "\"}";
line, then the issue is gone. The else statement should go to /dev/null, I'd say. Like this, perhaps? https://github.com/pfsense/pfsense/pull/3803
d.getSeconds is not a function problem with tunnels/mobile tabs persists even after the above fix.