Was able to push the app with no issues but when try to access the app using the provided url (randomname.herokuapp.com) I get an error and when trying to get more details, this is part of what I get when I type heroku logs --tail
:
line 525, in reap_workers
2021-06-22T20:14:16.545426+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2021-06-22T20:14:16.545426+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2021-06-22T20:14:16.642285+00:00 heroku[web.1]: Process exited with status 1
2021-06-22T20:14:16.769100+00:00 heroku[web.1]: State changed from starting to crashed
2021-06-22T20:14:38.349399+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mooddetection.herokuapp.com request_id=7b53a355-7ab8-4bd3-b412-7adb57be7b44 fwd="24.3.214.102" dyno= connect= service= status=503 bytes= protocol=https
After some research I was advised to get into a more detail issue by typying gunicorn app:application --preload -b 0.0.0.0:5000
and this is what I got:
Traceback (most recent call last):
File "c:\users\gucas\anaconda3\envs\emotion_env\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\gucas\anaconda3\envs\emotion_env\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\gucas\anaconda3\envs\emotion_env\Scripts\gunicorn.exe\__main__.py", line 4, in <module>
File "c:\users\gucas\anaconda3\envs\emotion_env\lib\site-packages\gunicorn\app\wsgiapp.py", line 9, in <module>
from gunicorn.app.base import Application
File "c:\users\gucas\anaconda3\envs\emotion_env\lib\site-packages\gunicorn\app\base.py", line 11, in <module>
from gunicorn import util
File "c:\users\gucas\anaconda3\envs\emotion_env\lib\site-packages\gunicorn\util.py", line 8, in <module>
import fcntl
ModuleNotFoundError: No module named 'fcntl'
I am stuck at this point since most of my findings are related to Django or running gunicorn in windows which is not my case. I just have a flask app that I want to deploy into heroku using a requirement.txt file that was apparently done with no issues.
Please advise what to do.
Much appreciated!