Closed dish34 closed 4 years ago
Hi there!
Do you mind posting the error log containing the application error? You can fetch it by following these instructions.
2020-02-12T13:33:50.536408+00:00 app[web.1]: [2020-02-12 13:33:50 +0000] [10] [INFO] Booting worker with pid: 10
2020-02-12T13:33:50.553406+00:00 app[web.1]: [2020-02-12 13:33:50 +0000] [11] [INFO] Booting worker with pid: 11
2020-02-12T13:33:52.048896+00:00 heroku[web.1]: State changed from starting to up
2020-02-12T13:33:51.981025+00:00 app[web.1]: [nltk_data] Downloading package stopwords to /app/nltk_data...
2020-02-12T13:33:51.991750+00:00 app[web.1]: [nltk_data]
Unzipping corpora/stopwords.zip.
2020-02-12T13:33:52.002201+00:00 app[web.1]: [nltk_data] Downloading package averaged_perceptron_tagger to
2020-02-12T13:33:52.002214+00:00 app[web.1]: [nltk_data]
/app/nltk_data...
2020-02-12T13:33:52.132708+00:00 app[web.1]: [nltk_data]
Unzipping taggers/averaged_perceptron_tagger.zip.
2020-02-12T13:33:52.195958+00:00 app[web.1]: [nltk_data] Downloading package stopwords to /app/nltk_data...
2020-02-12T13:33:52.197297+00:00 app[web.1]: [nltk_data]
Package stopwords is already up-to-date!
2020-02-12T13:33:52.198492+00:00 app[web.1]: [nltk_data] Downloading package averaged_perceptron_tagger to
2020-02-12T13:33:52.200547+00:00 app[web.1]: [nltk_data]
/app/nltk_data...
2020-02-12T13:33:52.237664+00:00 app[web.1]: [nltk_data] Downloading package wordnet to /app/nltk_data...
2020-02-12T13:33:52.304402+00:00 app[web.1]: [nltk_data]
Unzipping taggers/averaged_perceptron_tagger.zip.
2020-02-12T13:33:52.390499+00:00 app[web.1]: [2020-02-12 13:33:52 +0000] [10] [ERROR] Exception in worker process
2020-02-12T13:33:52.390502+00:00 app[web.1]: Traceback (most recent call last):
2020-02-12T13:33:52.390511+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/chatterbot/utils.py", line 108, in nltk_download_corpus
2020-02-12T13:33:52.390512+00:00 app[web.1]: find(resource_path)
2020-02-12T13:33:52.390512+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/data.py", line 673, in find
2020-02-12T13:33:52.390513+00:00 app[web.1]: return find(modified_name, paths)
2020-02-12T13:33:52.390513+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/data.py", line 660, in find
2020-02-12T13:33:52.390513+00:00 app[web.1]: return ZipFilePathPointer(p, zipentry)
2020-02-12T13:33:52.390514+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/compat.py",
line 228, in _decorator
2020-02-12T13:33:52.390514+00:00 app[web.1]: return init_func(*args, *kwargs)
2020-02-12T13:33:52.390514+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/data.py", line 506, in init
2020-02-12T13:33:52.390515+00:00 app[web.1]: zipfile = OpenOnDemandZipFile(os.path.abspath(zipfile))
2020-02-12T13:33:52.390516+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/compat.py",
line 228, in _decorator
2020-02-12T13:33:52.390517+00:00 app[web.1]: return init_func(args, **kwargs)
2020-02-12T13:33:52.390517+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/data.py", line 1055, in init
2020-02-12T13:33:52.390517+00:00 app[web.1]: zipfile.ZipFile.init(self, filename)
2020-02-12T13:33:52.390518+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/zipfile.py", line 1131, in init
2020-02-12T13:33:52.390518+00:00 app[web.1]: self._RealGetContents()
2020-02-12T13:33:52.390519+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/zipfile.py", line 1198, in _RealGetContents
2020-02-12T13:33:52.390519+00:00 app[web.1]: raise BadZipFile("File is not a zip file")
2020-02-12T13:33:52.390520+00:00 app[web.1]: zipfile.BadZipFile: File is not a zip file
2020-02-12T13:33:52.390520+00:00 app[web.1]:
2020-02-12T13:33:52.390520+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2020-02-12T13:33:52.390521+00:00 app[web.1]:
2020-02-12T13:33:52.390521+00:00 app[web.1]: Traceback (most recent call last):
2020-02-12T13:33:52.390522+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-12T13:33:52.390522+00:00 app[web.1]: worker.init_process()
2020-02-12T13:33:52.390522+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-02-12T13:33:52.390523+00:00 app[web.1]: self.load_wsgi()
2020-02-12T13:33:52.390523+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-02-12T13:33:52.390524+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-12T13:33:52.390524+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-12T13:33:52.390524+00:00 app[web.1]: self.callable = self.load()
2020-02-12T13:33:52.390525+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-12T13:33:52.390525+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-12T13:33:52.390525+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-02-12T13:33:52.390525+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-12T13:33:52.390526+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-12T13:33:52.390526+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-12T13:33:52.390526+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-12T13:33:52.390527+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-12T13:33:52.390527+00:00 app[web.1]: File "
2020-02-12T13:33:52.390528+00:00 app[web.1]: File "
2020-02-12T13:33:52.390529+00:00 app[web.1]: File "
2020-02-12T13:33:52.599680+00:00 app[web.1]: [nltk_data]
Unzipping corpora/wordnet.zip.
2020-02-12T13:33:57.715841+00:00 app[web.1]:
2020-02-12T13:33:57.789929+00:00 app[web.1]:
2020-02-12T13:33:57.820785+00:00 app[web.1]:
2020-02-12T13:33:57.843267+00:00 app[web.1]:
2020-02-12T13:33:57.872111+00:00 app[web.1]:
2020-02-12T13:33:57.958764+00:00 app[web.1]:
2020-02-12T13:33:58.032303+00:00 app[web.1]:
2020-02-12T13:33:58.180185+00:00 app[web.1]:
2020-02-12T13:33:58.247199+00:00 app[web.1]:
2020-02-12T13:33:58.293042+00:00 app[web.1]:
2020-02-12T13:33:58.317814+00:00 app[web.1]:
2020-02-12T13:33:58.339872+00:00 app[web.1]:
2020-02-12T13:33:58.360106+00:00 app[web.1]:
2020-02-12T13:33:58.378999+00:00 app[web.1]:
2020-02-12T13:33:58.399211+00:00 app[web.1]:
2020-02-12T13:33:58.416232+00:00 app[web.1]:
2020-02-12T13:33:58.427296+00:00 app[web.1]: [2020-02-12 13:33:58 +0000] [11] [INFO] Worker exiting (pid: 11)
2020-02-12T13:33:58.778959+00:00 app[web.1]: [2020-02-12 13:33:58 +0000] [4] [INFO] Shutting down: Master
2020-02-12T13:33:58.779054+00:00 app[web.1]: [2020-02-12 13:33:58 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-02-12T13:33:58.876491+00:00 heroku[web.1]: State changed from up to crashed
2020-02-12T13:33:58.859930+00:00 heroku[web.1]: Process exited with status 3
2020-02-12T13:45:31.111067+00:00 heroku[router]: at=error
code=H10 desc="App crashed" method=GET path="/" host=alphabot2.herokuapp.com request_id=3e7301fc-91d4-4704-a0d1-ce03706c97f7 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T13:45:33.897918+00:00 heroku[router]: at=error
code=H10 desc="App crashed" method=GET path="/" host=alphabot2.herokuapp.com request_id=0324c9e6-5087-4683-beb7-7d548f02a2d7 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T13:45:37.466407+00:00 heroku[router]: at=error
code=H10 desc="App crashed" method=GET path="/favicon.ico" host=alphabot2.herokuapp.com request_id=06286273-507a-4eab-900d-f0172e15aec8 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T13:48:36.342468+00:00 heroku[router]: at=error
code=H10 desc="App crashed" method=GET path="/" host=alphabot2.herokuapp.com request_id=8ba604b1-6dda-40d9-b817-f62b47c5c6e1 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T13:48:39.318739+00:00 heroku[router]: at=error
code=H10 desc="App crashed" method=GET path="/favicon.ico" host=alphabot2.herokuapp.com request_id=65f26f3f-bcca-43a3-bb98-201f25061834 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
it's working now.
I added a nltk.txt file with:
wordnet
stopwords
punkt
vader_lexicon
thanks @chamkank
Application error occurred again. Please check.
2020-02-12T17:04:12.566050+00:00 app[web.1]: Traceback (most recent call last):
2020-02-12T17:04:12.566051+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-12T17:04:12.566052+00:00 app[web.1]: worker.init_process()
2020-02-12T17:04:12.566052+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-02-12T17:04:12.566054+00:00 app[web.1]: self.load_wsgi()
2020-02-12T17:04:12.566055+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-02-12T17:04:12.566055+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-12T17:04:12.566056+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-12T17:04:12.566056+00:00 app[web.1]: self.callable = self.load()
2020-02-12T17:04:12.566057+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-12T17:04:12.566057+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-12T17:04:12.566058+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-02-12T17:04:12.566058+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-12T17:04:12.566058+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-12T17:04:12.566059+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-12T17:04:12.566059+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-12T17:04:12.566060+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-12T17:04:12.566060+00:00 app[web.1]: File "
2020-02-12T17:04:12.566061+00:00 app[web.1]: File "
2020-02-12T17:04:12.566061+00:00 app[web.1]: File "
2020-02-12T17:04:18.173845+00:00 app[web.1]: [2020-02-12 17:04:18 +0000] [4] [INFO] Shutting down: Master2020-02-12T17:04:18.173974+00:00 app[web.1]: [2020-02-12 17:04:18 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-02-12T17:04:18.268855+00:00 heroku[web.1]: State changed from up to crashed
2020-02-12T17:04:18.247772+00:00 heroku[web.1]: Process exited with status 3
2020-02-12T17:04:19.273315+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=alphabot2.herokuapp.com request_id=1e4b4bd1-2405-4bbe-b183-841cefbadf8e fwd="47.30.165.152" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:04:20.936055+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=alphabot2.herokuapp.com request_id=cd818734-d15a-4aa0-a8b9-0e206551509b fwd="47.30.165.152" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:04:21.811628+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=alphabot2.herokuapp.com request_id=36e65ee1-8c60-46fe-a69c-c3ace45e9134 fwd="47.30.165.152" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:04:26.292330+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=alphabot2.herokuapp.com request_id=5213c783-9265-4e43-98e7-d46df0734a53 fwd="47.30.165.152" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:04:26.780175+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=alphabot2.herokuapp.com request_id=30f7542d-697c-4dbb-b34d-8c2e4c595bae fwd="47.30.165.152" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:05:43.477405+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=alphabot2.herokuapp.com request_id=b65a15ba-a1c1-43fe-b48e-b6fbde49900e fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:05:45.658721+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=alphabot2.herokuapp.com request_id=5816ff6f-3153-4d74-989a-05340c188880 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:05:57.689689+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=alphabot2.herokuapp.com request_id=804a9d72-5522-415d-a076-50a417ba89e0 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:05:59.828637+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=alphabot2.herokuapp.com request_id=16f7a1ed-6b3f-4eb4-849c-c4cd2dfbfa4e fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:07:14.626098+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=alphabot2.herokuapp.com request_id=0f072ad3-9b6f-41ec-9099-d3e45ec2e306 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
2020-02-12T17:07:17.071621+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=alphabot2.herokuapp.com request_id=62bdfc33-e900-4113-b5e0-05670c3a92e9 fwd="59.94.175.194" dyno= connect= service= status=503 bytes= protocol=https
@dish34 Thanks for the details! This should fix your problem, let me know how it goes.
It works sometimes after reload.
(MyflaskEnv) C:\Users\yashv\Desktop\flaskchatbot>heroku logs --tail
2020-02-14T01:09:29.425944+00:00 app[web.1]: [2020-02-14 01:09:29 +0000] [4] [INFO] Listening at: http://0.0.0.0:52981 (4)
2020-02-14T01:09:29.426115+00:00 app[web.1]: [2020-02-14 01:09:29 +0000] [4] [INFO] Using worker: sync
2020-02-14T01:09:29.441304+00:00 app[web.1]: [2020-02-14 01:09:29 +0000] [10] [INFO] Booting worker with
pid: 10
2020-02-14T01:09:29.494952+00:00 app[web.1]: [2020-02-14 01:09:29 +0000] [11] [INFO] Booting worker with
pid: 11
2020-02-14T01:09:30.201432+00:00 heroku[web.1]: State changed from starting to up
2020-02-14T01:09:31.292320+00:00 app[web.1]: [nltk_data] Downloading package stopwords to
2020-02-14T01:09:31.292417+00:00 app[web.1]: [nltk_data] /app/.heroku/python/nltk_data...
2020-02-14T01:09:31.293551+00:00 app[web.1]: [nltk_data] Package stopwords is already up-to-date!
2020-02-14T01:09:31.295102+00:00 app[web.1]: [nltk_data] Downloading package averaged_perceptron_tagger to
2020-02-14T01:09:31.295139+00:00 app[web.1]: [nltk_data] /app/.heroku/python/nltk_data...
2020-02-14T01:09:31.332200+00:00 app[web.1]: [nltk_data] Downloading package stopwords to
2020-02-14T01:09:31.332209+00:00 app[web.1]: [nltk_data] /app/.heroku/python/nltk_data...
2020-02-14T01:09:31.333167+00:00 app[web.1]: [nltk_data] Package stopwords is already up-to-date!
2020-02-14T01:09:31.334481+00:00 app[web.1]: [nltk_data] Downloading package averaged_perceptron_tagger to
2020-02-14T01:09:31.334516+00:00 app[web.1]: [nltk_data] /app/.heroku/python/nltk_data...
2020-02-14T01:09:31.437871+00:00 app[web.1]: [nltk_data] Unzipping taggers/averaged_perceptron_tagger.zip.
2020-02-14T01:09:31.438366+00:00 app[web.1]: [nltk_data] Error with downloaded zip file
2020-02-14T01:09:31.450955+00:00 app[web.1]:
2020-02-14T01:09:31.450956+00:00 app[web.1]: Traceback (most recent call last):
2020-02-14T01:09:31.450957+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-14T01:09:31.450958+00:00 app[web.1]: worker.init_process()
2020-02-14T01:09:31.450958+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-02-14T01:09:31.450958+00:00 app[web.1]: self.load_wsgi()
2020-02-14T01:09:31.450959+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-02-14T01:09:31.450959+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-14T01:09:31.450960+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-14T01:09:31.450960+00:00 app[web.1]: self.callable = self.load()
2020-02-14T01:09:31.450961+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-14T01:09:31.450961+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-14T01:09:31.450961+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-02-14T01:09:31.450962+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-14T01:09:31.450962+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-14T01:09:31.450962+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-14T01:09:31.450963+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-14T01:09:31.450963+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-14T01:09:31.450964+00:00 app[web.1]: File "
When I deployed flask chatterbot app to heroku it was working fine then after some time an application error came.