tubesync icon indicating copy to clipboard operation
tubesync copied to clipboard

Unable to acquire lock sync.tasks.save_all_media_for_source

Open davidancalagon opened this issue 4 months ago • 1 comments

When trying to acquire new videos from a source, TubeSync goes through the process of detecting the new media, downloading it, renaming it, and then hits the following error:

WARNING:huey:Worker-1:Task 1966dddf-ecee-448d-b1b1-69135ec8f919 not run, unable to acquire lock sync.tasks.save_all_media_for_source.

This has only recently started happening. I've checked download directory permissions, space, everything I can think of, and everything checks out.

davidancalagon avatar Aug 13 '25 20:08 davidancalagon

You probably have multiple tasks for different sources. That lock is to ensure that only one such task runs at a time.

You don't need to do anything and it should work itself out. https://github.com/meeb/tubesync/blob/717d4b1eeddcc28bb75c5a25c0b18160121e20dd/tubesync/sync/tasks.py#L1160-L1170

If you really want to clear that lock, then resetting tasks will do that for you.

tcely avatar Aug 13 '25 21:08 tcely