Resin-updates.lock file exists

systemd
docker

#1

Hi all,

I switched the device from one project to another. But, it never finish the downloading. There are the errors:

17.10.17 12:52:12 (-0400) Downloading delta for application 'registry2.resin.io/geniedev/03ddc3e2011a371f3d1fd661b8bb90e3f00e5d10'
17.10.17 12:52:14 (-0400) Failed to download application 'registry2.resin.io/geniedev/03ddc3e2011a371f3d1fd661b8bb90e3f00e5d10' due to 'Got 500 when requesting image from delta server.'
17.10.17 12:52:45 (-0400) Failed to update application 'registry2.resin.io/genie/b7d8e2efeeaf517fd6bc22b223210a380bb70399' due to 'Updates are locked: EEXIST: file already exists, open '/mnt/root/tmp/resin-supervisor/476600/resin-updates.lock''
17.10.17 12:52:46 (-0400) Downloading delta for application 'registry2.resin.io/geniedev/03ddc3e2011a371f3d1fd661b8bb90e3f00e5d10

appreciated for any ideal or suggestions.


#2

Here is the link to the devices:

  1. https://dashboard.resin.io/apps/511991/devices/670691/summary
  2. https://dashboard.resin.io/apps/511991/devices/810623/summary

#3

Hi, deltas had an issue briefly, it is now resolved so the problem you were seeing should be gone. If you are still getting that error, don’t hesitate to ping us


#5

Hi @flesler

Thank you for the help.
Another device has a issue after I move it from one application to another. Looks like, two applications are running at same time. The device is on the latest commit, however it keeps giving following error. Here is the link of this device:
https://dashboard.resin.io/apps/511991/devices/810623/summary

17.10.17 15:15:56 (-0400) Failed to update application 'registry2.resin.io/genie/b7d8e2efeeaf517fd6bc22b223210a380bb70399' due to 'Updates are locked: EEXIST: file already exists, open '/mnt/root/tmp/resin-supervisor/476600/resin-updates.lock''
17.10.17 15:16:29 (-0400) Failed to update application 'registry2.resin.io/genie/b7d8e2efeeaf517fd6bc22b223210a380bb70399' due to 'Updates are locked: EEXIST: file already exists, open '/mnt/root/tmp/resin-supervisor/476600/resin-updates.lock''
17.10.17 14:57:13 (-0400) [18:57:13] Process-3    DEBUG      genie.apps.server_log                          Syncing 3 logs

#6

Hi @flesler

We had this issue before. And, get it fixed by resin engineer. However, never get chance to understand how to fix it. Here is the link to the previous topic.


#7

@weiqing121 it seems you might have triggered the following issue:

https://github.com/resin-io/resin-supervisor/issues/348

A workaround to avoid this issue is to set the lock override (RESIN_SUPERVISOR_OVERRIDE_LOCK = 1, i.e. setting the lock override in the device’s Actions page) before moving to the new app, which will cause the app to be properly stopped while the new one is being started.

If this is your case, one way you might be able to fix it is to move the device back to the previous app, enable the lock override explained above, then move back to the new app.