Deployment fails and build logs give no reason why

Hi! I’ve been trying to make a deployment for a test web service - srv-cbe1r2d0maleo3604vsg that I’ve been trying to setup. But the deployment fails and I don’t get any reason why. All I see is that my pip install (Python3) logs aren’t completed still. Besides that no clue to what is happening. Any help would be appreciated. Currently all PostgreSQL and Web services are on the free plan. I’ve used manual deployment rather than render.yaml as my deployment setup. Any other questions, please let me know. Thanks!

Please dump the runtime logs

Thanks for replying @zackees ! I hope you meant the build logs, correct? If that’s it, here it is. Or else please help me locate the logs. I’m fairly new to render and I couldn’t find it myself.

Jul 25 04:25:51 PM ==> Using Python version: 3.7.10
Jul 25 04:25:55 PM ==> Running build command ‘./build.sh’…
Jul 25 04:25:55 PM Collecting Django==3.1
Jul 25 04:25:55 PM Using cached Django-3.1-py3-none-any.whl (7.8 MB)
Jul 25 04:25:56 PM Collecting django-admin-honeypot==1.1.0
Jul 25 04:25:56 PM Using cached django_admin_honeypot-1.1.0-py2.py3-none-any.whl (20 kB)
Jul 25 04:25:56 PM Collecting django-admin-thumbnails==0.2.5
Jul 25 04:25:56 PM Using cached django-admin-thumbnails-0.2.5.tar.gz (6.2 kB)
Jul 25 04:25:57 PM Collecting dj-database-url==0.5.0
Jul 25 04:25:57 PM Using cached dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB)
Jul 25 04:25:57 PM Collecting django-import-export==2.7.1
Jul 25 04:25:57 PM Using cached django_import_export-2.7.1-py3-none-any.whl (100 kB)
Jul 25 04:25:57 PM Collecting django-session-timeout==0.1.0
Jul 25 04:25:57 PM Using cached django_session_timeout-0.1.0-py2.py3-none-any.whl (3.9 kB)
Jul 25 04:25:57 PM Collecting gunicorn==20.1.0
Jul 25 04:25:57 PM Using cached gunicorn-20.1.0-py3-none-any.whl (79 kB)
Jul 25 04:25:58 PM Collecting Pillow==7.2.0
Jul 25 04:25:58 PM Using cached Pillow-7.2.0-cp37-cp37m-manylinux1_x86_64.whl (2.2 MB)
Jul 25 04:25:58 PM Collecting psycopg2-binary==2.8.6
Jul 25 04:25:58 PM Using cached psycopg2_binary-2.8.6-cp37-cp37m-manylinux1_x86_64.whl (3.0 MB)
Jul 25 04:25:59 PM Collecting python-decouple==3.4
Jul 25 04:25:59 PM Using cached python_decouple-3.4-py3-none-any.whl (9.5 kB)
Jul 25 04:25:59 PM Collecting razorpay
Jul 25 04:25:59 PM Using cached razorpay-1.3.0-py3-none-any.whl (168 kB)
Jul 25 04:25:59 PM Collecting requests==2.26.0
Jul 25 04:25:59 PM Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Jul 25 04:25:59 PM Collecting wheel==0.37.1
Jul 25 04:25:59 PM Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Jul 25 04:25:59 PM Collecting whitenoise==6.2.0
Jul 25 04:25:59 PM Using cached whitenoise-6.2.0-py3-none-any.whl (19 kB)
Jul 25 04:25:59 PM Collecting asgiref~=3.2.10
Jul 25 04:25:59 PM Using cached asgiref-3.2.10-py3-none-any.whl (19 kB)
Jul 25 04:25:59 PM Collecting pytz
Jul 25 04:25:59 PM Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Jul 25 04:26:00 PM Collecting sqlparse>=0.2.2
Jul 25 04:26:00 PM Using cached sqlparse-0.4.2-py3-none-any.whl (42 kB)
Jul 25 04:26:00 PM Collecting six>=1.12.0
Jul 25 04:26:00 PM Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Jul 25 04:26:00 PM Collecting tablib[html,ods,xls,xlsx,yaml]>=3.0.0
Jul 25 04:26:00 PM Using cached tablib-3.2.1-py3-none-any.whl (48 kB)
Jul 25 04:26:00 PM Collecting diff-match-patch
Jul 25 04:26:00 PM Using cached diff_match_patch-20200713-py3-none-any.whl (61 kB)
Jul 25 04:26:00 PM Requirement already satisfied: setuptools>=3.0 in ./.venv/lib/python3.7/site-packages (from gunicorn==20.1.0->-r requirements.txt (line 7)) (47.1.0)
Jul 25 04:26:00 PM Collecting idna<4,>=2.5; python_version >= “3”
Jul 25 04:26:00 PM Using cached idna-3.3-py3-none-any.whl (61 kB)
Jul 25 04:26:00 PM Collecting certifi>=2017.4.17
Jul 25 04:26:00 PM Using cached certifi-2022.6.15-py3-none-any.whl (160 kB)
Jul 25 04:26:00 PM Collecting urllib3<1.27,>=1.21.1
Jul 25 04:26:00 PM Using cached urllib3-1.26.10-py2.py3-none-any.whl (139 kB)
Jul 25 04:26:00 PM Collecting charset-normalizer~=2.0.0; python_version >= “3”
Jul 25 04:26:00 PM Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Jul 25 04:26:00 PM Collecting markuppy; extra == “html”
Jul 25 04:26:00 PM Using cached MarkupPy-1.14.tar.gz (6.8 kB)
Jul 25 04:26:00 PM Collecting odfpy; extra == “ods”
Jul 25 04:26:00 PM Using cached odfpy-1.4.1.tar.gz (717 kB)
Jul 25 04:26:01 PM Collecting xlrd; extra == “xls”
Jul 25 04:26:01 PM Using cached xlrd-2.0.1-py2.py3-none-any.whl (96 kB)
Jul 25 04:26:01 PM Collecting xlwt; extra == “xls”
Jul 25 04:26:01 PM Using cached xlwt-1.3.0-py2.py3-none-any.whl (99 kB)
Jul 25 04:26:01 PM Collecting openpyxl>=2.6.0; extra == “xlsx”
Jul 25 04:26:01 PM Using cached openpyxl-3.0.10-py2.py3-none-any.whl (242 kB)
Jul 25 04:26:01 PM Collecting pyyaml; extra == “yaml”
Jul 25 04:26:01 PM Using cached PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB)
Jul 25 04:26:01 PM Collecting defusedxml
Jul 25 04:26:01 PM Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Jul 25 04:26:01 PM Collecting et-xmlfile
Jul 25 04:26:01 PM Using cached et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Jul 25 04:26:01 PM Using legacy setup.py install for django-admin-thumbnails, since package ‘wheel’ is not installed.
Jul 25 04:26:01 PM Using legacy setup.py install for markuppy, since package ‘wheel’ is not installed.
Jul 25 04:26:01 PM Using legacy setup.py install for odfpy, since package ‘wheel’ is not installed.
Jul 25 04:26:02 PM Installing collected packages: asgiref, pytz, sqlparse, Django, django-admin-honeypot, six, django-admin-thumbnails, dj-database-url, markuppy, defusedxml, odfpy, xlrd, xlwt, et-xmlfile, openpyxl, pyyaml, tablib, diff-match-patch, django-import-export, django-session-timeout, gunicorn, Pillow, psycopg2-binary, python-decouple, idna, certifi, urllib3, charset-normalizer, requests, razorpay, wheel, whitenoise
Jul 25 04:26:06 PM Running setup.py install for django-admin-thumbnails: started
Jul 25 04:26:06 PM Running setup.py install for django-admin-thumbnails: finished with status ‘done’
Jul 25 04:26:06 PM Running setup.py install for markuppy: started

Are you running anything on port 80 that responds to a request? If you don’t, you won’t pass the health check and the build will fail to deploy

Thanks for replying @zackees

No am not running anything on port 80. I have kept the health checkup field blank now and tried running again. But still the deployment mysteriously gets stuck in requirements installation, as it seems from the logs. I don’t have a requirement of reverse proxy. And django doesn’t natively run on 80 and I don’t want to use sudo. Is there any other way I can get around this? Or atleast see the failure or error in logs somehow?

Try running a toy http server at port 80 and see if that allows you to deploy.

Time and time again I have similar problems and it’s always because i’m not listening to port 80 in my app.

Thanks for help @zackees . I was able to solve this problem by upgrading pip and fixing another error I had with commented CSS code. Post-processor was still picking it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.