question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fail to restart automatically using docker + splash

See original GitHub issue

I use the following command to deamonize the process ‘docker run -d -p 8050:8050 --restart=always -v /etc/splash/proxy-profiles:/etc/splash/proxy-profiles scrapinghub/splash:1.5 --maxrss 500’ but whenever the splash process crash (it gets killed by the system because it takes too much memory even if i have 1GB on the server) docker fails to restart it with the following error:

Traceback (most recent call last):
  File "/app/bin/splash", line 3, in <module>
    from splash.server import main
  File "/usr/local/lib/python2.7/dist-packages/splash/server.py", line 12, in <module>
    from splash.qtutils import init_qt_app
  File "/usr/local/lib/python2.7/dist-packages/splash/qtutils.py", line 12, in <module>
    from PyQt4.QtCore import (QAbstractEventDispatcher, QDateTime, QObject,
ImportError: /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so: cannot read file data: Input/output error

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kmikecommented, Apr 30, 2015

Hm, I don’t know what can cause this error. Googling for ‘Input/output error’ suggests a hardware failure, but I don’t have an experience with it myself.

One problem which may be related is that Splash can sometimes segfault on shutdown (it seems because C++ destructors order doesn’t match Python objects deallocation order), but here the error is at startup, not at shutdown.

0reactions
kmikecommented, Nov 4, 2015

There is an interesting discussion in this ticket, bu I’m not sure what to with it. Closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker - Splash containers stops working after 30 minutes
I have some issue with Aquarium and splash. They stop working after 30 minutes after the start. A number of pages for loading...
Read more >
Start containers automatically - Docker Documentation
Docker provides restart policies to control whether your containers start automatically when they exit, or when Docker restarts. Restart policies ensure that ...
Read more >
Containers behind VPN client container do not restart when ...
I plan on using https://hub.docker.com/r/willfarrell/autoheal/ to auto restart the VPN container, but how do I restart the containers that ...
Read more >
Reliability on Torizon | Toradex Developer Center
The Torizon Updates system requires a reboot for OS updates, which is the case when the Docker daemon is updated. If the default...
Read more >
Scrape Dynamic Sites with Splash and Python Scrapy
This tutorial covers all the steps, right from installing Docker to writing the code for the Scrapy project. WHAT IS SPLASH : Splash...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found