New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupted system call error when resuming from suspend to RAM #718

mseiwald opened this Issue Apr 7, 2014 · 2 comments


4 participants

mseiwald commented Apr 7, 2014

When I suspend my system (Ubuntu 13.10) while mopidy is running, the following exception is thrown and the HTTP API doesn't work anymore afterwards (i.e. you cannot establish a connection using mopidy.js).

Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 808, in __bootstrap_inner
  File "/usr/lib/python2.7/dist-packages/ws4py/", line 252, in run
    for fd in polled:
  File "/usr/lib/python2.7/dist-packages/ws4py/", line 138, in poll
    events = self.poller.poll(timeout=self.timeout)
IOError: [Errno 4] Interrupted system call

@jodal jodal added HTTP labels Apr 7, 2014


This comment has been minimized.


adamcik commented Apr 7, 2014

Looks like an other case of ws4py not doing good enough error handling, unless this is really the same issue. We've worked around this once before for an other corner case which resulted in similar problems, so should just be a matter of applying the same workaround and opening bugs the this and the previous problems against ws4py as I suspect they should be handling it, or at least clearly documenting that library users need to handle these cases.

@jodal jodal added this to the v0.19 - MPD playlist mgmt and other MPD improvements milestone May 14, 2014


This comment has been minimized.


jodal commented May 14, 2014

With the merge of #730 into develop, we've switched the WebSocket implementation from ws4py to Tornado. We've briefly tested suspending and resuming a system with Mopidy and a web client running, without seeing any issues. Thus, I believe this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment