Skip to content

Instantly share code, notes, and snippets.

@fcschmidt
Created June 6, 2018 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcschmidt/ff3fa00299a4b40fbf260765b34e85cc to your computer and use it in GitHub Desktop.
Save fcschmidt/ff3fa00299a4b40fbf260765b34e85cc to your computer and use it in GitHub Desktop.
Heroku logs - webdriver error
2018-06-06T16:15:20.723444+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2018-06-06T16:15:20.723446+00:00 app[web.1]:
2018-06-06T16:15:20.723447+00:00 app[web.1]: Traceback (most recent call last):
2018-06-06T16:15:20.723448+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
2018-06-06T16:15:20.723449+00:00 app[web.1]: response = self.full_dispatch_request()
2018-06-06T16:15:20.723453+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
2018-06-06T16:15:20.723454+00:00 app[web.1]: rv = self.handle_user_exception(e)
2018-06-06T16:15:20.723455+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
2018-06-06T16:15:20.723456+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2018-06-06T16:15:20.723457+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
2018-06-06T16:15:20.723458+00:00 app[web.1]: raise value
2018-06-06T16:15:20.723459+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
2018-06-06T16:15:20.723461+00:00 app[web.1]: rv = self.dispatch_request()
2018-06-06T16:15:20.723462+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
2018-06-06T16:15:20.723464+00:00 app[web.1]: return self.view_functions[rule.endpoint](**req.view_args)
2018-06-06T16:15:20.723465+00:00 app[web.1]: File "/app/pergamum/api/my_pergamum_api.py", line 15, in post_login_my_pergamum
2018-06-06T16:15:20.723466+00:00 app[web.1]: session = PergamumCrawler()
2018-06-06T16:15:20.723467+00:00 app[web.1]: File "/app/spyders/pergamum_crawler.py", line 22, in __init__
2018-06-06T16:15:20.723468+00:00 app[web.1]: chrome_options=options)
2018-06-06T16:15:20.723470+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__
2018-06-06T16:15:20.723471+00:00 app[web.1]: self.service.start()
2018-06-06T16:15:20.723472+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 86, in start
2018-06-06T16:15:20.723473+00:00 app[web.1]: os.path.basename(self.path), self.start_error_message)
2018-06-06T16:15:20.723477+00:00 app[web.1]: selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
2018-06-06T16:15:20.723484+00:00 app[web.1]:
2018-06-06T16:15:20.724131+00:00 app[web.1]: 10.164.5.30 - - [06/Jun/2018 16:15:20] "POST /api/user HTTP/1.1" 500 -
2018-06-06T16:15:22.686955+00:00 heroku[router]: at=info method=POST path="/api/user" host=my-pergamum.herokuapp.com request_id=636b3a8b-2864-49d5-bd7b-256a5daca74e fwd="177.105.38.161" dyno=web.1 connect=1ms service=7ms status=500 bytes=450 protocol=https
2018-06-06T16:15:22.684012+00:00 app[web.1]: [2018-06-06 16:15:22,683] ERROR in app: Exception on /api/user [POST]
2018-06-06T16:15:22.684029+00:00 app[web.1]: Traceback (most recent call last):
2018-06-06T16:15:22.684035+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/subprocess.py", line 709, in __init__
2018-06-06T16:15:22.684032+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 74, in start
2018-06-06T16:15:22.684033+00:00 app[web.1]: stdout=self.log_file, stderr=self.log_file)
2018-06-06T16:15:22.684037+00:00 app[web.1]: restore_signals, start_new_session)
2018-06-06T16:15:22.684039+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/subprocess.py", line 1344, in _execute_child
2018-06-06T16:15:22.684041+00:00 app[web.1]: raise child_exception_type(errno_num, err_msg, err_filename)
2018-06-06T16:15:22.684043+00:00 app[web.1]: PermissionError: [Errno 13] Permission denied: 'chromedriver/chromedriver'
2018-06-06T16:15:22.684045+00:00 app[web.1]:
2018-06-06T16:15:22.684046+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2018-06-06T16:15:22.684048+00:00 app[web.1]:
2018-06-06T16:15:22.684049+00:00 app[web.1]: Traceback (most recent call last):
2018-06-06T16:15:22.684051+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
2018-06-06T16:15:22.684053+00:00 app[web.1]: response = self.full_dispatch_request()
2018-06-06T16:15:22.684055+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
2018-06-06T16:15:22.684059+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
2018-06-06T16:15:22.684057+00:00 app[web.1]: rv = self.handle_user_exception(e)
2018-06-06T16:15:22.684064+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2018-06-06T16:15:22.684065+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
2018-06-06T16:15:22.684067+00:00 app[web.1]: raise value
2018-06-06T16:15:22.684068+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
2018-06-06T16:15:22.684070+00:00 app[web.1]: rv = self.dispatch_request()
2018-06-06T16:15:22.684072+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
2018-06-06T16:15:22.684074+00:00 app[web.1]: return self.view_functions[rule.endpoint](**req.view_args)
2018-06-06T16:15:22.684075+00:00 app[web.1]: File "/app/pergamum/api/my_pergamum_api.py", line 15, in post_login_my_pergamum
2018-06-06T16:15:22.684077+00:00 app[web.1]: session = PergamumCrawler()
2018-06-06T16:15:22.684079+00:00 app[web.1]: File "/app/spyders/pergamum_crawler.py", line 22, in __init__
2018-06-06T16:15:22.684080+00:00 app[web.1]: chrome_options=options)
2018-06-06T16:15:22.684082+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__
2018-06-06T16:15:22.684084+00:00 app[web.1]: self.service.start()
2018-06-06T16:15:22.684085+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 86, in start
2018-06-06T16:15:22.684087+00:00 app[web.1]: os.path.basename(self.path), self.start_error_message)
2018-06-06T16:15:22.684089+00:00 app[web.1]: selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
2018-06-06T16:15:22.684098+00:00 app[web.1]:
2018-06-06T16:15:22.684595+00:00 app[web.1]: 10.101.153.165 - - [06/Jun/2018 16:15:22] "POST /api/user HTTP/1.1" 500 -
2018-06-06T16:15:27.690744+00:00 app[web.1]: [2018-06-06 16:15:27,689] ERROR in app: Exception on /api/user [POST]
2018-06-06T16:15:27.690760+00:00 app[web.1]: Traceback (most recent call last):
2018-06-06T16:15:27.690762+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 74, in start
2018-06-06T16:15:27.690764+00:00 app[web.1]: stdout=self.log_file, stderr=self.log_file)
2018-06-06T16:15:27.690765+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/subprocess.py", line 709, in __init__
2018-06-06T16:15:27.690767+00:00 app[web.1]: restore_signals, start_new_session)
2018-06-06T16:15:27.690769+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/subprocess.py", line 1344, in _execute_child
2018-06-06T16:15:27.690770+00:00 app[web.1]: raise child_exception_type(errno_num, err_msg, err_filename)
2018-06-06T16:15:27.690772+00:00 app[web.1]: PermissionError: [Errno 13] Permission denied: 'chromedriver/chromedriver'
2018-06-06T16:15:27.690774+00:00 app[web.1]:
2018-06-06T16:15:27.690775+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2018-06-06T16:15:27.690777+00:00 app[web.1]:
2018-06-06T16:15:27.690778+00:00 app[web.1]: Traceback (most recent call last):
2018-06-06T16:15:27.690780+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
2018-06-06T16:15:27.690781+00:00 app[web.1]: response = self.full_dispatch_request()
2018-06-06T16:15:27.690783+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
2018-06-06T16:15:27.690785+00:00 app[web.1]: rv = self.handle_user_exception(e)
2018-06-06T16:15:27.690786+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
2018-06-06T16:15:27.690788+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2018-06-06T16:15:27.690790+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
2018-06-06T16:15:27.690791+00:00 app[web.1]: raise value
2018-06-06T16:15:27.690793+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
2018-06-06T16:15:27.690794+00:00 app[web.1]: rv = self.dispatch_request()
2018-06-06T16:15:27.690795+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
2018-06-06T16:15:27.690797+00:00 app[web.1]: return self.view_functions[rule.endpoint](**req.view_args)
2018-06-06T16:15:27.690799+00:00 app[web.1]: File "/app/pergamum/api/my_pergamum_api.py", line 15, in post_login_my_pergamum
2018-06-06T16:15:27.690801+00:00 app[web.1]: session = PergamumCrawler()
2018-06-06T16:15:27.690802+00:00 app[web.1]: File "/app/spyders/pergamum_crawler.py", line 22, in __init__
2018-06-06T16:15:27.690804+00:00 app[web.1]: chrome_options=options)
2018-06-06T16:15:27.690805+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__
2018-06-06T16:15:27.690807+00:00 app[web.1]: self.service.start()
2018-06-06T16:15:27.690809+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 86, in start
2018-06-06T16:15:27.690810+00:00 app[web.1]: os.path.basename(self.path), self.start_error_message)
2018-06-06T16:15:27.690812+00:00 app[web.1]: selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
2018-06-06T16:15:27.690913+00:00 app[web.1]:
2018-06-06T16:15:27.691996+00:00 app[web.1]: 10.93.210.26 - - [06/Jun/2018 16:15:27] "POST /api/user HTTP/1.1" 500 -
2018-06-06T16:15:27.692672+00:00 heroku[router]: at=info method=POST path="/api/user" host=my-pergamum.herokuapp.com request_id=6d216c8e-b0d2-4776-9e57-b4fc2bf79fc6 fwd="177.105.38.161" dyno=web.1 connect=2ms service=12ms status=500 bytes=450 protocol=https
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment