Zim

Fwd: [abrt] Zim-0.57-2.fc17: socket.py:224:meth:error: [Errno 2] No such file or directory

Bug #1088351 reported by Robin Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Undecided
Unassigned

Bug Description

https://bugzilla.redhat.com/show_bug.cgi?id=885262

Version-Release number of selected component:
Zim-0.57-2.fc17

Additional info:
libreport version: 2.0.18
abrt_version: 2.0.18
cmdline: /usr/bin/python /usr/bin/zim --plugin trayicon
kernel: 3.6.7-4.fc17.x86_64

backtrace:
:socket.py:224:meth:error: [Errno 2] No such file or directory
:
:Traceback (most recent call last):
: File "/usr/bin/zim", line 73, in <module>
: zim.main(argv)
: File "/usr/lib/python2.7/site-packages/zim/__init__.py", line 472, in main
: module.main(*args)
: File "/usr/lib/python2.7/site-packages/zim/plugins/trayicon.py", line 36, in main
: if not server.has_object(obj):
: File "/usr/lib/python2.7/site-packages/zim/ipc.py", line 699, in call
: conn = Client(SERVER_ADDRESS, SERVER_ADDRESS_FAMILY)
: File "/usr/lib64/python2.7/multiprocessing/connection.py", line 169, in Client
: c = SocketClient(address)
: File "/usr/lib64/python2.7/multiprocessing/connection.py", line 293, in SocketClient
: s.connect(address)
: File "/usr/lib64/python2.7/socket.py", line 224, in meth
: return getattr(self._sock,name)(*args)
:error: [Errno 2] No such file or directory
:
:Local variables in innermost frame:
:self: <socket._socketobject object at 0x7f9cdf7e78a0>
:args: ('/tmp/zim-korneta/zim-server-socket',)
:name: 'connect'

Tags: daemon
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

This error seems to indicate that the socket (and server process ?) disappeared in between executing line 25 and line 36 of trayicon. Could be some kind of race condition between processes, but should not be reproducible easily.

Revision history for this message
Robin Lee (cheeselee) wrote :

Zim-0.57-2 is patched with bzr607 against 0.57. Would this be the issue?

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1088351] Re: Fwd: [abrt] Zim-0.57-2.fc17: socket.py:224:meth:error: [Errno 2] No such file or directory

On Tue, Dec 11, 2012 at 1:43 PM, Robin Lee <email address hidden> wrote:
> Zim-0.57-2 is patched with bzr607 against 0.57. Would this be the issue?

I don't believe so. That change only helps cleaning up old socket files.

Basically if the call on line 25 succeeds we have a server running,
now 36 fails claiming there is no socket. So server went missing in
between and cleaned up the socket as well.

This may indicate zim was running but closed in a controlled way just
as the user was running the "zim --plugin trayicon".

Regards,

Jaap

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Just realize that this may mean I need to put another check to ensure that the folder is still existing when I start the server - that might explain it.

-- Jaap

Changed in zim:
status: New → Incomplete
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

On second thought, that doesn't explain it :(

Just means socket went missing in the mean time - so must be some kind of race condition.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
Revision history for this message
Robin Lee (cheeselee) wrote :
Changed in zim:
status: Expired → New
tags: added: daemon
Changed in zim:
status: New → Confirmed
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.