-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django app Deploying on Heroku (code=H10 desc="App crashed") #43
Comments
Can Anyone Please help us . I am getting the same error !!. |
Can you paste the content of your "Procfile" here? On the heroku app page > Overview, what is the value for "Dyno formation"? |
@ezyhacks Using Free dynos getting the same error Procfile Content: |
I have same problem. How to fix? Can anyone help us |
Hi guys. Looking at the error message, it seems there are some apps defined in settings.py which are not in use or not needed or you have not installed required packages for deployment. @vikaspal1704 In your error messages, for example, you have this error 2020-02-22T16:00:08.695889+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku' Fix "pip install django-heroku" on your local instance before you push and deploy to Heroku @github-samir Please paste the error messages you have and also, the contents of your Procfile. |
@vikaspal1704 Your Procfile should look like this web: gunicorn ecommerce.wsgi --log-file - |
@ezyhacks |
@vikaspal1704 Looks like you are making some progress. Now you need to set the allowed host in your settings.py. This is what I have for mine so it works with any URL. If you want to be specific, you can assign your heroku URL like so: Remember not to include the protocol (https://) |
@ezyhacks Thank you |
@vikaspal1704 You are welcome and I'm glad to be of help to you. Happy coding! |
Thank You So much Like I was just gonna lose hope and thought that all my work in going to vain .Thank you Once Again |
@ezyhacks plz help me as well (duplicater) C:\Desktop\Tp>git add --all (duplicater) C:\Desktop\Tp>git commit -m "Madhav" (duplicater) C:\Desktop\Tp>git push heroku master remote: -----> No change in requirements detected, installing from cache (duplicater) C:\Desktop\Tp>heroku logs --tail dont know why its not able to detect my healtech module , which is the project directory itself . here is my Procfile: |
2 days , haven't got any response yet . Plz help me someone |
plz help me someone ... does anyone knows the solution to this problem?? |
Hi Adarsh,
Kindly check your settings file. There seems to be an app or module
called "healthcare"
If that module or app does not exist, kindly delete it from the settings
file.
Hope this helps.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
…On Thu, Jan 14, 2021 at 11:21 AM Adarsh Pandey ***@***.***> wrote:
2 days , haven't got any response yet . Plz help me someone
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE66SZJTPYKALNFB37TH6ETSZ3HVBANCNFSM4KZSVDUQ>
.
|
Hii @ezyhacks , I don't have any app called "healthcare" in my application , Plz have a look at my settings.py file: """ Generated by 'django-admin startproject' using Django 2.1. For more information on this file, see For the full list of settings and their values, see import os Build paths inside the project like this: os.path.join(BASE_DIR, ...)BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(file))) Quick-start development settings - unsuitable for productionSee https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/SECURITY WARNING: keep the secret key used in production secret!SECURITY WARNING: don't run with debug turned on in production!DEBUG = True ALLOWED_HOSTS = ['healtech.herokuapp.com', Application definitionINSTALLED_APPS = [
] MIDDLEWARE = [ ROOT_URLCONF = 'HealthTechnology.urls' STATIC_DIR=os.path.join(BASE_DIR,'static')MEDIA_DIR=os.path.join(BASE_DIR,"media")TEMPLATES = [ WSGI_APPLICATION = 'HealthTechnology.wsgi.application' Databasehttps://docs.djangoproject.com/en/2.1/ref/settings/#databasesDATABASES = { Password validationhttps://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validatorsAUTH_PASSWORD_VALIDATORS = [ Internationalizationhttps://docs.djangoproject.com/en/2.1/topics/i18n/LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True Static files (CSS, JavaScript, Images)https://docs.djangoproject.com/en/2.1/howto/static-files/STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'STATIC_URL = '/static/' |
Your Procfile should be:
web: gunicorn HealthTechnology.wsgi
…On Fri, Jan 15, 2021 at 7:33 PM Adarsh Pandey ***@***.***> wrote:
Hii @ezyhacks <https://github.com/ezyhacks> ,
ThankYou So much for replying ,
I don't have any app called "healthcare" in my application , Plz have a
look at my settings.py file:
"""
Django settings for HealthTechnology project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
import django_heroku
Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(*file*)))
Quick-start development settings - unsuitable for production See
https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ SECURITY
WARNING: keep the secret key used in production secret! SECURITY WARNING:
don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['healtech.herokuapp.com',
'localhost',
'127.0.0.1']
Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'XrayApp.apps.XrayappConfig',
'rest_framework',
'corona.apps.CoronaConfig',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'HealthTechnology.urls'
TEMPLATES_DIR=os.path.join(BASE_DIR,'templates')
STATIC_DIR=os.path.join(BASE_DIR,'static')
MEDIA_DIR=os.path.join(BASE_DIR,"media")
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMPLATES_DIR],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'HealthTechnology.wsgi.application'
Database https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
Password validation
https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
Internationalization https://docs.djangoproject.com/en/2.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/2.1/howto/static-files/ STATICFILES_STORAGE
= 'whitenoise.django.GzipManifestStaticFilesStorage'
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
django_heroku.settings(locals())
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MODELS = os.path.join(BASE_DIR, 'corona/modeloo')
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE66SZOBTWEVLK27W2R3WDLS2CJ6ZANCNFSM4KZSVDUQ>
.
|
@ezyhacks , Tons of Thank You and Well wishing for you! You are a genius |
You are welcome. All the best Bro.
…On Sat, 16 Jan 2021 at 9:26 am, Adarsh Pandey ***@***.***> wrote:
@ezyhacks <https://github.com/ezyhacks> ,
Thank You So much brother.
Thank You so much .....It worked , i finally realiesed my silliest mistake
till date !!
Tons of Thank You and Well wishing for you! You are a genius
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE66SZLFGONGS3PPSBZLK4LS2FLVHANCNFSM4KZSVDUQ>
.
|
C:\Users\urvis\Desktop\rajpatel322.github.io\Practice_Project>heroku logs |
I have added django in the requirements.txt |
it has to do with the PYTHONPATH not installing django. everytime i try to migrate using heroku run python manage.py migrate or runserver it says import django NoModuelFound Django |
2021-05-08T00:11:46.652453+00:00 app[web.1]: File "", line 984, in _find_and_load_unlocked |
web: gunicorn django_project.wsgi:application --log-file - --log-level debug |
Could you please help me with this error |
Please Check if Whitenoise is installed or not
Best Regards ,
Adarsh
… On 08-May-2021, at 5:43 AM, nvijhani ***@***.***> wrote:
Could you please help me with this error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hey @ezyhacks, can you help me with this error, I am trying to deploy project from last 10 to 15 days. (myenv) C:\Users\Sanjana poptani\Desktop\todo>heroku logs --tail This is my Procfile file: This is my settings.py file Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see For the full list of settings and their values, see from pathlib import Path Build paths inside the project like this: BASE_DIR / 'subdir'.BASE_DIR = Path(file).resolve().parent.parent Quick-start development settings - unsuitable for productionSee https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/SECURITY WARNING: keep the secret key used in production secret!SECRET_KEY = 'django-insecure-nr@-#=%zm0_(^+me)7+)f1%-#^16a87o0at22$^pyzkt1!*rpj' SECRET_KEY = os.environ.get('SECRET_KEY')SECURITY WARNING: don't run with debug turned on in production!DEBUG = False ALLOWED_HOSTS = ['*'] import django_heroku Application definitionINSTALLED_APPS = [ MIDDLEWARE = [ ROOT_URLCONF = 'proj.urls' TEMPLATES = [ WSGI_APPLICATION = 'proj.wsgi.application' Databasehttps://docs.djangoproject.com/en/3.2/ref/settings/#databasesDATABASES = { Password validationhttps://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validatorsAUTH_PASSWORD_VALIDATORS = [ Internationalizationhttps://docs.djangoproject.com/en/3.2/topics/i18n/LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True Static files (CSS, JavaScript, Images)https://docs.djangoproject.com/en/3.2/howto/static-files/PROJECT_ROOT = os.path.join(os.path.abspath(file)) MEDIA_ROOT = os.path.join(BASE_DIR, 'media') Extra lookup directories for collectstatic to find static filesSTATICFILES_DIRS = ( Add configuration for static files storage using whitenoiseSTATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' Default primary key field typehttps://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-fieldDEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' import dj_database_url And this is my wsgi.py file It exposes the WSGI callable as a module-level variable named For more information on this file, see import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings.local') application = get_wsgi_application() I will be very thankful for anybody who is interested to help me solving this error |
Hi there,
Pls move these lines below to the bottom of the settings.py file:
import django_heroku
django_heroku.settings(locals())
…On Mon, 31 May 2021 at 8:52 pm, SanjanaPoptani ***@***.***> wrote:
Hey @ezyhacks <https://github.com/ezyhacks>, can you help me with this
error, I am trying to deploy project from last 10 to 15 days.
(myenv) C:\Users\Sanjana poptani\Desktop\todo>heroku logs --tail
» Warning: heroku update available from 7.53.0 to 7.54.0.
2021-05-31T20:47:46.659021+00:00 app[web.1]: File "", line 855, in
exec_module
2021-05-31T20:47:46.659021+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.659022+00:00 app[web.1]: File "/app/proj/wsgi.py",
line 16, in
2021-05-31T20:47:46.659022+00:00 app[web.1]: application =
get_wsgi_application()
2021-05-31T20:47:46.659023+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line
12, in get_wsgi_application
2021-05-31T20:47:46.659023+00:00 app[web.1]: django.setup(set_prefix=False)
2021-05-31T20:47:46.659023+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/*init*.py", line
19, in setup
2021-05-31T20:47:46.659024+00:00 app[web.1]:
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-05-31T20:47:46.659024+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/*init*.py",
line 82, in *getattr*
2021-05-31T20:47:46.659025+00:00 app[web.1]: self._setup(name)
2021-05-31T20:47:46.659025+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/*init*.py",
line 69, in _setup
2021-05-31T20:47:46.659026+00:00 app[web.1]: self._wrapped =
Settings(settings_module)
2021-05-31T20:47:46.659026+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/*init*.py",
line 170, in *init*
2021-05-31T20:47:46.659027+00:00 app[web.1]: mod =
importlib.import_module(self.SETTINGS_MODULE)
2021-05-31T20:47:46.659027+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/importlib/*init*.py", line 127, in
import_module
2021-05-31T20:47:46.659027+00:00 app[web.1]: return
_bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.659028+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.659028+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 972, in
_find_and_load_unlocked
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.659030+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.659031+00:00 app[web.1]: File "", line 986, in
_find_and_load_unlocked
2021-05-31T20:47:46.659031+00:00 app[web.1]: File "", line 680, in
_load_unlocked
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "", line 855, in
exec_module
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "/app/proj/settings.py",
line 34, in
2021-05-31T20:47:46.659033+00:00 app[web.1]:
django_heroku.settings(locals())
2021-05-31T20:47:46.659033+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py",
line 99, in settings
2021-05-31T20:47:46.659034+00:00 app[web.1]: config['MIDDLEWARE'] =
tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] +
list(config['MIDDLEWARE']))
2021-05-31T20:47:46.659034+00:00 app[web.1]: KeyError: 'MIDDLEWARE'
2021-05-31T20:47:46.659269+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[8] [INFO] Worker exiting (pid: 8)
2021-05-31T20:47:46.660710+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[7] [ERROR] Exception in worker process
2021-05-31T20:47:46.660710+00:00 app[web.1]: Traceback (most recent call
last):
2021-05-31T20:47:46.660711+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py",
line 97, in settings
2021-05-31T20:47:46.660711+00:00 app[web.1]: config['MIDDLEWARE_CLASSES']
= tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] +
list(config['MIDDLEWARE_CLASSES']))
2021-05-31T20:47:46.660712+00:00 app[web.1]: KeyError: 'MIDDLEWARE_CLASSES'
2021-05-31T20:47:46.660712+00:00 app[web.1]:
2021-05-31T20:47:46.660732+00:00 app[web.1]: During handling of the above
exception, another exception occurred:
2021-05-31T20:47:46.660733+00:00 app[web.1]:
2021-05-31T20:47:46.660734+00:00 app[web.1]: Traceback (most recent call
last):
2021-05-31T20:47:46.660734+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line
589, in spawn_worker
2021-05-31T20:47:46.660734+00:00 app[web.1]: worker.init_process()
2021-05-31T20:47:46.660735+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py",
line 134, in init_process
2021-05-31T20:47:46.660735+00:00 app[web.1]: self.load_wsgi()
2021-05-31T20:47:46.660735+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py",
line 146, in load_wsgi
2021-05-31T20:47:46.660736+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-05-31T20:47:46.660736+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py",
line 67, in wsgi
2021-05-31T20:47:46.660737+00:00 app[web.1]: self.callable = self.load()
2021-05-31T20:47:46.660737+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py",
line 58, in load
2021-05-31T20:47:46.660738+00:00 app[web.1]: return self.load_wsgiapp()
2021-05-31T20:47:46.660738+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py",
line 48, in load_wsgiapp
2021-05-31T20:47:46.660739+00:00 app[web.1]: return
util.import_app(self.app_uri)
2021-05-31T20:47:46.660739+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line
359, in import_app
2021-05-31T20:47:46.660740+00:00 app[web.1]: mod =
importlib.import_module(module)
2021-05-31T20:47:46.660740+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/importlib/*init*.py", line 127, in
import_module
2021-05-31T20:47:46.660741+00:00 app[web.1]: return
_bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 986, in
_find_and_load_unlocked
2021-05-31T20:47:46.660743+00:00 app[web.1]: File "", line 680, in
_load_unlocked
2021-05-31T20:47:46.660743+00:00 app[web.1]: File "", line 855, in
exec_module
2021-05-31T20:47:46.660744+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.660744+00:00 app[web.1]: File "/app/proj/wsgi.py",
line 16, in
2021-05-31T20:47:46.660744+00:00 app[web.1]: application =
get_wsgi_application()
2021-05-31T20:47:46.660745+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line
12, in get_wsgi_application
2021-05-31T20:47:46.660745+00:00 app[web.1]: django.setup(set_prefix=False)
2021-05-31T20:47:46.660746+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/*init*.py", line
19, in setup
2021-05-31T20:47:46.660746+00:00 app[web.1]:
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-05-31T20:47:46.660746+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/*init*.py",
line 82, in *getattr*
2021-05-31T20:47:46.660747+00:00 app[web.1]: self._setup(name)
2021-05-31T20:47:46.660747+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/*init*.py",
line 69, in _setup
2021-05-31T20:47:46.660748+00:00 app[web.1]: self._wrapped =
Settings(settings_module)
2021-05-31T20:47:46.660748+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/*init*.py",
line 170, in *init*
2021-05-31T20:47:46.660749+00:00 app[web.1]: mod =
importlib.import_module(self.SETTINGS_MODULE)
2021-05-31T20:47:46.660749+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/importlib/*init*.py", line 127, in
import_module
2021-05-31T20:47:46.660750+00:00 app[web.1]: return
_bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.660750+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.660751+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.660751+00:00 app[web.1]: File "", line 972, in
_find_and_load_unlocked
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 986, in
_find_and_load_unlocked
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 680, in
_load_unlocked
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 855, in
exec_module
2021-05-31T20:47:46.660754+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.660754+00:00 app[web.1]: File "/app/proj/settings.py",
line 34, in
2021-05-31T20:47:46.660754+00:00 app[web.1]:
django_heroku.settings(locals())
2021-05-31T20:47:46.660755+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py",
line 99, in settings
2021-05-31T20:47:46.660755+00:00 app[web.1]: config['MIDDLEWARE'] =
tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] +
list(config['MIDDLEWARE']))
2021-05-31T20:47:46.660756+00:00 app[web.1]: KeyError: 'MIDDLEWARE'
2021-05-31T20:47:46.660998+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[7] [INFO] Worker exiting (pid: 7)
2021-05-31T20:47:46.755768+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[4] [WARNING] Worker with pid 7 was terminated due to signal 15
2021-05-31T20:47:46.853298+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[4] [INFO] Shutting down: Master
2021-05-31T20:47:46.853434+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[4] [INFO] Reason: Worker failed to boot.
2021-05-31T20:47:46.945877+00:00 heroku[web.1]: Process exited with status
3
2021-05-31T20:47:47.020072+00:00 heroku[web.1]: State changed from up to
crashed
2021-05-31T20:47:52.962684+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/" host=todolistsanju.herokuapp.com
request_id=8f3c6c29-d2a9-4dee-8060-79eb43be47ed fwd="49.34.215.3"
dyno=web.1 connect=5000ms service= status=503 bytes= protocol=https
2021-05-31T20:47:53.699217+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico" host=
todolistsanju.herokuapp.com
request_id=7e9d64fa-13bf-4879-919e-05708ff9f6a7 fwd="49.34.215.3" dyno=
connect= service= status=503 bytes= protocol=https
This is my Procfile file:
web: gunicorn proj.wsgi --log-file - --log-level debug
This is my settings.py file
"""
Django settings for proj project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib import Path
import os
Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(*file*).resolve().parent.parent
Quick-start development settings - unsuitable for production See
https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ SECURITY
WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-nr@
-#=%zm0_(^+me)7+)f1%-#^16a87o0at22$^pyzkt1!*rpj'
SECRET_KEY = os.environ.get('SECRET_KEY') SECURITY WARNING: don't run
with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ['*']
import django_heroku
django_heroku.settings(locals())
Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'todo',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'proj.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'proj.wsgi.application'
Database https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
Password validation
https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
Internationalization https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/3.2/howto/static-files/
PROJECT_ROOT = os.path.join(os.path.abspath(*file*))
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
Extra lookup directories for collectstatic to find static files
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
Add configuration for static files storage using whitenoise
STATICFILES_STORAGE =
'whitenoise.storage.CompressedManifestStaticFilesStorage'
Default primary key field type
https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
import dj_database_url
prod_db = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(prod_db)
And this is my wsgi.py file
"""
WSGI config for proj project.
It exposes the WSGI callable as a module-level variable named application.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings.local')
application = get_wsgi_application()
I will be very thankful for anybody who is interested to help me solving
this error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE66SZIVZZ5RST7Z4WHQ5K3TQPZIZANCNFSM4KZSVDUQ>
.
|
Ok, I done that, but now getting this error: C:\Users\Sanjana poptani\Desktop\todo>heroku logs --tail Can you please suggest something else, any other error which I can improve? |
@ezyhacks can you please have a look at this error?👆👆 |
Can someone please help me out? 2021-08-07T02:09:37.683705+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load |
2021-08-12T11:35:14.507303+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 49, in load |
(env) PS C:\Users\sandro\Desktop\portfolio> heroku logs --tail |
Someone help me please |
Hi can someone help me with my error? I am using flask application with postgresql database. I'm trying to deploy my application to heroku but there are some errors :( 2022-07-06T04:24:53.525311+00:00 heroku[web.1]: State changed from up to crashed |
2022-09-05T09:14:39.802861+00:00 heroku[web.1]: State changed from crashed to starting GETTING ERROR IN favicon.ico PLEASE HELP ME TO SOLVE THIS PROBLEM |
Thank You so Much @ezyhacks , Welll appriciated |
Good day! I'm trying to deploy app at heroku. When I've push it to heroku I receive such heroku logs tail.
020-02-22T15:59:50.492247+00:00 heroku[web.1]: State changed from crashed to starting
2020-02-22T15:59:56.792128+00:00 heroku[web.1]: Starting process with command
gunicorn website.wsgi
2020-02-22T16:00:00.152822+00:00 heroku[web.1]: State changed from starting to up
2020-02-22T15:59:59.738473+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [4] [INFO] Starting gunicorn 20.0.4
2020-02-22T15:59:59.739497+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [4] [INFO] Listening at: http://0.0.0.0:22744 (4)
2020-02-22T15:59:59.739668+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [4] [INFO] Using worker: sync
2020-02-22T15:59:59.747403+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [10] [INFO] Booting worker with pid: 10
2020-02-22T15:59:59.850927+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [11] [INFO] Booting worker with pid: 11
2020-02-22T16:00:00.131538+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [10] [ERROR] Exception in worker process
2020-02-22T16:00:00.131544+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:00.131545+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-22T16:00:00.131589+00:00 app[web.1]: worker.init_process()
2020-02-22T16:00:00.131590+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-22T16:00:00.131591+00:00 app[web.1]: self.load_wsgi()
2020-02-22T16:00:00.131591+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-22T16:00:00.131592+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-22T16:00:00.131593+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-22T16:00:00.131593+00:00 app[web.1]: self.callable = self.load()
2020-02-22T16:00:00.131594+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-22T16:00:00.131594+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-22T16:00:00.131595+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-22T16:00:00.131595+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-22T16:00:00.131596+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-22T16:00:00.131596+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-22T16:00:00.131597+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-22T16:00:00.131598+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:00.131599+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:00.131599+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:00.131600+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:00.131600+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:00.131600+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:00.131601+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:00.131602+00:00 app[web.1]: File "/app/website/wsgi.py", line 16, in
2020-02-22T16:00:00.131602+00:00 app[web.1]: application = get_wsgi_application()
2020-02-22T16:00:00.131603+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-02-22T16:00:00.131603+00:00 app[web.1]: django.setup(set_prefix=False)
2020-02-22T16:00:00.131604+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init.py", line 19, in setup
2020-02-22T16:00:00.131604+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-02-22T16:00:00.131605+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 76, in getattr
2020-02-22T16:00:00.131605+00:00 app[web.1]: self._setup(name)
2020-02-22T16:00:00.131605+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 63, in _setup
2020-02-22T16:00:00.131606+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-02-22T16:00:00.131606+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 142, in init
2020-02-22T16:00:00.131607+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-02-22T16:00:00.131608+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-22T16:00:00.131608+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:00.131609+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:00.131609+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:00.131610+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:00.131610+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:00.131611+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:00.131612+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:00.131612+00:00 app[web.1]: File "/app/website/settings.py", line 2, in
2020-02-22T16:00:00.131613+00:00 app[web.1]: import django_heroku
2020-02-22T16:00:00.131613+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2020-02-22T16:00:00.139976+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-02-22T16:00:00.284918+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [11] [ERROR] Exception in worker process
2020-02-22T16:00:00.284921+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:00.284922+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-22T16:00:00.284923+00:00 app[web.1]: worker.init_process()
2020-02-22T16:00:00.284923+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-22T16:00:00.284924+00:00 app[web.1]: self.load_wsgi()
2020-02-22T16:00:00.284924+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-22T16:00:00.284925+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-22T16:00:00.284926+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-22T16:00:00.284926+00:00 app[web.1]: self.callable = self.load()
2020-02-22T16:00:00.284926+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-22T16:00:00.284927+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-22T16:00:00.284927+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-22T16:00:00.284928+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-22T16:00:00.284928+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-22T16:00:00.284931+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-22T16:00:00.284931+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-22T16:00:00.284932+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:00.284932+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:00.284933+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:00.284933+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:00.284933+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:00.284934+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:00.284934+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:00.284935+00:00 app[web.1]: File "/app/website/wsgi.py", line 16, in
2020-02-22T16:00:00.284935+00:00 app[web.1]: application = get_wsgi_application()
2020-02-22T16:00:00.284935+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-02-22T16:00:00.284936+00:00 app[web.1]: django.setup(set_prefix=False)
2020-02-22T16:00:00.284936+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init.py", line 19, in setup
2020-02-22T16:00:00.284937+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-02-22T16:00:00.284937+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 76, in getattr
2020-02-22T16:00:00.284937+00:00 app[web.1]: self._setup(name)
2020-02-22T16:00:00.284938+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 63, in _setup
2020-02-22T16:00:00.284938+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-02-22T16:00:00.284939+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 142, in init
2020-02-22T16:00:00.284939+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-02-22T16:00:00.284939+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-22T16:00:00.284940+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:00.284940+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:00.284941+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:00.284941+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:00.284941+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:00.284942+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:00.284942+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:00.284942+00:00 app[web.1]: File "/app/website/settings.py", line 2, in
2020-02-22T16:00:00.284943+00:00 app[web.1]: import django_heroku
2020-02-22T16:00:00.284950+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2020-02-22T16:00:00.285705+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [11] [INFO] Worker exiting (pid: 11)
2020-02-22T16:00:00.446010+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [4] [INFO] Shutting down: Master
2020-02-22T16:00:00.446358+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-02-22T16:00:00.566254+00:00 heroku[web.1]: State changed from up to crashed
2020-02-22T16:00:00.569748+00:00 heroku[web.1]: State changed from crashed to starting
2020-02-22T16:00:00.543964+00:00 heroku[web.1]: Process exited with status 3
2020-02-22T16:00:05.483596+00:00 heroku[web.1]: Starting process with command
gunicorn website.wsgi
2020-02-22T16:00:08.225034+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [4] [INFO] Starting gunicorn 20.0.4
2020-02-22T16:00:08.225976+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [4] [INFO] Listening at: http://0.0.0.0:58623 (4)
2020-02-22T16:00:08.226158+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [4] [INFO] Using worker: sync
2020-02-22T16:00:08.232684+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [10] [INFO] Booting worker with pid: 10
2020-02-22T16:00:08.258598+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [11] [INFO] Booting worker with pid: 11
2020-02-22T16:00:08.711773+00:00 heroku[web.1]: State changed from starting to up
2020-02-22T16:00:08.684556+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [11] [ERROR] Exception in worker process
2020-02-22T16:00:08.684584+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:08.684585+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-22T16:00:08.684586+00:00 app[web.1]: worker.init_process()
2020-02-22T16:00:08.684587+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-22T16:00:08.684587+00:00 app[web.1]: self.load_wsgi()
2020-02-22T16:00:08.684588+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-22T16:00:08.684588+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-22T16:00:08.684589+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-22T16:00:08.684589+00:00 app[web.1]: self.callable = self.load()
2020-02-22T16:00:08.684589+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-22T16:00:08.684590+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-22T16:00:08.684590+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-22T16:00:08.684591+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-22T16:00:08.684591+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-22T16:00:08.684591+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-22T16:00:08.684592+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-22T16:00:08.684592+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:08.684593+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:08.684593+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:08.684594+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:08.684594+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:08.684594+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:08.684595+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:08.684595+00:00 app[web.1]: File "/app/website/wsgi.py", line 16, in
2020-02-22T16:00:08.684595+00:00 app[web.1]: application = get_wsgi_application()
2020-02-22T16:00:08.684596+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-02-22T16:00:08.684596+00:00 app[web.1]: django.setup(set_prefix=False)
2020-02-22T16:00:08.684596+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init.py", line 19, in setup
2020-02-22T16:00:08.684597+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-02-22T16:00:08.684597+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 76, in getattr
2020-02-22T16:00:08.684597+00:00 app[web.1]: self._setup(name)
2020-02-22T16:00:08.684598+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 63, in _setup
2020-02-22T16:00:08.684598+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-02-22T16:00:08.684598+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 142, in init
2020-02-22T16:00:08.684599+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-02-22T16:00:08.684599+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-22T16:00:08.684600+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:08.684600+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:08.684600+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:08.684600+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:08.684601+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:08.684601+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:08.684601+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:08.684601+00:00 app[web.1]: File "/app/website/settings.py", line 2, in
2020-02-22T16:00:08.684602+00:00 app[web.1]: import django_heroku
2020-02-22T16:00:08.684602+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2020-02-22T16:00:08.691208+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [11] [INFO] Worker exiting (pid: 11)
2020-02-22T16:00:08.695854+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [10] [ERROR] Exception in worker process
2020-02-22T16:00:08.695857+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:08.695858+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-22T16:00:08.695859+00:00 app[web.1]: worker.init_process()
2020-02-22T16:00:08.695860+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-22T16:00:08.695860+00:00 app[web.1]: self.load_wsgi()
2020-02-22T16:00:08.695861+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-22T16:00:08.695861+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-22T16:00:08.695862+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-22T16:00:08.695863+00:00 app[web.1]: self.callable = self.load()
2020-02-22T16:00:08.695863+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-22T16:00:08.695864+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-22T16:00:08.695864+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-22T16:00:08.695865+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-22T16:00:08.695865+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-22T16:00:08.695866+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-22T16:00:08.695866+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-22T16:00:08.695867+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:08.695867+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:08.695868+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:08.695868+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:08.695869+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:08.695869+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:08.695870+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:08.695870+00:00 app[web.1]: File "/app/website/wsgi.py", line 16, in
2020-02-22T16:00:08.695870+00:00 app[web.1]: application = get_wsgi_application()
2020-02-22T16:00:08.695871+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-02-22T16:00:08.695871+00:00 app[web.1]: django.setup(set_prefix=False)
2020-02-22T16:00:08.695872+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init.py", line 19, in setup
2020-02-22T16:00:08.695872+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-02-22T16:00:08.695872+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 76, in getattr
2020-02-22T16:00:08.695873+00:00 app[web.1]: self._setup(name)
2020-02-22T16:00:08.695878+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 63, in _setup
2020-02-22T16:00:08.695879+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-02-22T16:00:08.695879+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init.py", line 142, in init
2020-02-22T16:00:08.695880+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-02-22T16:00:08.695880+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init.py", line 126, in import_module
2020-02-22T16:00:08.695881+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:08.695886+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:08.695886+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:08.695887+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:08.695887+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:08.695888+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:08.695888+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:08.695888+00:00 app[web.1]: File "/app/website/settings.py", line 2, in
2020-02-22T16:00:08.695889+00:00 app[web.1]: import django_heroku
2020-02-22T16:00:08.695889+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2020-02-22T16:00:08.696550+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-02-22T16:00:08.768751+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:08.768803+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 209, in run
2020-02-22T16:00:08.769251+00:00 app[web.1]: self.sleep()
2020-02-22T16:00:08.769289+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 357, in sleep
2020-02-22T16:00:08.769678+00:00 app[web.1]: ready = select.select([self.PIPE[0]], [], [], 1.0)
2020-02-22T16:00:08.769717+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2020-02-22T16:00:08.770004+00:00 app[web.1]: self.reap_workers()
2020-02-22T16:00:08.770047+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2020-02-22T16:00:08.770495+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2020-02-22T16:00:08.770562+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2020-02-22T16:00:08.770594+00:00 app[web.1]:
2020-02-22T16:00:08.770595+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2020-02-22T16:00:08.770595+00:00 app[web.1]:
2020-02-22T16:00:08.770628+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:08.770657+00:00 app[web.1]: File "/app/.heroku/python/bin/gunicorn", line 8, in
2020-02-22T16:00:08.770835+00:00 app[web.1]: sys.exit(run())
2020-02-22T16:00:08.770873+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
2020-02-22T16:00:08.771084+00:00 app[web.1]: WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
2020-02-22T16:00:08.771134+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 228, in run
2020-02-22T16:00:08.771329+00:00 app[web.1]: super().run()
2020-02-22T16:00:08.771333+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 72, in run
2020-02-22T16:00:08.771485+00:00 app[web.1]: Arbiter(self).run()
2020-02-22T16:00:08.771490+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 229, in run
2020-02-22T16:00:08.771679+00:00 app[web.1]: self.halt(reason=inst.reason, exit_status=inst.exit_status)
2020-02-22T16:00:08.771683+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 342, in halt
2020-02-22T16:00:08.771911+00:00 app[web.1]: self.stop()
2020-02-22T16:00:08.771955+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
2020-02-22T16:00:08.772195+00:00 app[web.1]: time.sleep(0.1)
2020-02-22T16:00:08.772200+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2020-02-22T16:00:08.772398+00:00 app[web.1]: self.reap_workers()
2020-02-22T16:00:08.772403+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2020-02-22T16:00:08.772657+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2020-02-22T16:00:08.772687+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2020-02-22T16:00:08.893332+00:00 heroku[web.1]: State changed from up to crashed
2020-02-22T16:00:08.877687+00:00 heroku[web.1]: Process exited with status 1
at=error code=H10 desc="App crashed" method=GET path="/" host=arcane-citadel-79281.herokuapp.com request_id=ac173fdb-c496-44b3-959a-96001a054c68 fwd="217.175.129.145" dyno= connect= service= status=503 bytes= protocol=https
2020-02-22T16:08:56.016148+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=arcane-citadel-79281.herokuapp.com request_id=84ba30e5-1f3a-4dba-8266-40c0fe4340a6 fwd="217.175.129.145" dyno= connect= service= status=503 bytes= protocol=https
How can I solve this problem??
The text was updated successfully, but these errors were encountered: