Fail to restart automatically using docker + splash
See original GitHub issueI 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:
- Created 8 years ago
- Comments:15 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
There is an interesting discussion in this ticket, bu I’m not sure what to with it. Closing.