Opened 3 years ago

Closed 3 years ago

#3502 closed bug (Fixed)

Deluge won't start when loging windows protected folder

Reported by: Doadin Owned by:
Priority: minor Milestone: 2.0.6
Component: Core Version: develop
Keywords: Cc:

Description (last modified by Calum)

Traceback (most recent call last):
  File "deluge-debug-script.py", line 33, in <module>
  File "deluge\ui\ui_entry.py", line 62, in start_ui
    options = parser.parse_known_ui_args(sys.argv, withhold=AMBIGUOUS_CMD_ARGS)
  File "deluge\argparserbase.py", line 265, in parse_known_ui_args
  File "deluge\argparserbase.py", line 293, in _handle_ui_options
  File "deluge\log.py", line 158, in setup_logger
  File "logging\__init__.py", line 1146, in __init__
  File "logging\__init__.py", line 1175, in _open
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Documents\\deluge.log'
[26784] Failed to execute script 'deluge-debug-script' due to unhandled exception!

Change History (5)

comment:1 by Doadin, 3 years ago

Summary: Deluge won't start windows protected folderDeluge won't start when loging windows protected folder

comment:2 by Calum, 3 years ago

Description: modified (diff)

comment:3 by Calum, 3 years ago

Milestone: needs verified2.0.6

How to replicate, what was the command argument you passed to deluge?

comment:4 by Doadin, 3 years ago

.\deluge-debug -L debug -l E:\Documents\deluge.log

Have the log dir be a protected windows folder and thats it. Windows blocks access to the dir and so it fails. It will fail trying to write to any protected folder. Should probably just pass on the error maybe and maybe log to stdout and log a message saying access was blocked or something.

comment:5 by Calum, 3 years ago

Resolution: Fixed
Status: newclosed

Fixed: [8b0c8392b]

Note: See TracTickets for help on using tickets.