"Permission denied: '/root/.bzr.log'" error from supermirror operations

Bug #139593 reported by Colin Watson
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Tom Haddon

Bug Description

Committing to bzr+ssh://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/gobuntu.gutsy/, or updating from it, or in general interacting with the remote branch in any way, gives:

  $ bzr commit -m 'ubuntu-desktop -> gobuntu-desktop'
  failed to open trace file: [Errno 13] Permission denied: '/root/.bzr.log'
  modified desktop
  Committed revision 1068.

I checked with strace -f and confirmed that the error message is coming from the 'bzr serve' on the far end. It looks like it is misconfigured, although harmlessly (operations still succeed).

Tags: lp-code
Revision history for this message
Martin Pool (mbp) wrote :

This is a harmless warning, but it does look quite disturbing.

Changed in launchpad-bazaar:
assignee: nobody → jml
importance: Undecided → High
status: New → Triaged
Revision history for this message
Jonathan Lange (jml) wrote :

This looks like a server configuration issue. I don't have the privileges required to investigate this further. Assigning to Tom, who may know more about recent server config changes, and who can examine the environment.

Dropping to "Confirmed", because the location of the bug is uncertain.

Changed in launchpad-bazaar:
assignee: jml → mthaddon
status: Triaged → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

It looks like this was provoked by rebooting the server.

I think the script that starts the server should explicitly set $HOME to something reasonable.

See also bug 106117, asking that we don't log to that file from the server.

Revision history for this message
Martin Pool (mbp) wrote :

Andrew will send an admin request to fix the startup script and reboot that service.

Revision history for this message
Tom Haddon (mthaddon) wrote :

I've restarted the bzr-sftp service as the supermirror user. Please confirm this fixes the issue, and then it seems like a change to the initscript as described above will fix it.

Revision history for this message
Colin Watson (cjwatson) wrote :

I'm no longer seeing these error messages, so it looks like this has fixed the immediate issue. Thanks.

Jonathan Lange (jml)
Changed in launchpad-bazaar:
status: Confirmed → Fix Released
Revision history for this message
Tom Haddon (mthaddon) wrote :

I'm leaving this open because it depends on the completion of RT ticket #29114 (I don't have perms to complete it myself).

The problem has disappeared because the service was restarted as supermirror, but if the service is restarted as root (which it will on a reboot) it will give the same error until that RT ticket has been completed.

I'll mark the bug fix released when the RT ticket is complete.

Changed in launchpad-bazaar:
status: Fix Released → In Progress
Revision history for this message
Tom Haddon (mthaddon) wrote :

Pushed to 1.1.11 per IRC discussion with Rinchen

Changed in launchpad-bazaar:
milestone: 1.1.10 → 1.1.11
Revision history for this message
Tom Haddon (mthaddon) wrote :

The init script has been adjusted.

Changed in launchpad-bazaar:
status: In Progress → 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.