Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue doesn't restore when container restarted #556

Open
mtrolley opened this issue Dec 26, 2024 · 1 comment
Open

Queue doesn't restore when container restarted #556

mtrolley opened this issue Dec 26, 2024 · 1 comment

Comments

@mtrolley
Copy link

I am a new user and think I have everything set up properly, but if I have queued items and restart the container they do not get restored. Here's the log when the container restarts:

Setting umask to 022
Creating download directory (/downloads), state directory (/config), and temp dir (/tempdownloads)
Changing ownership of download and state directories to 1000:1000
Running MeTube as user 1000:1000
INFO:main:Listening on 0.0.0.0:8081
DEBUG:asyncio:Using selector: EpollSelector
INFO:ytdl:waiting for item to download
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-3' coro=<DownloadQueue.__import_queue() done, defined at /app/app/ytdl.py:213> exception=AttributeError("'DownloadInfo' object has no attribute 'playlist_strict_mode'")>
Traceback (most recent call last):
  File "/app/app/ytdl.py", line 215, in __import_queue
    await self.add(v.url, v.quality, v.format, v.folder, v.custom_name_prefix, v.playlist_strict_mode, v.playlist_item_limit)
                                                                               ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DownloadInfo' object has no attribute 'playlist_strict_mode'

The host directory mounted to /config contains three files: completed, pending, and queue. The queue file modification time is being updated when I add a new URL, so it looks like it's being tracked properly, but not being restored properly.

@PikuZheng
Copy link
Contributor

same issue, but the reason is that the queue file formats of the new and old versions are different.
so, I gave up on the queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants