firmwaretool crashed with IOError in _open()

Bug #654565 reported by Jacopo Moronato
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firmware-tools (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: firmware-tools

Running from Terminal gives me this:
Traceback (most recent call last):
  File "/usr/sbin/firmwaretool", line 23, in <module>
    ftmain.main(sys.argv[1:])
  File "/usr/share/firmware-tools/ftmain.py", line 89, in main
    base.getOptionsConfig(args)
  File "/usr/share/firmware-tools/cli.py", line 106, in getOptionsConfig
    disabledPlugins=self.opts.disabledPlugins)
  File "/usr/lib/pymodules/python2.6/firmwaretools/__init__.py", line 114, in _getConfig
    self.setupLogging(self.loggingConfig, self.verbosity, self.trace)
  File "/usr/lib/pymodules/python2.6/firmwaretools/__init__.py", line 127, in setupLogging
    logging.config.fileConfig(configFile)
  File "/usr/lib/python2.6/logging/config.py", line 84, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.6/logging/config.py", line 162, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python2.6/logging/__init__.py", line 827, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.6/logging/__init__.py", line 846, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/firmware-updates.log'

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: firmware-tools-cli 2.1.10-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Mon Oct 4 14:18:00 2010
ExecutablePath: /usr/sbin/firmwaretool
InterpreterPath: /usr/bin/python2.6
LiveMediaBuild: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate i386 (20101003)
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/sbin/firmwaretool
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
PythonArgs: ['/usr/sbin/firmwaretool']
SourcePackage: firmware-tools
Title: firmwaretool crashed with IOError in _open()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Jacopo Moronato (jmoronat) wrote :
visibility: private → public
description: updated
tags: removed: need-duplicate-check
Revision history for this message
David Ayers (ayers) wrote :

I can confirm this when executed as a normal user.
When executed under sudo I get:
Config Error: Plugin "buildpkg_cmd" cannot be loaded: No module named firmware_extract

Revision history for this message
David Ayers (ayers) wrote :

I was able to successfully execute firmware tool on another system.

Yet the bug, though minor, is still valid since a user should expect a meaningful message stating that the program should be executed with the needed privileges, i.e. as root.

Revision history for this message
David Ayers (ayers) wrote :

Removing the firmware-extract package resolved issue on comment #2

Changed in firmware-tools (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Mario Limonciello (superm1) wrote :

I've requested this package to be removed from the Ubuntu archive (https://bugs.launchpad.net/ubuntu/+source/firmware-tools/+bug/1749020) so this bug won't be fixed.

Changed in firmware-tools (Ubuntu):
status: New → 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.