Page 1 of 1

Update is temporary locked

Posted: Wed Nov 08, 2023 11:05 am
by CasN
I am stuck when function fileStructureJson() is called, i then receive the error "Update is temporary locked".
Can you explain why this is occurring and more importantly how i can fix this?

By the way, the same message can be triggered within 5 different places hence I added the function name between brackets in the message to be precidse wheer the message is being triggerd.

Re: Update is temporary locked

Posted: Thu Nov 09, 2023 5:23 pm
by CasN
The lock is gone but not clear what caused the lock. It is now updating again.

Re: Update is temporary locked

Posted: Sat Nov 11, 2023 2:21 pm
by wbartels
CasN wrote: Wed Nov 08, 2023 11:05 am I am stuck when function fileStructureJson() is called, i then receive the error "Update is temporary locked".
Can you explain why this is occurring and more importantly how i can fix this?
During the update process other update processes will be locked to prevent loosing MySQL data.
The unlock will be done automatically on the end of the update or after a short time by an unexpected exit.
The real locking is done by the PHP build-in flock() function.

The update.php.lock file is placed in the netjukebox temp directory.
And can be manually deleted, I only had to do this a few times during implementing this feature.
If there is a ....php.lock file present doesn't always mean the process is locked!