Instapy: Page crash

Created on 16 Apr 2017  路  4Comments  路  Source: timgrossmann/InstaPy

While everything works as expected on my MacBook, I鈥檓 not getting the script to run on my VPS:

links = get_links_for_tag(self.browser, tag, amount)
  File "/root/InstaPy/instapy/like_util.py", line 39, in get_links_for_tag
    body_elem.send_keys(Keys.HOME)
  File "/usr/lib/python2.7/site-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/remote/webelement.py", line 320, in send_keys
    self._execute(Command.SEND_KEYS_TO_ELEMENT, {'value': keys_to_typing(value)})
  File "/usr/lib/python2.7/site-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/remote/webelement.py", line 461, in _execute
    return self._parent.execute(command, params)
  File "/usr/lib/python2.7/site-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 236, in execute
    self.error_handler.check_response(response)
  File "/usr/lib/python2.7/site-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
  (Session info: chrome=57.0.2987.133)
  (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.9.15-x86_64-linode81 x86_64)

Is this due to my setup? Both ram and cpu seem to be powerful enough for InstaPy and Chrome.

Most helpful comment

I also had to upgrade from 1GB to 2GB. @timgrossmann perhaps consider rephrasing the Ubuntu guide to specify the 2GB droplet.聽

PS. This is awesome mate - great work.

All 4 comments

Make sure that pyvirtualdisplay is working, that Chrome runs and that machine and that the machine have resources for that.

Not an instapy related issue.

Make sure you have > 1GB RAM...

@tibor Please give any feedback if the issue is solved!

Yeah, works now with 2GB RAM. I first tried it with the 1GB version as it was mentioned in the quickstart guide, but that seems to be too less.

I also had to upgrade from 1GB to 2GB. @timgrossmann perhaps consider rephrasing the Ubuntu guide to specify the 2GB droplet.聽

PS. This is awesome mate - great work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seuraltimez picture seuraltimez  路  3Comments

46960 picture 46960  路  3Comments

ghost picture ghost  路  3Comments

ingorichter picture ingorichter  路  3Comments

neomh picture neomh  路  3Comments