Project

General

Profile

Actions

Bug #4130

closed

Status: Dashboard - index.php: XML error: no leases object found! (IPsec Widget)

Added by Kill Bill about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
IPsec
Target version:
Start date:
12/19/2014
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.2
Affected Architecture:
All

Description

Whenever I go to the index.php page, it produces the a system log entry like this:

Dec 19 10:17:29    php-fpm[43222]: /index.php: XML error: no leases object found!
Dec 19 10:16:42    php-fpm[74905]: /index.php: XML error: no leases object found!
Dec 19 10:10:07    php-fpm[43633]: /index.php: XML error: no leases object found!
Dec 19 10:04:16    php-fpm[36053]: /index.php: XML error: no leases object found!

Seeing this pretty much everywhere with 2.2-RC boxes, nano or full install.

Actions #1

Updated by Phillip Davis about 10 years ago

I do not see that on my 2.2 boxes.

Sounds like a problem in your /cf/conf/config.xml
That should start with:

<pfsense>

And the XML parser looks for that <pfsense> section.

What packages do you have installed?
There is also code that needs to parse the package XML inside the config.
Something is looking for a section <leases>

Actions #2

Updated by Kill Bill about 10 years ago

Phillip Davis wrote:

Sounds like a problem in your /cf/conf/config.xml
That should start with:

<pfsense>

That's definitely OK.

What packages do you have installed?

One of the boxes I'm seeing this on:

playback listpkg

Playback of file listpkg started.

Installed packages:
nut-2.7.2_6 pkg 2.0.2          Network UPS Tools
Cron-0.1.8                     The cron utility is used to manage commands on...
Shellcmd-0.5                   The shellcmd utility is used to manage command...
System Patches-1.0.2           A package to apply and maintain custom system ...
RRD Summary-1.1                RRD Summary Page, which will give a total amou...
pfBlocker-1.0.3                Introduce Enhanced Aliastable Feature to pfsen...
vnstat2-1.11_6,2               Vnstat is a console-based network traffic moni...
gwled-0.2.1                    Allows you to use LEDs for gateway status on s...
Notes-0.2.4                    Track things you want to note for this system.
Service Watchdog-1.6           Monitors for stopped services and restarts them.
blinkled-0.4.3                 Allows you to use LEDs for network activity on...
SSHDCond-1.0.1                 Allows to define SSH overrides for users,group...
OpenVPN Client Export Utility-1.2.15 Allows a pre-configured OpenVPN Windows ...
Actions #3

Updated by Jim Pingle about 10 years ago

And which dashboard widgets are enabled?

Actions #4

Updated by Kill Bill about 10 years ago

 <sequence>system_information-container:col1:show,services_status-container:col1:show,nut-container:col1:show,carp_status-container:col1:close,cpu_graphs-container:col1:close,gmirror_status-container:col1:close,installed_packages-container:col1:close,interfaces-container:col2:show,gateways-container:col2:show,load_balancer_status-container:col2:close,picture-container:col2:close,rss-container:col2:close,traffic_graphs-container:col2:close,smart_status-container:col2:none,thermal_sensors-container:col2:none,interface_statistics-container:col2:show,dyn_dns_status-container:col2:close,log-container:col3:show,pfBlocker-container:col3:show,captive_portal_status-container:col3:show,ipsec-container:col3:show,openvpn-container:col3:show,wake_on_lan-container:col3:show,ntp_status-container:col3:none</sequence>
Actions #5

Updated by Jim Pingle about 10 years ago

If you turn off the IPsec widget, does the error stop?
Do you have mobile IPsec enabled?

It's the only thing I can think of that might deal with a "leases" XML object since it calls mobile IPsec client IP assignments leases and it does pass XML back and forth between the IPsec daemon for its status.

Looks like it might be the culrpit:

source:etc/inc/ipsec.inc#L603

Actions #6

Updated by Kill Bill about 10 years ago

Yes, removing that widget works. (Was kinda planning on removing that for now anyway, seems in quite a messy state with 2.2, together with the whole strongswan thing, but that's for a different bug.)

Actions #7

Updated by Jim Pingle about 10 years ago

  • Subject changed from Status: Dashboard - index.php: XML error: no leases object found! to Status: Dashboard - index.php: XML error: no leases object found! (IPsec Widget)
  • Category changed from Web Interface to IPsec
  • Status changed from New to Confirmed
  • Affected Architecture All added
  • Affected Architecture deleted ()

Confirmed it here. Adding the IPsec widget it starts logging it in the main system log. It may only happen when there are no mobile clients connected. It also happens when the daemon is down/off.

source:etc/inc/ipsec.inc#L603 is definitely the problem.

Actions #8

Updated by Ermal Luçi almost 10 years ago

Normally an ipsec stroke leases creates an empty file with only main leases tag inside!

Actions #9

Updated by Ermal Luçi almost 10 years ago

  • Status changed from Confirmed to Feedback

Fixed.

Actions #10

Updated by Ermal Luçi almost 10 years ago

  • % Done changed from 0 to 100
Actions #11

Updated by Ermal Luçi almost 10 years ago

Actions #12

Updated by Chris Buechler almost 10 years ago

  • Status changed from Feedback to Resolved

fixed

Actions

Also available in: Atom PDF