removable_storage_test crashed with OSError in write_file(): [Errno 5] Input/output error

Bug #1289206 reported by SereSte
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Won't Fix
High
Unassigned
plainbox-provider-checkbox (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

 have set the automatic log in but still the system is asking for password on log in and some time the place where the password as to be written does not accept any writing is block then I have to restart and hope

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: plainbox-provider-checkbox 0.3-2
ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
Uname: Linux 3.13.0-16-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
Date: Fri Mar 7 13:26:38 2014
ExecutablePath: /usr/lib/plainbox-providers-1/checkbox/bin/removable_storage_test
InstallationDate: Installed on 2014-03-04 (2 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140301)
InterpreterPath: /usr/bin/python3.4
ProcCmdline: python3 /tmp/nest-ljcb4_bi.3e5aa4faf85bd3b57f990d86ca257e70e5123b0dd09f39deff10d4c3ee875380/removable_storage_test -s 268400000 --memorycard sdio usb scsi
ProcEnviron:
 PATH=(custom, user)
 LANG=C.UTF-8
PythonArgs: ['/tmp/nest-ljcb4_bi.3e5aa4faf85bd3b57f990d86ca257e70e5123b0dd09f39deff10d4c3ee875380/removable_storage_test', '-s', '268400000', '--memorycard', 'sdio', 'usb', 'scsi']
SourcePackage: plainbox-provider-checkbox
Title: removable_storage_test crashed with OSError in write_file(): [Errno 5] Input/output error
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
SereSte (goldhage) wrote :
tags: removed: need-duplicate-check
Changed in plainbox-provider-checkbox (Ubuntu):
importance: Undecided → Medium
information type: Private → Public
Revision history for this message
Daniel Manrique (roadmr) wrote :

The problem is in the section of the code (starts at line 124) that writes the file.

        with outfile:
            try:
                outfile.write(self.data)
            except IOError as exc:
                logging.error("Unable to write data to %s: %s", dest, exc)
                return False
            else:
                outfile.flush()
                os.fsync(outfile.fileno())
                return True

We only catch exceptions if they happen during *writing* the file, but in this case they were thrown in the "else" section, where we're no longer expecting them to happen.

Moving all file operations so they're inside the "try" section should help here, but we need to consider the implications and reasons why this was in the "else" section in the first place. IMHO clearly if the write operation failed, we don't need to flush and sync.

Changed in checkbox:
milestone: none → 2014-mar-28
Changed in plainbox-provider-checkbox (Ubuntu):
milestone: none → ubuntu-14.04
Changed in checkbox:
status: New → Triaged
Changed in plainbox-provider-checkbox (Ubuntu):
status: New → Triaged
Changed in checkbox:
importance: Undecided → Medium
Zygmunt Krynicki (zyga)
no longer affects: checkbox
Revision history for this message
Luigi Blasi (luigi-blasi88) wrote : Re: [Bug 1289206] Re: removable_storage_test crashed with OSError in write_file(): [Errno 5] Input/output error

So what could I do in order to fix this problemi? I have Ubuntu 14.04 on HP
Pavillon DV6 6030el

Thanks in advance
Il 23/apr/2014 18:51 "Zygmunt Krynicki" <email address hidden> ha
scritto:

> ** No longer affects: checkbox
>
> --
> You received this bug notification because you are subscribed to Ubuntu
> ubuntu-14.04.
> Matching subscriptions: Battery Icon on Faenza Theme
> https://bugs.launchpad.net/bugs/1289206
>
> Title:
> removable_storage_test crashed with OSError in write_file(): [Errno 5]
> Input/output error
>
> Status in “plainbox-provider-checkbox” package in Ubuntu:
> Triaged
>
> Bug description:
> have set the automatic log in but still the system is asking for
> password on log in and some time the place where the password as to be
> written does not accept any writing is block then I have to restart
> and hope
>
> ProblemType: Crash
> DistroRelease: Ubuntu 14.04
> Package: plainbox-provider-checkbox 0.3-2
> ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
> Uname: Linux 3.13.0-16-generic x86_64
> ApportVersion: 2.13.2-0ubuntu5
> Architecture: amd64
> Date: Fri Mar 7 13:26:38 2014
> ExecutablePath:
> /usr/lib/plainbox-providers-1/checkbox/bin/removable_storage_test
> InstallationDate: Installed on 2014-03-04 (2 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64
> (20140301)
> InterpreterPath: /usr/bin/python3.4
> ProcCmdline: python3
> /tmp/nest-ljcb4_bi.3e5aa4faf85bd3b57f990d86ca257e70e5123b0dd09f39deff10d4c3ee875380/removable_storage_test
> -s 268400000 --memorycard sdio usb scsi
> ProcEnviron:
> PATH=(custom, user)
> LANG=C.UTF-8
> PythonArgs:
> ['/tmp/nest-ljcb4_bi.3e5aa4faf85bd3b57f990d86ca257e70e5123b0dd09f39deff10d4c3ee875380/removable_storage_test',
> '-s', '268400000', '--memorycard', 'sdio', 'usb', 'scsi']
> SourcePackage: plainbox-provider-checkbox
> Title: removable_storage_test crashed with OSError in write_file():
> [Errno 5] Input/output error
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups:
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/plainbox-provider-checkbox/+bug/1289206/+subscriptions
>

Revision history for this message
Daniel Manrique (roadmr) wrote :

Hi Luigi,

You don't need to take any action, we need to code and deliver a fix for this problem. Apologies for the delay and thanks for your patience.

tags: added: bitesize
Zygmunt Krynicki (zyga)
Changed in plainbox-provider-checkbox:
status: New → Triaged
milestone: none → 0.5
Changed in plainbox-provider-checkbox:
milestone: 0.5 → 0.6
Changed in plainbox-provider-checkbox:
milestone: 0.6 → 0.8
Changed in plainbox-provider-checkbox:
milestone: 0.8 → 0.10
Daniel Manrique (roadmr)
Changed in plainbox-provider-checkbox:
milestone: 0.10 → future
Changed in plainbox-provider-checkbox (Ubuntu):
milestone: ubuntu-14.04 → trusty-updates
Changed in plainbox-provider-checkbox:
importance: Undecided → High
Changed in plainbox-provider-checkbox (Ubuntu):
status: Triaged → Won't Fix
Changed in plainbox-provider-checkbox:
status: Triaged → Won't Fix
milestone: future → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.