Apogaea / ladder

A ticket exchange platform
5 stars 3 forks source link

Unable to Deploy Sucessfully at Heroku #75

Closed prohealthbox closed 7 years ago

prohealthbox commented 7 years ago

Hi, When try to deploy ladder at Heroku, build id deployed , buy webapp does not come up, displays error message Application error

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details

Please see the log below.

-----> Python app detected
-----> Installing python-2.7.6
-----> Installing pip
-----> Noticed pylibmc. Bootstrapping libmemcached.
-----> Installing requirements with pip
       Collecting Django<1.8,>=1.7 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 1))
       /app/.heroku/python/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
         SNIMissingWarning
       /app/.heroku/python/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
         InsecurePlatformWarning
         Downloading Django-1.7.11-py2.py3-none-any.whl (7.4MB)
       Collecting boto==2.36.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 2))
         Downloading boto-2.36.0-py2.py3-none-any.whl (1.3MB)
       Collecting dj-database-url==0.3.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 3))
         Downloading dj_database_url-0.3.0-py2.py3-none-any.whl
       Collecting django-argonauts==1.0.1 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 4))
         Downloading django-argonauts-1.0.1.tar.gz
       Collecting django-authtools==1.0.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 5))
         Downloading django-authtools-1.0.0.tar.gz
       Collecting django-betterforms==1.1.1 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 6))
         Downloading django-betterforms-1.1.1.tar.gz
       Collecting django-bootstrap3==5.1.1 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 7))
         Downloading django-bootstrap3-5.1.1.tar.gz
       Collecting django-cache-url==0.8.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 8))
         Downloading django_cache_url-0.8.0-py2.py3-none-any.whl
       Collecting django-debug-toolbar-template-timings==0.6.4 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 9))
         Downloading django-debug-toolbar-template-timings-0.6.4.zip
       Collecting django-debug-toolbar==1.2.2 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 10))
         Downloading django_debug_toolbar-1.2.2-py2.py3-none-any.whl (202kB)
       Collecting django-emailtools==0.2.2 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 11))
         Downloading django-emailtools-0.2.2.tar.gz
       Collecting django-localflavor==1.1 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 12))
         Downloading django_localflavor-1.1-py2.py3-none-any.whl (2.6MB)
       Collecting django-pagination==1.0.7 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 13))
         Downloading django-pagination-1.0.7.tar.gz
       Collecting django-pipeline==1.4.6 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 14))
         Downloading django_pipeline-1.4.6-py2.py3-none-any.whl
       Collecting django-pylibmc-sasl==0.2.4 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 15))
         Downloading django-pylibmc-sasl-0.2.4.tar.gz
       Collecting django-s3-folder-storage==0.2 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 16))
         Downloading django-s3-folder-storage-0.2.tar.gz
       Collecting django-secure==1.0.1 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 17))
         Downloading django-secure-1.0.1.tar.gz
       Collecting djangorestframework==3.0.5 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 18))
         Downloading djangorestframework-3.0.5-py2.py3-none-any.whl (306kB)
       Collecting env-excavator==1.2.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 19))
         Downloading env_excavator-1.2.0-py2.py3-none-any.whl
       Collecting gunicorn==18.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 20))
         Downloading gunicorn-18.0.tar.gz (366kB)
       Collecting ipython==3.0.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 21))
         Downloading ipython-3.0.0-py2-none-any.whl (3.4MB)
       Collecting manifesto==0.5 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 22))
         Downloading manifesto-0.5-py2.py3-none-any.whl
       Collecting newrelic==2.44.0.36 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 23))
         Downloading newrelic-2.44.0.36.tar.gz (656kB)
       Collecting phonenumbers==6.0.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 24))
         Downloading phonenumbers-6.0.0.tar.gz (1.7MB)
       Collecting psycopg2==2.6 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 25))
         Downloading psycopg2-2.6.tar.gz (367kB)
       Collecting pyScss==1.1.5 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 26))
         Downloading pyScss-1.1.5.tar.gz (239kB)
       Collecting pylibmc==1.4.1 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 27))
         Downloading pylibmc-1.4.1.tar.gz (53kB)
       Collecting python-dotenv==0.1.0 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 28))
         Downloading python-dotenv-0.1.0.tar.gz
       Collecting pytz==2014.10 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 29))
         Downloading pytz-2014.10-py2.py3-none-any.whl (477kB)
       Collecting rollbar==0.9.8 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 30))
         Downloading rollbar-0.9.8.tar.gz
       Collecting twilio==3.7.1 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 31))
         Downloading twilio-3.7.1-py2.py3-none-any.whl (212kB)
       Collecting readline==6.2.4.1 (from -r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 32))
         Downloading readline-6.2.4.1.tar.gz (2.3MB)
       Collecting sqlparse (from django-debug-toolbar==1.2.2->-r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 10))
         Downloading sqlparse-0.2.3-py2.py3-none-any.whl
       Collecting markdown (from django-emailtools==0.2.2->-r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 11))
         Downloading Markdown-2.6.8.tar.gz (307kB)
       Collecting futures>=2.1.3 (from django-pipeline==1.4.6->-r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 14))
         Downloading futures-3.0.5-py2-none-any.whl
       Collecting django-storages (from django-s3-folder-storage==0.2->-r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 16))
         Downloading django_storages-1.5.2-py2.py3-none-any.whl (51kB)
       Collecting click>=3.0 (from python-dotenv==0.1.0->-r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 28))
         Downloading click-6.7-py2.py3-none-any.whl (71kB)
       Collecting requests (from rollbar==0.9.8->-r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 30))
         Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)
       Collecting httplib2>=0.7 (from twilio==3.7.1->-r /tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/requirements.txt (line 31))
         Downloading httplib2-0.10.3.tar.gz (204kB)
       Installing collected packages: Django, boto, dj-database-url, django-argonauts, django-authtools, django-betterforms, django-bootstrap3, django-cache-url, sqlparse, django-debug-toolbar, django-debug-toolbar-template-timings, markdown, django-emailtools, django-localflavor, django-pagination, futures, django-pipeline, pylibmc, django-pylibmc-sasl, django-storages, django-s3-folder-storage, django-secure, djangorestframework, env-excavator, gunicorn, ipython, manifesto, newrelic, phonenumbers, psycopg2, pyScss, click, python-dotenv, pytz, requests, rollbar, httplib2, twilio, readline
         Running setup.py install for django-argonauts: started
           Running setup.py install for django-argonauts: finished with status 'done'
         Running setup.py install for django-authtools: started
           Running setup.py install for django-authtools: finished with status 'done'
         Running setup.py install for django-betterforms: started
           Running setup.py install for django-betterforms: finished with status 'done'
         Running setup.py install for django-bootstrap3: started
           Running setup.py install for django-bootstrap3: finished with status 'done'
         Running setup.py install for django-debug-toolbar-template-timings: started
           Running setup.py install for django-debug-toolbar-template-timings: finished with status 'done'
         Running setup.py install for markdown: started
           Running setup.py install for markdown: finished with status 'done'
         Running setup.py install for django-emailtools: started
           Running setup.py install for django-emailtools: finished with status 'done'
         Running setup.py install for django-pagination: started
           Running setup.py install for django-pagination: finished with status 'done'
         Running setup.py install for pylibmc: started
           Running setup.py install for pylibmc: finished with status 'done'
         Running setup.py install for django-pylibmc-sasl: started
           Running setup.py install for django-pylibmc-sasl: finished with status 'done'
         Running setup.py install for django-s3-folder-storage: started
           Running setup.py install for django-s3-folder-storage: finished with status 'done'
         Running setup.py install for django-secure: started
           Running setup.py install for django-secure: finished with status 'done'
         Running setup.py install for gunicorn: started
           Running setup.py install for gunicorn: finished with status 'done'
         Running setup.py install for newrelic: started
           Running setup.py install for newrelic: finished with status 'done'
         Running setup.py install for phonenumbers: started
           Running setup.py install for phonenumbers: finished with status 'done'
         Running setup.py install for psycopg2: started
           Running setup.py install for psycopg2: finished with status 'done'
         Running setup.py install for pyScss: started
           Running setup.py install for pyScss: finished with status 'done'
         Running setup.py install for python-dotenv: started
           Running setup.py install for python-dotenv: finished with status 'done'
         Running setup.py install for rollbar: started
           Running setup.py install for rollbar: finished with status 'done'
         Running setup.py install for httplib2: started
           Running setup.py install for httplib2: finished with status 'done'
         Running setup.py install for readline: started
           Running setup.py install for readline: finished with status 'done'
       Successfully installed Django-1.7.11 boto-2.36.0 click-6.7 dj-database-url-0.3.0 django-argonauts-1.0.1 django-authtools-1.0.0 django-betterforms-1.1.1 django-bootstrap3-5.1.1 django-cache-url-0.8.0 django-debug-toolbar-1.2.2 django-debug-toolbar-template-timings-0.6.4 django-emailtools-0.2.2 django-localflavor-1.1 django-pagination-1.0.7 django-pipeline-1.4.6 django-pylibmc-sasl-0.2.4 django-s3-folder-storage-0.2 django-secure-1.0.1 django-storages-1.5.2 djangorestframework-3.0.5 env-excavator-1.2.0 futures-3.0.5 gunicorn-18.0 httplib2-0.10.3 ipython-3.0.0 manifesto-0.5 markdown-2.6.8 newrelic phonenumbers-6.0.0 psycopg2-2.6 pyScss-1.1.5 pylibmc-1.4.1 python-dotenv-0.1.0 pytz-2014.10 readline-6.2.4.1 requests-2.13.0 rollbar-0.9.8 sqlparse-0.2.3 twilio-3.7.1
 !     Hello! It looks like your application is using an outdated version of Python.
 !     This caused the security warning you saw above during the 'pip install' step.
 !     We recommend 'python-2.7.13', which you can specify in a 'runtime.txt' file.
 !       -- Much Love, Heroku.
     $ python manage.py collectstatic --noinput
       /app/.heroku/python/lib/python2.7/site-packages/dotenv.py:13: UserWarning: can't read .env - it doesn't exist.
         warnings.warn("can't read %s - it doesn't exist." % dotenv_path)
       34 static files copied to '/tmp/build_f7087625436b1655870f2a7be98a7107/prohealthbox-ladder-0a6d8b1/ladder/public/static'.
-----> Discovering process types
       Procfile declares types -> web
-----> Compressing...
       Done: 57M
-----> Launching...
       Released v4
       https://ladder123.herokuapp.com/ deployed to Heroku
pipermerriam commented 7 years ago

The application is throwing an error at runtime, if you run heroku -t logs -a ladder123 you should get some information about what the error is. I expect it's a missing environment configuration value.

If you take a look in the settings file you'll see lines like this.

https://github.com/Apogaea/ladder/blob/master/ladder/settings.py#L17

DEFAULT_FROM_EMAIL = excavator.env_string(
    'DJANGO_DEFAULT_FROM_EMAIL', default='ladder@apogaea.com',
)

You need to set the environment variables for these configuration values.

prohealthbox commented 7 years ago

Thanks Piper , issue resolved, after placingall ENV Variables in Heroku, resolved my issue.

pipermerriam commented 7 years ago

Mind if I ask what you are using this for?