System image client log file grows indefinitely

Bug #1518955 reported by Pat McGowan
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Barry Warsaw
system-image (Ubuntu)
Fix Released
High
Barry Warsaw

Bug Description

From what I can tell the log file for system image at /var/log/system-image/client.log is continually appended to and is not rolled or truncated.

My current log has entries from 8 months ago and is over 3MB.

Another phone shows entries 5 months old and is over 1MB

I assume those were since the last full data wipes and flash

Tags: client
summary: - Log file grows indefinitely
+ System image client log file grows indefinitely
Changed in canonical-devices-system-image:
assignee: nobody → Pat McGowan (pat-mcgowan)
importance: Undecided → Medium
milestone: none → backlog
status: New → Confirmed
description: updated
Changed in system-image (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
Revision history for this message
Barry Warsaw (barry) wrote :

I guess you're asking for a logrotate.d entry for /var/log/system-image/client.log?

Barry Warsaw (barry)
tags: added: client
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Not proposing a solution just noting a problem, but sure that would resolve it.

Changed in canonical-devices-system-image:
importance: Medium → High
milestone: backlog → ww08-2016
Changed in system-image (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in system-image (Ubuntu):
status: New → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@barry any chance we can clear this one or does it need to be reassigned

Revision history for this message
Barry Warsaw (barry) wrote :

@pat-mcgowan - Sorry I couldn't get this into si 3.1. I'm not sure what the right approach is for touch, but I don't think system-image client itself should be trimming the log files. logrotate or some other system facility should be doing it, IMO. It's not clear to me what that would be. I'll try to do some research but if you (or anyone on your team) has suggestions, please follow up here. I think once we figure out *how* to do it, it'll be easy to get a release out fairly quickly.

Changed in ubuntu-system-image:
status: New → Triaged
assignee: nobody → Barry Warsaw (barry)
milestone: none → 3.2
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

The following conf file will cause the log to rotate once a month and keep 3 months worth of logs. It should be installed to the folder /etc/logrotate.d

Changed in canonical-devices-system-image:
milestone: ww08-2016 → 11
status: Confirmed → In Progress
Barry Warsaw (barry)
Changed in canonical-devices-system-image:
assignee: Pat McGowan (pat-mcgowan) → Barry Warsaw (barry)
no longer affects: ubuntu-system-image
Barry Warsaw (barry)
Changed in system-image (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-image - 3.1+16.04.20160407-0ubuntu1

---------------
system-image (3.1+16.04.20160407-0ubuntu1) xenial; urgency=medium

  * d/system-image.logrotate: Rotate the log file monthly. (LP:
    #1518955) d/control: Bump Standards-Version with no other changes
    necessary. (LP: #1518955)

 -- Barry Warsaw <email address hidden> Thu, 07 Apr 2016 15:49:08 +0000

Changed in system-image (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
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

Bug attachments

Remote bug watches

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