/var/log/upstart is missing

Bug #990102 reported by Mike Conigliaro
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I'm not sure if this is the right place to submit this bug, but I created a new EC2 instance last night using the official Canonical AMI for Precise (ami-a29943cb), and I found that /var/log/upstart was missing. This means Upstart jobs won't be able to log anything, and results in the following daily error from logrotate:

/etc/cron.daily/logrotate:
error: error accessing /var/log/upstart: No such file or directory
error: upstart:1 glob failed for /var/log/upstart/*.log
error: found error in /var/log/upstart/*.log , skipping

The fix is simple:

mkdir /var/log/upstart

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in upstart (Ubuntu):
status: New → Confirmed
Revision history for this message
James Hunt (jamesodhunt) wrote :

This is rather curious as /var/log/upstart is auto-created on install:

  dpkg -L upstart|grep /var/log/upstart

I suspect something else on those systems is removing /var/log/upstart/ which is causing subsequent logrotate runs to error.

Revision history for this message
Janne (jannehson51) wrote :

Is there anything I can do to help finding what is causing this error?

Revision history for this message
James Hunt (jamesodhunt) wrote :

This issue might be caused by a cron job that is clearing out /var/log/? Or some logrotate configuration issue possibly?

Revision history for this message
Mike Conigliaro (mconigliaro) wrote :

For what it's worth, I only created this directory once, and it hasn't disappeared yet. If some cron job or logrotate config was the culprit, I imagine the directory would eventually disappear again.

Revision history for this message
glance (glance-acc) wrote :

/var/log/upstart is missing in the precise-cloud-images allso.

Reinstalling the upstart package and a reboot later, everything is back to normal.

Revision history for this message
markus (markus-bengts) wrote :

I just launched a precise image from http://cloud.ubuntu.com/ami/ and checked the contents of /var/log (as user root). Everything in /var/log had been created after the server had been started. It seems that all content of /var/log is ignored when the server image is created.

Revision history for this message
Steve Langasek (vorlon) wrote :

I think this is a duplicate of a bug that was already fixed in the cloud images, but I don't remember where that fix happened. Reassigning to cloud-init.

affects: upstart (Ubuntu) → cloud-init (Ubuntu)
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Yes, this is a duplicate bug. It was fixed in the latest AMI. You're using the release AMI. Please pick the current one http://cloud.ubuntu.com/ami.

Changed in cloud-init (Ubuntu):
assignee: nobody → Ben Howard (utlemming)
status: Confirmed → Fix Released
importance: Undecided → Medium
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.