#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 Cas)

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 Changed 23 months ago by Doadin

  • Summary changed from Deluge won't start windows protected folder to Deluge won't start when loging windows protected folder

comment:2 Changed 22 months ago by Cas

  • Description modified (diff)

comment:3 Changed 22 months ago by Cas

  • Milestone changed from needs verified to 2.0.6

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

comment:4 Changed 22 months ago by Doadin

.\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 Changed 22 months ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

Fixed: [8b0c8392b]

Note: See TracTickets for help on using tickets.