breaks when unable to create cache directory

Bug #1836449 reported by Jelmer Vernooij on 2019-07-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
Critical
Jelmer Vernooij

Bug Description

This is a regress from the new bedding code:

Traceback (most recent call last):
  File "tools/generate_docs.py", line 110, in <module>
    main(sys.argv)
  File "tools/generate_docs.py", line 79, in main
    with breezy.initialize():
  File "breezy/__init__.py", line 222, in initialize
    state._start()
  File "breezy/library_state.py", line 98, in _start
    self._trace.__enter__()
  File "breezy/trace.py", line 655, in __enter__
    self._original_state = enable_default_logging()
  File "breezy/trace.py", line 292, in enable_default_logging
    brz_log_file = _open_brz_log()
  File "breezy/trace.py", line 249, in _open_brz_log
    _brz_log_filename = _get_brz_log_filename()
  File "breezy/trace.py", line 210, in _get_brz_log_filename
    return os.path.join(bedding.cache_dir(), 'brz.log')
  File "breezy/bedding.py", line 187, in cache_dir
    os.makedirs(cache_dir)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/sbuild-nonexistent'

Related branches

Jelmer Vernooij (jelmer) on 2019-07-13
Changed in brz:
importance: High → Critical
Jelmer Vernooij (jelmer) wrote :

Note that this only affects 3.1.

Changed in brz:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → In Progress
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer) on 2019-10-13
Changed in brz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers