2017-09-04 9 views
0

Ich benutze Phantomjs Docker Container, neueste Version von wernight/phantomjs. Hier ist Link. https://hub.docker.com/r/wernight/phantomjs/ Das Problem ist; Wenn ich den Container starte, wird nach einiger Zeit (2-3 Tage) der Container plötzlich mit einem Fehler unterschritten. Hat jemand eine Idee oder einen Vorschlag? Ich benutze existierende Container wie sie sind.Docker PhantomJS 2 Container stoppt plötzlich

ERROR - 2017-08-29T05:26:36.534Z] RouterReqHand - _handle.error -   
{"stack":"[email protected][native code]\[email protected]://platform/webpage.js:390:39\[email protected]://code/webelement_request_handler.js:341:90\[email protected]://code/webelement_request_handler.js:102:28\[email protected]://code/session_request_handler.js:61:20\[email protected]://code/session_request_handler.js:120:42\[email protected]://code/request_handler.js:61:20\[email protected]://code/router_request_handler.js:78:46","line":390,"sourceURL":"phantomjs://platform/webpage.js"} 


phantomjs://platform/console++.js:263 in error 
1 0x1b67967 phantomjs() [0x1b67967] 
2 0x1b800a9 phantomjs() [0x1b800a9] 
3 0x92035b phantomjs() [0x92035b] 
4 0x13b9e20 phantomjs() [0x13b9e20] 
5 0x13b9f2a phantomjs() [0x13b9f2a] 
6 0x13bb9c1 phantomjs() [0x13bb9c1] 
7 0x13bcaa4 phantomjs() [0x13bcaa4] 
8 0x13bcb6c phantomjs() [0x13bcb6c] 
9 0x97bf27 phantomjs() [0x97bf27] 
10 0x77e64b phantomjs() [0x77e64b] 
11 0x478dc4 phantomjs() [0x478dc4] 
12 0x47ad10 phantomjs() [0x47ad10] 
13 0x42d613 phantomjs() [0x42d613] 
14 0x425e34 phantomjs() [0x425e34] 
15 0x41b90c phantomjs() [0x41b90c] 
16 0x46ba0b phantomjs() [0x46ba0b] 
17 0x46c503 phantomjs() [0x46c503] 
18 0x7b6cad phantomjs() [0x7b6cad] 
19 0x17fd966 phantomjs() [0x17fd966] 
20 0x19db06e phantomjs() [0x19db06e] 
21 0x19e7b07 phantomjs() [0x19e7b07] 
22 0x19eed55 phantomjs() [0x19eed55] 
PhantomJS has crashed. Please read the bug reporting guide at 
<http://phantomjs.org/bug-reporting.html and file a bug report. 
+0

Ich vermute, der Prozess läuft nicht mehr aus dem Speicher, ich bin fasziniert zu wissen, was Use Case erfordert ein phantomJS Container für mehrere Tage ausgeführt werden? – CommodoreBeard

+0

wir haben den Service geplant, um eine Art von Website zu parsen. Zum Beispiel jede Stunde einmal analysieren. –

Antwort

0

Schwer zu sagen, was passiert. Sie können Ihren Container mit --restart=unless-stopped ausführen. Dies wird den Container neu starten, wenn es fehlschlägt.

Und da PhantomJS nicht mehr gepflegt wird, wird niemand Ihren Absturzbericht im Forum beantworten. Also am besten, nur von dem Problem zu erholen, wenn es passiert

+0

Danke Tarun, ich werde '-Restart-Own-Stoped' -Option versuchen. –