Brannydonowt / autoinsta

Python-Based Automated Instagram Accounts. Create and Grow Instagram Accounts Automatically.
MIT License
21 stars 3 forks source link

after deploy to heroku as docker container stack , get error below #5

Closed bugbounted closed 2 years ago

bugbounted commented 2 years ago

Hello again Brannydonowt, after deploy latest main commit to heroku giving error below on dyno runtime log:

2022-07-06T18:35:28.519514+00:00 app[web.1]: [WDM] - There is no [linux64] geckodriver for browser 102.0 in cache
2022-07-06T18:35:28.519543+00:00 app[web.1]: 2022-07-06 18:35:28,519 INFO There is no [linux64] geckodriver for browser 102.0 in cache
2022-07-06T18:35:28.519708+00:00 app[web.1]: [WDM] - Getting latest mozilla release info for v0.31.0
2022-07-06T18:35:28.519722+00:00 app[web.1]: 2022-07-06 18:35:28,519 INFO Getting latest mozilla release info for v0.31.0
2022-07-06T18:35:28.601687+00:00 app[web.1]: [WDM] - About to download new driver from https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
2022-07-06T18:35:28.601694+00:00 app[web.1]: 2022-07-06 18:35:28,601 INFO About to download new driver from https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
2022-07-06T18:35:28.798503+00:00 app[web.1]: [WDM] - Driver has been saved in cache [/.wdm/drivers/geckodriver/linux64/v0.31.0]
2022-07-06T18:35:28.798517+00:00 app[web.1]: 2022-07-06 18:35:28,798 INFO Driver has been saved in cache [/.wdm/drivers/geckodriver/linux64/v0.31.0]
2022-07-06T18:35:46.046079+00:00 app[web.1]: Failed to find element:  HoLwm
2022-07-06T18:35:46.046105+00:00 app[web.1]: Failed to navigate to home page.
2022-07-06T18:35:58.320264+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2022-07-06T18:35:58.450272+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-07-06T18:35:58.603174+00:00 heroku[web.1]: Process exited with status 137
2022-07-06T18:35:58.661612+00:00 heroku[web.1]: State changed from starting to crashed
2022-07-06T18:35:58.668946+00:00 heroku[web.1]: State changed from crashed to starting
2022-07-06T18:36:36.983742+00:00 heroku[web.1]: Starting process with command `/bin/sh -c exec\ python\ autoinsta/src/bot.py`
2022-07-06T18:37:14.312564+00:00 app[web.1]: initialized tiktok video helper
2022-07-06T18:37:14.312992+00:00 app[web.1]: Desired ID:  3
2022-07-06T18:37:14.312994+00:00 app[web.1]: Found a match for our desired video.
2022-07-06T18:37:14.312996+00:00 app[web.1]: #viral #satisfying #food #asmr #asmrsounds #oddlysatisfying #foodtiktok #relax #foryoupage #USA #cool #ideatimes #fyp #foryou #fypシ
2022-07-06T18:37:14.312996+00:00 app[web.1]: video author:  ideatimes
2022-07-06T18:37:14.312998+00:00 app[web.1]: hashtag string:  #viral #satisfying #food #asmr #asmrsounds #oddlysatisfying #foodtiktok #relax #foryoupage #usa #cool #ideatimes #fyp #foryou #fypシ
2022-07-06T18:37:14.312998+00:00 app[web.1]:  #viral #satisfying #food #asmr #asmrsounds #oddlysatisfying #foodtiktok #relax #foryoupage #usa #cool #ideatimes #fyp #foryou #fypシ
2022-07-06T18:37:14.312998+00:00 app[web.1]: 
2022-07-06T18:37:14.313003+00:00 app[web.1]: [WDM] - ====== WebDriver manager ======
2022-07-06T18:37:14.313004+00:00 app[web.1]: 2022-07-06 18:37:14,312 INFO ====== WebDriver manager ======
2022-07-06T18:37:14.365012+00:00 app[web.1]: [WDM] - Current firefox version is 102.0
2022-07-06T18:37:14.365048+00:00 app[web.1]: 2022-07-06 18:37:14,364 INFO Current firefox version is 102.0
2022-07-06T18:37:14.365090+00:00 app[web.1]: [WDM] - Get LATEST geckodriver version for 102.0 firefox
2022-07-06T18:37:14.365112+00:00 app[web.1]: 2022-07-06 18:37:14,365 INFO Get LATEST geckodriver version for 102.0 firefox
2022-07-06T18:37:14.543577+00:00 app[web.1]: [WDM] - There is no [linux64] geckodriver for browser 102.0 in cache
2022-07-06T18:37:14.543609+00:00 app[web.1]: 2022-07-06 18:37:14,543 INFO There is no [linux64] geckodriver for browser 102.0 in cache
2022-07-06T18:37:14.543644+00:00 app[web.1]: [WDM] - Getting latest mozilla release info for v0.31.0
2022-07-06T18:37:14.543667+00:00 app[web.1]: 2022-07-06 18:37:14,543 INFO Getting latest mozilla release info for v0.31.0
2022-07-06T18:37:14.621638+00:00 app[web.1]: [WDM] - About to download new driver from https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
2022-07-06T18:37:14.621674+00:00 app[web.1]: 2022-07-06 18:37:14,621 INFO About to download new driver from https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
2022-07-06T18:37:14.825830+00:00 app[web.1]: [WDM] - Driver has been saved in cache [/.wdm/drivers/geckodriver/linux64/v0.31.0]
2022-07-06T18:37:14.825858+00:00 app[web.1]: 2022-07-06 18:37:14,825 INFO Driver has been saved in cache [/.wdm/drivers/geckodriver/linux64/v0.31.0]
2022-07-06T18:37:34.035742+00:00 app[web.1]: Failed to find element:  HoLwm
2022-07-06T18:37:34.035752+00:00 app[web.1]: Failed to navigate to home page.
2022-07-06T18:37:37.863041+00:00 heroku[web.1]: Process exited with status 137
2022-07-06T18:37:37.501096+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2022-07-06T18:37:37.692663+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-07-06T18:37:37.963146+00:00 heroku[web.1]: State changed from starting to crashed

please solve it finest regards

Brannydonowt commented 2 years ago

Hi @elmirarokni,

Failed to find element: Holwm - may be resolved by my latest commit. Please test that and let me know.

I am unfamiliar with the Heroku environment, and why you may be getting Error R10. I will investigate a little and get back to you.

I won't dedicate too much time to solving this, as I have 0 experience with Heroku and would much rather develop new features at the moment.

Might I suggest running locally, or deploying via Docker.

Brannydonowt commented 2 years ago

https://stackoverflow.com/questions/10474911/heroku-boot-timeout-error-r10

Please refer to this post and apply any changes to your local environment if necessary