APPX Software Library

Messages and Errors

Message "An unexpected error occurred, please enable logging and retry"

This is an error thrown in Pre-Display of the registration process if the field REGERR CHK LOG is set by the engine.

This REGERR CHK LOG flag is set in 8 different places in the Appx License Manager engine code as reg_err_chk_log:

  • It tries in 4 different places to open the USAGE file and if it fails it sets this flag.
  • Tries to lock some kind of sentinal record, a failure sets this flag.
  • If it fails to read a USAGE record in 2 cases it sets this flag.
  • If it fails to writed to the USAGE file it sets this flag.

The basic problem might be a corrupt USAGE file.

That message means exactly what it says - enable logging and retry (then, of course, check the log).

The license server always produces a minimal log file (the file name displays when the license server starts or you can appx -l=filename). To turn up the logging level, set APPX_LS_DBG=0xFFFFFFFF

The easiest fix would be to delete the USAGE file. If that doesn't work, we need the log.