y-young / nazurin

🎉 Images collection done right. Telegram 图片收藏机器人 / A Telegram bot that helps you collect ACG illustrations.
http://nazurin.readthedocs.io
MIT License
261 stars 58 forks source link

heroku 部署失败 #13

Closed bottomash closed 3 years ago

bottomash commented 3 years ago

部署四次,均为失败状态、

y-young commented 3 years ago

部署四次,均为失败状态、

请提供命令行输出的错误信息或网页端的日志以便排查错误

bottomash commented 3 years ago

-----> Building on the Heroku-20 stack -----> Python app detected ! Python has released a security update! Please consider upgrading to python-3.8.8 Learn More: https://devcenter.heroku.com/articles/python-runtimes -----> Installing python-3.8.7 -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2 -----> Installing SQLite3 -----> Installing requirements with pip Collecting python-telegram-bot Downloading python_telegram_bot-13.3-py3-none-any.whl (436 kB) Collecting pixivpy>=3.5.10 Downloading PixivPy-3.5.10-py3-none-any.whl (17 kB) Collecting beautifulsoup4 Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB) Collecting Pybooru Downloading Pybooru-4.2.2-py2.py3-none-any.whl (22 kB) Collecting tinydb Downloading tinydb-4.4.0-py3-none-any.whl (21 kB) Collecting firebase-admin Downloading firebase_admin-4.5.2-py3-none-any.whl (111 kB) Collecting pymongo Downloading pymongo-3.11.3-cp38-cp38-manylinux2014_x86_64.whl (531 kB) Collecting dnspython Downloading dnspython-2.1.0-py3-none-any.whl (241 kB) Collecting cloudant Downloading cloudant-2.14.0.tar.gz (61 kB) Collecting mega.py Downloading mega.py-1.0.8-py2.py3-none-any.whl (19 kB) Collecting PyDrive2 Downloading PyDrive2-1.8.0-py2.py3-none-any.whl (32 kB) Collecting pytz>=2018.6 Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB) Collecting APScheduler==3.6.3 Downloading APScheduler-3.6.3-py2.py3-none-any.whl (58 kB) Collecting tornado>=5.1 Downloading tornado-6.1-cp38-cp38-manylinux2010_x86_64.whl (427 kB) Collecting certifi Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB) Collecting requests-toolbelt>=0.9.1 Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB) Collecting requests>=2.0 Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB) Collecting cloudscraper>=1.0 Downloading cloudscraper-1.2.56-py2.py3-none-any.whl (96 kB) Collecting soupsieve>1.2; python_version >= "3.0" Downloading soupsieve-2.2-py3-none-any.whl (33 kB) Collecting google-cloud-firestore>=1.4.0; platform_python_implementation != "PyPy" Downloading google_cloud_firestore-2.0.2-py2.py3-none-any.whl (196 kB) Collecting cachecontrol>=0.12.6 Downloading CacheControl-0.12.6-py2.py3-none-any.whl (19 kB) Collecting google-api-core[grpc]<2.0.0dev,>=1.14.0; platform_python_implementation != "PyPy" Downloading google_api_core-1.26.0-py2.py3-none-any.whl (92 kB) Collecting google-cloud-storage>=1.18.0 Downloading google_cloud_storage-1.36.1-py2.py3-none-any.whl (97 kB) Collecting google-api-python-client>=1.7.8 Downloading google_api_python_client-1.12.8-py2.py3-none-any.whl (61 kB) Collecting pathlib==1.0.1 Downloading pathlib-1.0.1.tar.gz (49 kB) Collecting pycryptodome<4.0.0,>=3.9.6 Downloading pycryptodome-3.10.1-cp35-abi3-manylinux2010_x86_64.whl (1.9 MB) Collecting tenacity<6.0.0,>=5.1.5 Downloading tenacity-5.1.5-py2.py3-none-any.whl (34 kB) Collecting six>=1.13.0 Downloading six-1.15.0-py2.py3-none-any.whl (10 kB) Collecting PyYAML>=3.0 Downloading PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB) Collecting oauth2client>=4.0.0 Downloading oauth2client-4.1.3-py2.py3-none-any.whl (98 kB) Collecting pyOpenSSL>=19.1.0 Downloading pyOpenSSL-20.0.1-py2.py3-none-any.whl (54 kB) Collecting tzlocal>=1.2 Downloading tzlocal-2.1-py2.py3-none-any.whl (16 kB) Collecting urllib3<1.27,>=1.21.1 Downloading urllib3-1.26.3-py2.py3-none-any.whl (137 kB) Collecting chardet<5,>=3.0.2 Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB) Collecting idna<3,>=2.5 Downloading idna-2.10-py2.py3-none-any.whl (58 kB) Collecting pyparsing>=2.4.7 Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) Collecting proto-plus>=1.3.0 Downloading proto-plus-1.13.0.tar.gz (44 kB) Collecting google-cloud-core<2.0dev,>=1.4.1 Downloading google_cloud_core-1.6.0-py2.py3-none-any.whl (28 kB) Collecting msgpack>=0.5.2 Downloading msgpack-1.0.2-cp38-cp38-manylinux1_x86_64.whl (302 kB) Collecting googleapis-common-protos<2.0dev,>=1.6.0 Downloading googleapis_common_protos-1.52.0-py2.py3-none-any.whl (100 kB) Collecting packaging>=14.3 Downloading packaging-20.9-py2.py3-none-any.whl (40 kB) Collecting protobuf>=3.12.0 Downloading protobuf-3.15.2-cp38-cp38-manylinux1_x86_64.whl (1.0 MB) Collecting google-auth<2.0dev,>=1.21.1 Downloading google_auth-1.27.0-py2.py3-none-any.whl (135 kB) Collecting grpcio<2.0dev,>=1.29.0; extra == "grpc" Downloading grpcio-1.35.0-cp38-cp38-manylinux2014_x86_64.whl (4.1 MB) Collecting google-resumable-media<2.0dev,>=1.2.0 Downloading google_resumable_media-1.2.0-py2.py3-none-any.whl (75 kB) Collecting google-auth-httplib2>=0.0.3 Downloading google_auth_httplib2-0.0.4-py2.py3-none-any.whl (9.1 kB) Collecting uritemplate<4dev,>=3.0.0 Downloading uritemplate-3.0.1-py2.py3-none-any.whl (15 kB) Collecting httplib2<1dev,>=0.15.0 Downloading httplib2-0.19.0-py3-none-any.whl (95 kB) Collecting rsa>=3.1.4 Downloading rsa-4.7.2-py3-none-any.whl (34 kB) Collecting pyasn1>=0.1.7 Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) Collecting pyasn1-modules>=0.0.5 Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB) Collecting cryptography>=3.2 Downloading cryptography-3.4.6-cp36-abi3-manylinux2014_x86_64.whl (3.2 MB) Collecting cachetools<5.0,>=2.0.0 Downloading cachetools-4.2.1-py3-none-any.whl (12 kB) Collecting google-crc32c<2.0dev,>=1.0; python_version >= "3.5" Downloading google_crc32c-1.1.2-cp38-cp38-manylinux2014_x86_64.whl (38 kB) Collecting cffi>=1.12 Downloading cffi-1.14.5-cp38-cp38-manylinux1_x86_64.whl (411 kB) Collecting pycparser Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB) Building wheels for collected packages: cloudant, pathlib, proto-plus Building wheel for cloudant (setup.py): started Building wheel for cloudant (setup.py): finished with status 'done' Created wheel for cloudant: filename=cloudant-2.14.0-py3-none-any.whl size=75193 sha256=2be26bc55002774baf9ba46b227b78643d905ca839ffc94557f3481c67c654ed Stored in directory: /tmp/pip-ephem-wheel-cache-v7bwk84a/wheels/ee/5f/f5/35de12a247e01110c89054ea38ad435931eb9989e9dbf1de5f Building wheel for pathlib (setup.py): started Building wheel for pathlib (setup.py): finished with status 'done' Created wheel for pathlib: filename=pathlib-1.0.1-py3-none-any.whl size=14346 sha256=09902a8d945dff5054fc7279e041e58dcc0bf79883e0107328498848aea38146 Stored in directory: /tmp/pip-ephem-wheel-cache-v7bwk84a/wheels/59/02/2f/ff4a3e16a518feb111ae1405908094483ef56fec0dfa39e571 Building wheel for proto-plus (setup.py): started Building wheel for proto-plus (setup.py): finished with status 'done' Created wheel for proto-plus: filename=proto_plus-1.13.0-py3-none-any.whl size=41591 sha256=203ea3cba21aba644b4f8a5d15d82a6d680350aab7a11be845e5598fd3f8a34d Stored in directory: /tmp/pip-ephem-wheel-cache-v7bwk84a/wheels/c4/f7/51/d264693ef5a67296bb5601bca5834f5d5b12e325eb4b2d3f7f Successfully built cloudant pathlib proto-plus Installing collected packages: pytz, six, tzlocal, APScheduler, tornado, certifi, python-telegram-bot, urllib3, chardet, idna, requests, requests-toolbelt, pyparsing, cloudscraper, pixivpy, soupsieve, beautifulsoup4, Pybooru, tinydb, protobuf, proto-plus, googleapis-common-protos, packaging, pyasn1, pyasn1-modules, cachetools, rsa, google-auth, grpcio, google-api-core, google-cloud-core, google-cloud-firestore, msgpack, cachecontrol, pycparser, cffi, google-crc32c, google-resumable-media, google-cloud-storage, httplib2, google-auth-httplib2, uritemplate, google-api-python-client, firebase-admin, pymongo, dnspython, cloudant, pathlib, pycryptodome, tenacity, mega.py, PyYAML, oauth2client, cryptography, pyOpenSSL, PyDrive2 Successfully installed APScheduler-3.6.3 PyDrive2-1.8.0 PyYAML-5.4.1 Pybooru-4.2.2 beautifulsoup4-4.9.3 cachecontrol-0.12.6 cachetools-4.2.1 certifi-2020.12.5 cffi-1.14.5 chardet-4.0.0 cloudant-2.14.0 cloudscraper-1.2.56 cryptography-3.4.6 dnspython-2.1.0 firebase-admin-4.5.2 google-api-core-1.26.0 google-api-python-client-1.12.8 google-auth-1.27.0 google-auth-httplib2-0.0.4 google-cloud-core-1.6.0 google-cloud-firestore-2.0.2 google-cloud-storage-1.36.1 google-crc32c-1.1.2 google-resumable-media-1.2.0 googleapis-common-protos-1.52.0 grpcio-1.35.0 httplib2-0.19.0 idna-2.10 mega.py-1.0.8 msgpack-1.0.2 oauth2client-4.1.3 packaging-20.9 pathlib-1.0.1 pixivpy-3.5.10 proto-plus-1.13.0 protobuf-3.15.2 pyOpenSSL-20.0.1 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycparser-2.20 pycryptodome-3.10.1 pymongo-3.11.3 pyparsing-2.4.7 python-telegram-bot-13.3 pytz-2021.1 requests-2.25.1 requests-toolbelt-0.9.1 rsa-4.7.2 six-1.15.0 soupsieve-2.2 tenacity-5.1.5 tinydb-4.4.0 tornado-6.1 tzlocal-2.1 uritemplate-3.0.1 urllib3-1.26.3 -----> Discovering process types Procfile declares types -> web -----> Compressing... Done: 69.1M -----> Launching... Released v4 https://piclab11.herokuapp.com/ deployed to Heroku

y-young commented 3 years ago

项目部署成功,但是运行时出错,请提供一下网页控制台的日志信息

bottomash commented 3 years ago

非常感谢大佬,但是这个网页控制台的日志信息在哪里找呢?

y-young commented 3 years ago

非常感谢大佬,但是这个网页控制台的日志信息在哪里找呢?

image

bottomash commented 3 years ago

piclab11-logs-1614267842504.txt

y-young commented 3 years ago

piclab11-logs-1614267842504.txt

请问你的 STORAGE 环境变量是如何配置的?

bottomash commented 3 years ago

没有配置,因为想看看前两天获得的pixiv的refresh_tokenn能不能正常使用?配置完storage就好了吗?

y-young commented 3 years ago

没有配置,因为想看看前两天获得的pixiv的refresh_tokenn能不能正常使用?配置完storage就好了吗?

理论上没有配置的话不会出错,你的日志没有截全,看看有没有完整日志?

bottomash commented 3 years ago

两个日志都是全的,我只能看到这么多。我等会把storage配置下再试试,非常感谢大佬。

bottomash commented 3 years ago

非常感谢大佬。 这次我fork大佬项目部署到heroku成功。设置变量时没有更改Storage设置(为默认的mega),之后才更改存储位置为Googledrive;提前配置好机器人在频道的权限。这就是跟之前不太一样的地方。 ps:直接点部署到heroku,反应非常慢。fork之后部署有明显改善。 再一次感谢大佬。

y-young commented 3 years ago

非常感谢大佬。 这次我fork大佬项目部署到heroku成功。设置变量时没有更改Storage设置(为默认的mega),之后才更改存储位置为Googledrive;提前配置好机器人在频道的权限。这就是跟之前不太一样的地方。 ps:直接点部署到heroku,反应非常慢。fork之后部署有明显改善。 再一次感谢大佬。

理论上直接有没有fork不应该影响部署速度 环境变量的配置在v2版本会进行优化 如果没有其他问题可以关闭此issue