[Errno 13] Permission denied: u'/bzr/.bzr/checkout/dirstate'

Asked by Oscar Finnsson

Hi,

I am constantly getting "No handlers could be found for logger "bzr"". I read that I might have to run "bzr break-lock" but when I do that I get:

me:/bzr$ bzr break-lock -Derror
No handlers could be found for logger "bzr"
bzr: ERROR: bzrlib.errors.LockFailed: Cannot lock /bzr/.bzr/checkout/dirstate: [Errno 13] Permission denied: u'/bzr/.bzr/checkout/dirstate'

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 3784, in run
    control.break_lock()
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 121, in break_lock
    thing_to_unlock.break_lock()
  File "/usr/lib/python2.4/site-packages/bzrlib/workingtree_4.py", line 213, in break_lock
    state.lock_write()
  File "/usr/lib/python2.4/site-packages/bzrlib/dirstate.py", line 2752, in lock_write
    self._lock_token = lock.WriteLock(self._filename)
  File "/usr/lib/python2.4/site-packages/bzrlib/lock.py", line 131, in __init__
    self._open(self.filename, 'rb+')
  File "/usr/lib/python2.4/site-packages/bzrlib/lock.py", line 60, in _open
    raise errors.LockFailed(self.filename, str(e))
LockFailed: Cannot lock /bzr/.bzr/checkout/dirstate: [Errno 13] Permission denied: u'/bzr/.bzr/checkout/dirstate'

The permission for "distate" is 775 and for "~/.bzr.log" it's 775. I'm running Debian on the server.

I got a branch on my laptop (a Mac OS X 10.5) that I've tried to commit but when I do I just get:

bzr: ERROR: Cannot lock LockDir(chroot--1216836884:///bzr/.bzr/branch/lock): Permission denied: "/bzr/.bzr/branch/lock/gghigpu843.tmp": [Errno 13] Permission denied: '/bzr/.bzr/branch/lock/gghigpu843.tmp'

The branch is listet as a "pending merge" when I run "bzr status".

bzr info (on the laptop) yields:
me: bzr info
Checkout (format: pack-0.92)
Location:
       checkout root: .
  checkout of branch: bzr+ssh://<user>@<server>/bzr/

Related branches:
  parent branch: bzr+ssh://<user>@<server>/bzr/

bzr info (on server) yields:
No handlers could be found for logger "bzr"
Standalone tree (format: pack-0.92)
Location:
  branch root: .

I've tried "bzr break-lock URL" and "bzr break-lock" (from the laptop), "bzr break-lock" (on the server) but nothing seems to help. Any ideas on how these two issues can be solved?

I guess I would like to:
1. Get rid on the "No handlers could be found for logger "bzr""-error
2. Be able to commit my pending merge.

Regards,
Oscar

Question information

Language:
English Edit question
Status:
Expired
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Martin Pool (mbp) said :
#2

The 'logger not found' is relatively unimportant.

It's strange that Bazaar would be getting access denied to the dirstate file. In general this does work on os x so I'm wondering whether there's something specific to your environment that means file locking does not work. Are you using an unusual filesystem for your working directory - afs or nfs or something?

Revision history for this message
Martin Pool (mbp) said :
#3

Vincent noticed something interesting - you seem to be working in the /bzr directory under the root directory, not inside your home directory. There's nothing wrong with that from bzr's point of view but it may be that the OS permissions are wrong and causing trouble.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.