Bug 699934 - Bootchart can't write graph file
Summary: Bootchart can't write graph file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bootchart
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-27 00:14 UTC by Adam Williamson
Modified: 2011-07-08 18:06 UTC (History)
5 users (show)

Fixed In Version: bootchart-0.14.0-1.3.git20110630.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-08 18:06:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2011-04-27 00:14:03 UTC
The last bootchart update claims a fix for "bootchart failed to write bootchart.png and displayed an error: "Can't write to %s bootchart.png"", but this doesn't seem really fixed in bootchart-0.14.0-1.2.git20110331.fc15.x86_64 . I think the %s bit is gone, but it still can't write the file:

[adamw@adam ~]$ bootchart -o /home/adamw
No path given, trying /var/log/bootchart.tgz
parsing '/var/log/bootchart.tgz'
parsing 'header'
parsing 'cmdline2.log'
parsing 'paternity.log'
parsing 'proc_cpuinfo.log'
parsing 'proc_diskstats.log'
parsing 'proc_meminfo.log'
parsing 'proc_stat.log'
parsing 'taskstats.log'
merged 0 logger processes
pruned 767 process, 0 exploders, 156 threads, and 8 runs
Can't write to /home/adamw/bootchart.png

happens every time I try, with or without a -o parameter. I don't see an SELinux denial so I don't think that's it.

Comment 1 Edouard Bourguignon 2011-04-29 14:39:00 UTC
touch bootchart.png works for me as a workaround

Comment 2 Leon Keijser 2011-06-03 19:37:53 UTC
(In reply to comment #1)
> touch bootchart.png works for me as a workaround

yep. same here

Comment 3 Mladen Kuntner 2011-06-25 10:08:38 UTC
In
/usr/lib/python2.7/site-packages/pybootchartgui/main.py

we have:

if not os.access(filename, os.W_OK):
  print("Can't write to %s" % filename);
  return 2

As file "bootchart.png" does not exists
this test will not succeed.

If we just delete this 3 lines bootchart command with no parameters
creates bootchart.png file.

Comment 4 Fedora Update System 2011-06-30 12:50:07 UTC
bootchart-0.14.0-1.3.git20110630.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/bootchart-0.14.0-1.3.git20110630.fc15

Comment 5 Fedora Update System 2011-06-30 18:56:11 UTC
Package bootchart-0.14.0-1.3.git20110630.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing bootchart-0.14.0-1.3.git20110630.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/bootchart-0.14.0-1.3.git20110630.fc15
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-07-08 18:06:24 UTC
bootchart-0.14.0-1.3.git20110630.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.