optfeko: 'unable to lock the *.fek file' error message
Hello,
I am trying to run a FEKO optimization but get this error message after the first simulation
'Error 16149: Unable to lock the *.fek file. File lock attempt timed out.'
and this in the console
'Locking error code: 17
WARNING 21028: Setting a lock on the *.fek file failed'
I've tried to find documentation on this error message but have had no luck.
Does anyone know how to fix this error?
Answers
-
Hello bcoles,
You could not find anything about this error because it is almost never triggered. Error code 17 means 'write to compressed stream error', but that does not really indicate the problem. Could you please verify the following:
- You have write access to the folder where the model is located
- The disk has space (you are not running out of disk space)
- Could you please close all instances of FEKO components (POSTFEKO etc.) and look for a .lock folder in the same directory where the model is located and delete it. It could be that the directory was created with other permissions and that is why it can't write to that folder, but if you delete it, we know it is fine again. Also let me know if the folder was not present (note, it is a hidden folder, so you may have to make changes to be able to see the hidden folder).
Is this happening on Windows or Linux?
If the problem persists after following the steps above and trying again, follow the step to remove the .lock folder again and then run set the following environment variable before running it again. And then post the output so that we can try to trace the origin of the problem.
FEKO_BINFILES_DEBUG=1
(I assume that you know how to set an environment variable for you platform - Windows or Linux.)
0