Bootchart does not generate a .tar.gz file

Bug #598096 reported by Tom Pino
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
bootchart (Ubuntu)
Won't Fix
High
Steve Langasek

Bug Description

Binary package hint: bootchart

I installed this 10.10 UNE and installed bootchart right off the bat. It has never generated a file. We got the pybootchartgui update the other day and I got a chuckle out of that. I am sure it is working hard on this install.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: bootchart 0.90.2-7
ProcVersionSignature: Ubuntu 2.6.35-5.6-generic 2.6.35-rc3
Uname: Linux 2.6.35-5-generic i686
Architecture: i386
Date: Thu Jun 24 07:27:50 2010
InstallationMedia: Ubuntu-Netbook 10.10 "Maverick Meerkat" - Alpha i386 (20100613)
ProcEnviron:
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: bootchart

Revision history for this message
Tom Pino (metalsmith-rangeweb) wrote :
Revision history for this message
xrayA4T (xraya4t) wrote :

Bootchart does nothing on my machine either. It did not work on Lucid and it still does not work on Maverick. I'm not sure if it might be related to the fact that we now use grub2 and not grub. Also none of the forums on bootchart help because they all refer to /sbin/bootchartd and that does not exist in the bootchart package. My Maverick is extremely slow 1-2minutes after logging in and bootchart would help me to identify the offending applications but it just fails to do anything, no tgz files in /var/log/bootchart

Revision history for this message
Azulmarino (lkmdigital) wrote :

The same happens here with bootchart installed in Linux Mint 9. No files are generated.

Revision history for this message
emilio (bistrulli) wrote :

Same happens on XUbuntu 10.04(lucid) with kernel 2.6.32-25-generic-pae

Revision history for this message
Farooqhafeez (farooqhafeez) wrote :

I have this same issue. While researching on internet i did find out few things and tried to match up with what i have.
1)/sbin/bootchart.d is missing
2) There is supposed to be an entry in /boot/grub/menu.lst but since 10.10 uses grub.cfg i checked that and found nothing.

Here is what i get in boot.log

init: bootchart pre-stop process (420) terminated with status 1

init: bootchart post-stop process (421) terminated with status 2

Any idea what is going on?

Revision history for this message
Roman Stingler (coolx67) wrote :

today i had the same problem my notebook -> no files were created
my girlfriends notebook -> everything worked fine

so i decided to check the differences and a few minutes ago i found the reason

***** I have also posted it in https://wiki.archlinux.org/index.php/Talk:Bootchart *****

if this error message is displayed:

/var/log/bootchart.tgz not found

and you have a SSD and optimized it in fstab like me

 tmpfs /tmp tmpfs nodev,nosuid 0 0

tmpfs /dev/shm tmpfs nodev,nosuid 0 0

tmpfs /var/tmp tmpfs defaults 0 0

tmpfs /var/log tmpfs nodev,nosuid 0 0

tmpfs /var/cache/apt/archives tmpfs defaults 0 0

 there is the problem that all in /var/log is deleted after reboot because it's in the RAM

so all you have to do is just add this line

tmpfs /var/log/bootchart tmpfs nodev,nosuid 0 0

so the folder is being created and the files are copied after a few seconds.

Changed in bootchart (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Kegel (dank) wrote :

In ubuntu 11.04, installing bootchart and rebooting still yields nothing in /var/log/bootchart.

Revision history for this message
Frost73 (frost1973) wrote :

I have the same problem in ubuntu 11.10 with kernel 3.0.0-15-generic-pae

Revision history for this message
Dominik (dominik-dbruhn) wrote :

Same problem here, installed the bootchart-package but nothing got generated after several reboots.

Revision history for this message
Gema Gomez (gema) wrote :

This problem is hitting us on bootspeed testing. We need to get it sorted to be able to make the automation more robust.

Changed in bootchart (Ubuntu):
importance: Undecided → High
Revision history for this message
Steve Langasek (vorlon) wrote :

Please attach the contents of /var/log/upstart/bootchart.log on an affected machine.

Changed in bootchart (Ubuntu):
status: Confirmed → Incomplete
assignee: nobody → Steve Langasek (vorlon)
Revision history for this message
Marcus Pereira (marcds) wrote :

No chart at 12.10 too:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal

# cat /var/log/upstart/bootchart.log
/lib/bootchart/gather: 35: cd: can't cd to /var/run/bootchart

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

Marcus,

This error is not reproducible here. The bootchart package will, by default, start the collector in the initramfs, which means the results are written to /dev/.bootchart, not to /var/run/bootchart; this results in the following handling in the upstart stop script:

    if [ -d /dev/.bootchart ]
    then
        LOGS=/dev/.bootchart/log
    else
        LOGS=/var/run/bootchart
    fi
    [...]
    # Gather the output into the tarball
    /lib/bootchart/gather "$TARBALL" "$LOGS"

Is bootchart somehow missing from your initramfs? Are you not using an initramfs that was generated on Ubuntu with the bootchart package installed?

Also, it may be best if you file a separate bug report for your issue, as your problem may have a different cause from the bug originally being reported here.

Revision history for this message
Marcus Pereira (marcds) wrote :

Steve,
  thanks for the update. I found the problem, my GRUB_CMDLINE_LINUX had the "profile" parameter. With that /dev/.bootchart is not created. Bootchart is working now. May be some people with the same problem have this parameter too.

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

The bootchart package is no longer included in recent versions of Ubuntu; systemd's built-in boot profiling is used instead.

Changed in bootchart (Ubuntu):
assignee: Steve Langasek (vorlon) → nobody
assignee: nobody → Steve Langasek (vorlon)
status: Incomplete → Won't Fix
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.