Project

General

Profile

Actions

Bug #2764

closed

Captive Portal Voucher Sync issue

Added by Fabian Lorenz about 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Category:
Captive Portal
Target version:
Start date:
01/18/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:

Description

I have found an issue with voucher sync. If you create a new voucher roll on the master pfSense and this new voucher is used on the secondary pfSense the captive portal hangs completly on the secondary node.
Navigating to "Status -> Captive Portal -> Active Vouchers" on the secondary pfSense results in the following php Error Message of the WebConfigurator:
Warning: file(/var/db/voucher_active_(roll id of the created voucher roll).db): failed to open stream: No such file or directory in /usr/local/www/status_captiveportal_vouchers.php on line 61 Warning: Invalid argument supplied for foreach() in /usr/local/www/status_captiveportal_vouchers.php on line 62

As a result the complete WebConfigurator hangs and a complete reboot of the box is required.

If you syncronize the vouchers manually by clicking "Save" on the Captive Portal configuration page everything is working fine.
Working with voucher rolls that were already (manually) synced is no problem.

Actions

Also available in: Atom PDF