In okapi worker, in doExport function, in the catch exception bloc, undefined variable $file is used. Because of that, the real exception is nod logged into the error log.