Ubuntu

defaults to /var/log/bootchart.tgz which doesn't exist

Reported by ullix on 2010-04-18
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
pybootchartgui (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: bootchart

When bootchart is started by the command 'bootchart' , it tries to find '/var/log/bootchart.tgz', while Lucid stores its files in it own subdiretory '/var/log/bootchart/' with names like 'hostname-lucid-20100418-1.tgz'.
The default path should include the subdirectory bootchart.

Just changing the path won't help, since bootchart can't predict what the right path would be.

For lucid, it's probably wisest to use the latest .tgz file in /var/log/bootchart

affects: bootchart (Ubuntu) → pybootchartgui (Ubuntu)
Changed in pybootchartgui (Ubuntu):
status: New → Triaged
importance: Undecided → Low
summary: - [ubuntu lucid] bootchart uses wrong default folder
+ defaults to /var/log/bootchart.tgz which doesn't exist
Sander Jonkers (jonkers) wrote :

And what if /var/log/bootchart/ neither exists?

sander@quirinius:~$ bootchart
No path given, trying /var/log/bootchart.tgz
warning: path '/var/log/bootchart.tgz' does not exist, ignoring.
Parse error: empty state: '/var/log/bootchart.tgz' does not contain a valid bootchart
sander@quirinius:~$

sander@quirinius:~$ ls -al /var/log/bootchart/
ls: cannot access /var/log/bootchart/: No such file or directory

sander@quirinius:~$ uname -a
Linux quirinius 2.6.32-22-generic-pae #33-Ubuntu SMP Wed Apr 28 14:57:29 UTC 2010 i686 GNU/Linux

sander@quirinius:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"
sander@quirinius:~$

Sander Jonkers (jonkers) wrote :

Oops, sorry: after installing bootchart (not just pybootchargui), /var/log/bootchart/ does exist, and contains a .tgz and even a .png.

Roman Stingler (coolx67) wrote :

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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers