This is not really a support request anymore since I figured it out myself but I think this might be good knowledge if anyone else is ignorant/stupid enough to do what I did.
Describe the problem you’re having:
Update daemon would not start. An empty lockfile was created but then the script died with “error: Can’t create lockfile ($lock_filename). Maybe another update process is already running.” Same issue with both update.php and update_daemon2.php.
If possible include steps to reproduce the problem:
Install tt-rss on NFS share…
tt-rss version (including git commit id):
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Please provide any additional information below:
I fixed this by putting the lock directory on local storage. It appears that flock in include/functions.php/make_lockfile fails if the lock files are on NFS storage. Not being an NFS expert, the best solution for me is to put the lock directory elsewhere.