I use a local licence server and it fails approximately every two weeks with errors like"Unable to verify process lock!" in the log file

Modified on Fri, 17 Jan at 1:49 PM

The CCDC local licence server stores a lock file in /tmp and some operating systems such as CentOS and RedHat may have standard /tmp cleaning policies that will remove this lock file after a set period of time, typically 10-14 days.

This page contains details on temp files and how they are cleaned up by default with RedHat:

https://developers.redhat.com/blog/2016/09/20/managing-temporary-files-with-systemd-tmpfiles-on-rhel7/

The licence server we use will create a lock file in /tmp of the form lexlock-* - it's this we need to ensure is not removed.

So based on the article linked to above, the answer is to

cp /usr/lib/tmpfiles.d/tmp.conf /etc/tmpfiles.d/tmp.conf

and append the following lines:

# Do not delete LexFloatServer files
x /tmp/lexlock-*

Note that it's mandatory to copy the tmp.conf file using the same filename.

Other approaches would be to touch the lock file regularly, so it is never old enough to be cleaned up. Or the licence server could be restarted regularly so the lock is never old enough to be removed.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article