Bug #2764
closedCaptive Portal Voucher Sync issue
100%
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.