IOError: [Errno 5] Input/output error: '~/.miro/miro-log'

Bug #500623 reported by Ukepli
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Miro
Unknown
Unknown
miro (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

OS: Ubuntu 9.10
Version of packages: Miro & Miro-data both 2.5.3-1ubuntu1

I have Ubuntu 9.10 - was updating my language packages and decided to kill some time and watch some shows in Miro. So I opened up Miro and then the whole computer froze. I had to power off the computer to restart. Now, ever since, Miro doesn't open when I want it to. I've clicked the icon and it looks like it wanted to open, but no windows ever pop up.

I ran miro in terminal and this is what the output was:

Traceback (most recent call last):
  File "/usr/bin/miro.real", line 268, in <module>
    startapp()
  File "/usr/bin/miro.real", line 225, in startapp
    startup(props_to_set)
  File "/usr/bin/miro.real", line 147, in startup
    startup.initialize(parsed_options.theme)
  File "/usr/lib/pymodules/python2.6/miro/startup.py", line 148, in initialize
    setup_logging()
  File "/usr/lib/pymodules/python2.6/miro/plat/utils.py", line 118, in setup_logging
    rotater = logging.handlers.RotatingFileHandler(config.get(prefs.LOG_PATHNAME), mode="w", maxBytes=100000, backupCount=5)
  File "/usr/lib/python2.6/logging/handlers.py", line 107, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.6/logging/handlers.py", line 59, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.6/logging/__init__.py", line 819, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.6/logging/__init__.py", line 838, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 5] Input/output error: '/home/kgp/.miro/miro-log'

I'm new to Linux in general and not sure what it all means. I tried to open miro-log but it wouldn't let me. I opened the various log files; though, and there was a log file for today showing it was checking the feeds for updates even though the program won't open... thought that was odd.

I've tried uninstalling Miro and then reinstalling it - still doesn't work. Any ideas on how to fix this?

ANY HELP IS APPRECIATED! Thank you

Revision history for this message
Ukepli (ubuntu-kevinplover) wrote :

Ended up deleting miro-log and then uninstalling and reinstalling - then everything worked again. Guess somehow the program couldn't access that file

Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

Closing this since you seem to have fixed it. Feel free to reopen this if you can reproduce this bug. Thanks.

affects: ubuntu → miro (Ubuntu)
Changed in miro (Ubuntu):
status: New → Invalid
Revision history for this message
aaronchall (aaronchall) wrote :

This problem just happened to me as well, I renamed the miro-log file to miro-log.bak, and it worked. (I was contemplating a uninstall reinstall, but decided to run in terminal to see if that would work-around the not opening problem, I got the "IOError: [Errno 5] Input/output error: '/home/XXXXX/.miro/miro-log'" error, so I figured deleting the file would probably work to get the program to recreate the file, and it did.)

So I'm posting this to help out anyone else who might have this issue, as well as to say that perhaps the program should have a procedure to ask the owner if he would like to create a backup of the file and delete it. I'm just saying.

summary: - Ubuntu froze, now Miro doesn't open
+ IOError: [Errno 5] Input/output error: '~/.miro/miro-log'
Changed in miro (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Will Guaraldi Kahn-Greene (willkahngreene) wrote :

It's perfectly safe to delete the defective log file if you bump into this--they're just log files.

I'm not sure why the RotatingFileHandler doesn't just create a new log file when it encounters the IOError. I'm also not sure why it's encountering an IOError--that's bizarre.

I'll fix it upstream for Miro 3.1 and backport the fix to Miro 3.0.1 and toss a link to the revision in here. I'm not supporting the Miro 2.5 series anymore, but it should be pretty easy to take the revision and build a patch for Miro 2.5.3 for whoever wants to do that.

Revision history for this message
Will Guaraldi Kahn-Greene (willkahngreene) wrote :
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.