← Back to team overview

zeitgeist team mailing list archive

Re: [Bug 738555] Re: zeitgeist-daemon crashed with IOError in _write_to_disk(): [Errno 2] No such file or directory: '/home/royg/.local/share/zeitgeist/datasources.pickle'

 

OK so a primary solution for this was putting the content of _write_to_disk
in datasource_registery.py in a normal " try - catch " block
My primary fear was that the next extension or zeitgeist would crash trying
to write to the disk. This was not the case and the error was caught.
To explain why the other stuff did not crash is:
1) This was the only extension writing to disk upon unloading
2) The engine does not write to disk upon exit since all events are written
to disk upon entrance.
My primary solution would be to put the _write_to_disk in a normal "try -
catch" block for now...
Cheers
Seif

On Thu, Apr 21, 2011 at 5:31 PM, Seif Lotfy <seif@xxxxxxxxx> wrote:

> I found an easier way to replicate the error.
> 1) Open Terminal (terminal1) and run "zeitgeist-daemon --replace"
> 2) Open another terminal (terminal2) and do "cd ~/.local/share/" then "mv
> zeitgeist zeitgeist-backup"
> 3) In terminal1 then do "Ctrl+c" to quit Zeitgeist
> (remember to move the zeitgeist-backup again to zeitgeist else you will
> lose your data)
> Cheers
> Seif
>
>
> On Thu, Apr 21, 2011 at 5:24 PM, Seif Lotfy <seif@xxxxxxxxx> wrote:
>
>> So this looks to me like a problem not only Zeitgeist is facing but
>> anything that is running and wants to write to disk upon session end.
>>
>>
>> On Thu, Apr 21, 2011 at 5:07 PM, Seif Lotfy <738555@xxxxxxxxxxxxxxxxxx>wrote:
>>
>>> So as Markus said, the crash report comes from the session before.
>>> This implies that the home directory is unmounted or encrypted again
>>> before zeitgeist can write something to it when it receives a SIGHUB or
>>> SIGTERM signal.
>>> The solution to this either to not allow the datasource register y to
>>> write to disk upon the occurrence of these signals. This means there could
>>> be a dataloss in the datasource. I will need to further investigate this.
>>>
>>> --
>>> You received this bug notification because you are subscribed to The
>>> Zeitgeist Project.
>>> https://bugs.launchpad.net/bugs/738555
>>>
>>> Title:
>>>  zeitgeist-daemon crashed with IOError in _write_to_disk(): [Errno 2]
>>>  No such file or directory:
>>>  '/home/royg/.local/share/zeitgeist/datasources.pickle'
>>>
>>> Status in Zeitgeist Framework:
>>>  Triaged
>>> Status in “zeitgeist” package in Ubuntu:
>>>  Incomplete
>>>
>>> Bug description:
>>>  Binary package hint: zeitgeist
>>>
>>>  lsb_release -rd
>>>  Description:  Ubuntu Natty (development branch)
>>>  Release:      11.04
>>>
>>>  ProblemType: Crash
>>>  DistroRelease: Ubuntu 11.04
>>>  Package: zeitgeist-core 0.7-1
>>>  ProcVersionSignature: Ubuntu 2.6.38-7.36-generic 2.6.38
>>>  Uname: Linux 2.6.38-7-generic x86_64
>>>  Architecture: amd64
>>>  Date: Sun Mar 20 07:40:48 2011
>>>  EcryptfsInUse: Yes
>>>  ExecutablePath: /usr/bin/zeitgeist-daemon
>>>  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110318)
>>>  InterpreterPath: /usr/bin/python2.7
>>>  ProcCmdline: /usr/bin/python /usr/bin/zeitgeist-daemon
>>>  ProcEnviron:
>>>   SHELL=/bin/bash
>>>   LANGUAGE=en_AU:en
>>>   LANG=en_AU.UTF-8
>>>  PythonArgs: ['/usr/bin/zeitgeist-daemon']
>>>  SourcePackage: zeitgeist
>>>  Title: zeitgeist-daemon crashed with IOError in _write_to_disk(): [Errno
>>> 2] No such file or directory:
>>> '/home/royg/.local/share/zeitgeist/datasources.pickle'
>>>  UpgradeStatus: No upgrade log present (probably fresh install)
>>>  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
>>>
>>
>>
>

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/738555

Title:
  zeitgeist-daemon crashed with IOError in _write_to_disk(): [Errno 2]
  No such file or directory:
  '/home/royg/.local/share/zeitgeist/datasources.pickle'

Status in Zeitgeist Framework:
  Triaged
Status in “zeitgeist” package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: zeitgeist

  lsb_release -rd
  Description:	Ubuntu Natty (development branch)
  Release:	11.04

  ProblemType: Crash
  DistroRelease: Ubuntu 11.04
  Package: zeitgeist-core 0.7-1
  ProcVersionSignature: Ubuntu 2.6.38-7.36-generic 2.6.38
  Uname: Linux 2.6.38-7-generic x86_64
  Architecture: amd64
  Date: Sun Mar 20 07:40:48 2011
  EcryptfsInUse: Yes
  ExecutablePath: /usr/bin/zeitgeist-daemon
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110318)
  InterpreterPath: /usr/bin/python2.7
  ProcCmdline: /usr/bin/python /usr/bin/zeitgeist-daemon
  ProcEnviron:
   SHELL=/bin/bash
   LANGUAGE=en_AU:en
   LANG=en_AU.UTF-8
  PythonArgs: ['/usr/bin/zeitgeist-daemon']
  SourcePackage: zeitgeist
  Title: zeitgeist-daemon crashed with IOError in _write_to_disk(): [Errno 2] No such file or directory: '/home/royg/.local/share/zeitgeist/datasources.pickle'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare


References