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

Unable to start Tubesync (Directory not empty) #780

Closed
henrikmaurin opened this issue Feb 26, 2025 · 2 comments
Closed

Unable to start Tubesync (Directory not empty) #780

henrikmaurin opened this issue Feb 26, 2025 · 2 comments

Comments

@henrikmaurin
Copy link

Using the latest container, I am no longer able to start Tubesync
I do mount the cache folder. I have tried deleting all files in the cache folder

  • /full/path/on/server/Downloading/tubesync/.:/downloads/cache

Switching back to my older image works.

TubeSync | Traceback (most recent call last):
TubeSync | File "/app/manage.py", line 18, in
TubeSync | main()
TubeSync | File "/app/manage.py", line 14, in main
TubeSync | execute_from_command_line(sys.argv)
TubeSync | File "/usr/local/lib/python3.11/dist-packages/django/core/management/init.py", line 442, in execute_from_command_line
TubeSync | utility.execute()
TubeSync | File "/usr/local/lib/python3.11/dist-packages/django/core/management/init.py", line 382, in execute
TubeSync | settings.INSTALLED_APPS
TubeSync | File "/usr/local/lib/python3.11/dist-packages/django/conf/init.py", line 81, in getattr
TubeSync | self._setup(name)
TubeSync | File "/usr/local/lib/python3.11/dist-packages/django/conf/init.py", line 68, in _setup
TubeSync | self._wrapped = Settings(settings_module)
TubeSync | ^^^^^^^^^^^^^^^^^^^^^^^^^
TubeSync | File "/usr/local/lib/python3.11/dist-packages/django/conf/init.py", line 166, in init
TubeSync | mod = importlib.import_module(self.SETTINGS_MODULE)
TubeSync | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TubeSync | File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
TubeSync | return _bootstrap._gcd_import(name[level:], package, level)
TubeSync | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TubeSync | File "", line 1206, in _gcd_import
TubeSync | File "", line 1178, in _find_and_load
TubeSync | File "", line 1149, in _find_and_load_unlocked
TubeSync | File "", line 690, in _load_unlocked
TubeSync | File "", line 940, in exec_module
TubeSync | File "", line 241, in _call_with_frames_removed
TubeSync | File "/app/tubesync/settings.py", line 192, in
TubeSync | from .local_settings import *
TubeSync | File "/app/tubesync/local_settings.py", line 119, in
TubeSync | cache_dir.rename(YOUTUBE_DL_CACHEDIR / cache_dir.name)
TubeSync | File "/usr/lib/python3.11/pathlib.py", line 1176, in rename
TubeSync | os.rename(self, target)
TubeSync | OSError: [Errno 39] Directory not empty: '/config/cache/youtube/youtube-nsig' -> '/config/cache/yt-dlp/youtube-nsig'
TubeSync | s6-rc: warning: unable to start service tubesync-init: command exited

@github-project-automation github-project-automation bot moved this to Untriaged in Status Feb 26, 2025
@henrikmaurin henrikmaurin changed the title Unable to start container Unable to start Tubesync (Directory not empty) Feb 26, 2025
@tcely
Copy link
Contributor

tcely commented Feb 26, 2025

This is the failure to move your old youtube-* directories from the previous location in /config/cache/youtube to the new location /config/cache/yt-dlp for whatever reason.

You can move those directories yourself, or just remove them and yt-dlp will start caching again without the old files.

However you are mounting your /config volume, is preventing this from being done for you by the software.

@tcely tcely moved this from Untriaged to Done in Status Feb 26, 2025
@henrikmaurin
Copy link
Author

Ok, thanks for pointing me in the right direction.
I was looking in downloads/cache, not config/cache. The sneaky thing was that I found some suspicios looking files in download/cache.

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

No branches or pull requests

2 participants