breaks when unable to create cache directory

Bug #1836449 reported by Jelmer Vernooij
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Jelmer Vernooij

Bug Description

This is a regress from the new bedding code:

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

Related branches

Jelmer Vernooij (jelmer)
Changed in brz:
importance: High → Critical
Revision history for this message
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)
Changed in brz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.