piejanssens / premiumizer

Download manager for premiumize.me cloud downloads
MIT License
172 stars 45 forks source link

Docker crashes after enabling blackhole. #321

Closed 10bn closed 2 years ago

10bn commented 2 years ago
10-20 08:58:57: INFO : Starting server on 0.0.0.0:5000
10-20 08:59:54: INFO : Settings saved, reloading configuration
10-20 08:59:54: INFO : Watchdir is enabled at:
[2021-10-20 08:59:54,244] ERROR in app: Exception on /settings [POST]

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.7/site-packages/flask_login/utils.py", line 269, in decorated_view
return func(*args, **kwargs)
File "/app/premiumizer.py", line 2345, in settings
cfg.check_config()
File "/app/premiumizer.py", line 419, in check_config
os.makedirs(self.watchdir_location)
File "/usr/local/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''
neox387 commented 2 years ago

watchdir_location is empty? small bug then

10bn commented 2 years ago

watchdir_location is empty? small bug then

it's empty yes.

neox387 commented 2 years ago

If you enter a location save and then enable black hole it should work

10bn commented 2 years ago

These folders are shared via docker. image

So the config has to look like this right?

[upload] watchdir_enabled = 1 watchdir_location = /blackhole watchdir_walk_enabled = 0 watchdir_walk_interval = 60

10bn commented 2 years ago

Could you please also specify what's the difference default download location in categories and downloader general:

image image

neox387 commented 2 years ago

Yes should be good inside the blackhole folder it makes same folders like the categories.

Download location in categories is the same as in Downloader tab but with the category name subfolder. this is created automatically if you enter a new category name. but you can change it there.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

Feel free to reopen if the issue persists on the latest version.