Update is temporary locked

Linux related discussion about netjukebox
Post Reply
CasN
User
Posts: 13
Joined: Thu Nov 02, 2023 11:36 am
Location: Netherlands

Update is temporary locked

Post 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.
CasN
User
Posts: 13
Joined: Thu Nov 02, 2023 11:36 am
Location: Netherlands

Re: Update is temporary locked

Post by CasN »

The lock is gone but not clear what caused the lock. It is now updating again.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update is temporary locked

Post 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!
Post Reply