MATLAB: Do I receive an error 5 when trying to return a borrowed product early

borrowearlyreturn

When I try to return a borrowed product, why does it gives me an error 5 in the borrow interface and fail to return the borrowed key?

Best Answer

This can happen if the license file has been changed on the license server. Changing the license file on the server wipes out all the data about borrowed keys. So when it is upgraded from 17a to 17b all borrowed sessions are returned. However, all the clients still have local borrow data that works, but the keys won't return since the server isn't aware of them.
To successfully return the borrow key, you'll need to delete either the flexlmborrow file (Unix) or the registry key (Windows):
Windows
------
registry key: HKEY_CURRENT_USER\Software\FLEXlm License Manager\Borrow
Unix
-------
file: ~/.flexlmborrow
Once the borrow key is gone, you will be able to borrow again.