metube icon indicating copy to clipboard operation
metube copied to clipboard

Docker container No such device: '/downloads/.metube/queue'

Open hejl233 opened this issue 2 years ago • 2 comments

I can't start when I use a network drive as a file

_gdbm.error: [Errno 19] No such device: '/downloads/.metube/queue'

hejl233 avatar Aug 29 '22 13:08 hejl233

your source and destination files are reversed while mounting

PikuZheng avatar Aug 29 '22 14:08 PikuZheng

@hejl233 has your problem been solved? If not, please detail exactly what you're trying to do (what sort of network drive is the most important info I guess)

alexta69 avatar Sep 01 '22 12:09 alexta69

Closing; if the problem persists, please reopen (and supply more details).

alexta69 avatar Oct 05 '22 10:10 alexta69

Hello, I'm receiving this exact error. I see that the docker container has created the /downloads/.metube/queue file (I can see it, and if I delete the file, metube recreates it), but the container keeps erroring with that message and restarting. Here's the compose:

  metube:
    image: alexta69/metube
    container_name: metube
    restart: unless-stopped
    ports:
      - "8110:8081"
    volumes:
      - /mnt/storage/downloads/youtube:/downloads

/mnt/storage is mergerfs, if that matters.

And here's the exact error:

Setting umask to 022
Creating download directory /downloads and state directory /downloads/.metube
Changing ownership of download and state directories to 1000:1000
Running MeTube as user 1000:1000
Traceback (most recent call last):
  File "app/main.py", line 75, in <module>
    dqueue = DownloadQueue(config, Notifier())
  File "/app/app/ytdl.py", line 195, in __init__
    self.queue = PersistentQueue(self.config.STATE_DIR + '/queue')
  File "/app/app/ytdl.py", line 150, in __init__
    with shelve.open(path, 'c'):
  File "/usr/local/lib/python3.8/shelve.py", line 243, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/usr/local/lib/python3.8/shelve.py", line 227, in __init__
    Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
  File "/usr/local/lib/python3.8/dbm/__init__.py", line 95, in open
    return mod.open(file, flag, mode)
_gdbm.error: [Errno 19] No such device: '/downloads/.metube/queue'

lostage avatar Nov 23 '22 04:11 lostage

/mnt/storage is mergerfs, if that matters.

yes. looks you need to add mergerfs package in the container

PikuZheng avatar Nov 23 '22 08:11 PikuZheng

I'm unsure how to do that, so I just pointed it at one of the disks in the array which works well enough for me. Thank you!

lostage avatar Nov 23 '22 15:11 lostage