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

FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/app'] #458

Open
statik1983 opened this issue Jan 13, 2024 · 2 comments

Comments

@statik1983
Copy link

Installed with Docker Compose pulling latest image. I think this started after last update. Keep getting this section of errors:

FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/app']
[2024-01-13 10:29:44 +0000] [1038] [INFO] Starting gunicorn 21.2.0
[2024-01-13 10:29:44 +0000] [1038] [INFO] Listening at: http://127.0.0.1:8080 (1038)
[2024-01-13 10:29:44 +0000] [1038] [INFO] Using worker: sync
[2024-01-13 10:29:44 +0000] [1038] [ERROR] Unhandled exception in main loop
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/gunicorn/arbiter.py", line 202, in run
self.manage_workers()
File "/usr/local/lib/python3.11/dist-packages/gunicorn/arbiter.py", line 571, in manage_workers
self.spawn_workers()
File "/usr/local/lib/python3.11/dist-packages/gunicorn/arbiter.py", line 642, in spawn_workers
self.spawn_worker()
File "/usr/local/lib/python3.11/dist-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker = self.worker_class(self.worker_age, self.pid, self.LISTENERS,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/gunicorn/workers/base.py", line 64, in init
self.tmp = WorkerTmp(cfg)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/gunicorn/workers/workertmp.py", line 23, in init
fd, name = tempfile.mkstemp(prefix="wgunicorn-", dir=fdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 473, in mkstemp
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 265, in _sanitize_params
dir = gettempdir()
^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 438, in gettempdir
return _os.fsdecode(_gettempdir())
^^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 431, in _gettempdir
tempdir = _get_default_tempdir()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 362, in _get_default_tempdir
raise FileNotFoundError(_errno.ENOENT,

@statik1983
Copy link
Author

I have attempted to recreate the container and pulling image, no luck.

@meeb
Copy link
Owner

meeb commented Jan 13, 2024

I don't think this is anything specifically to do with tubesync. That's a Python error caused by resource exhaustion. Common causes would be the drive the container is stored on is full, the permissions are wrong so /tmp isn't writeable, you've run out of inodes, that sort of thing. Check your server for disk usage and check logs for any errors.

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