Launchpad Librarian creates logfiles with overly restrictive permissions

Bug #427577 reported by Michael Barnett
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When the librarian process creates new logfiles, they are created with ownership librarian:librarian and permissions of 600. This prevents us from being able to properly sync the logs to the dev server.

tags: added: librarian
affects: launchpad → launchpad-foundations
Revision history for this message
Stuart Bishop (stub) wrote :

Is this a launchpad issue, or is the umask just set incorrectly in the production environment?

Changed in launchpad-foundations:
status: New → Incomplete
Revision history for this message
Tom Haddon (mthaddon) wrote :

I believe twisted sets umask explicitly (I've come across this before with other twisted log files). If there's an option we can use to set the umask manually that'd be great. A file created as the user that's running the librarian is given 644 perms, fwiw.

Stuart Bishop (stub)
Changed in launchpad-foundations:
status: Incomplete → Triaged
importance: Undecided → Medium
Revision history for this message
Steve McInerney (spm) wrote :

fwiw. we only see this on 'librarian', not 'librarian2' which sets to 0644.

Tom Haddon (mthaddon)
tags: added: canonical-losa-lp
Revision history for this message
Robert Collins (lifeless) wrote :

Ok, so the same code runs librarian and librarian2.

Can you please attach - or review yourself :) - the init scripts and environment variables used to start librarian and librarian2 ?

I've diffed the production configs for the two librarians - no changes other than port prefix and directories.

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

Here's the diff between the two initscripts - https://pastebin.canonical.com/35057/. No smoking gun there...

Curtis Hovey (sinzui)
Changed in launchpad:
importance: Medium → Low
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.