Active voucher restore problem



  • hi all,
    i am running CP with pfsense 2.4.4-3 i have proble due crash some reason(hardware Failure) when i restore voucher with auto backup utility(built in) voucher timing starts from 1.. for example if voucher of 1440 minutes and it already consumed 500 minutes but after restore it start from minute 1...
    plz guide in this regard..


  • Rebel Alliance

    @ishtiaqaj hi,

    This is kind if anoying....sadly, there is no solution to your issue

    The only good news is that this kind of issue should be fixed in 2.5.0 (support for reboots has been strongly improved on the captive portal). You wont have this issue anymore when it will be released



  • @ishtiaqaj said in Active voucher restore problem:

    plz guide in this regard..

    See it as a feature.
    Normally, you'll have to compensate the down time introduced during the hardware failure.
    This is done by re-initing the used time of the activated vouchers.

    Btw : you could also consider backing up the files used to keep track of activated vouchers :
    You will find files like these
    b91158c5-ec7c-465c-8cba-2af386e9c055-image.png

    in the /var/db/ folder.

    ( this is some what undocumented - and I never tried it out myself - as I'm quiet happy about the feature mentioned above as it is )



  • @Gertjan
    is there any solution for this "to restore active voucher with timestamp"
    plz somebody help i have almost 1500 active users..

    Regards,



  • As said : back them up.
    Or do something about that hardware failure.



  • @Gertjan i have backup on regular basis but problem is whenever has to restore due crash or changing server...



  • @ishtiaqaj said in Active voucher restore problem:

    has to restore due crash or changing server...

    Try to solve that issue.
    I've my pfSense working for months or ùore, and if I need to restart it, it's for my own reasons.

    I do understand you question. yet you are the first asking for a voucher_active_1.db and voucher_used_1.db backup.
    And you're right, normally, after a config.xml import the entire pfSense should be back to operational, as before a hardware crash. Except for caches and that kind of stuff.
    And these two files .....


Log in to reply