Last active
July 27, 2019 18:03
-
-
Save peacock0803sz/b00dc3844028795e3ea09b9cc530aefe to your computer and use it in GitHub Desktop.
django-logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing initially failed dependencies… | |
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 2611, in do_sync | |
[pipenv.exceptions.InstallError]: system=system, | |
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 1253, in do_init | |
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror, | |
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 859, in do_install_dependencies | |
[pipenv.exceptions.InstallError]: retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs | |
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 763, in batch_install | |
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry) | |
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 681, in _cleanup_procs | |
[pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines) | |
[pipenv.exceptions.InstallError]: ['Collecting psycopg2==2.8.3 (from -r /tmp/pipenv-1_mkw6bq-requirements/pipenv-g_ohr3qr-requirement.txt (line 1))', ' Using cached https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165/psycopg2-2.8.3.tar.gz'] | |
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', ' command: /home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/bin/python -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-umg5lma0/psycopg2/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-umg5lma0/psycopg2/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' egg_info --egg-base pip-egg-info', ' cwd: /tmp/pip-install-umg5lma0/psycopg2/', ' Complete output (23 lines):', ' running egg_info', ' creating pip-egg-info/psycopg2.egg-info', ' writing pip-egg-info/psycopg2.egg-info/PKG-INFO', ' writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt', ' writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt', " writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'", ' ', ' Error: pg_config executable not found.', ' ', ' pg_config is required to build psycopg2 from source. Please add the directory', ' containing pg_config to the $PATH or specify the full executable path with the', ' option:', ' ', ' python setup.py build_ext --pg-config /path/to/pg_config build ...', ' ', " or with the pg_config option in 'setup.cfg'.", ' ', ' If you prefer to avoid building psycopg2 from source, please install the PyPI', " 'psycopg2-binary' package instead.", ' ', " For further information please check the 'doc/src/install.rst' file (also at", ' <http://initd.org/psycopg/docs/install.html>).', ' ', ' ----------------------------------------', 'ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.'] | |
ERROR: ERROR: Package installation failed... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
019-07-27T09:02:08.137372+00:00 heroku[web.1]: State changed from crashed to starting | |
2019-07-27T09:02:07.894905+00:00 app[api]: Release v9 created by user [email protected] | |
2019-07-27T09:02:07.894905+00:00 app[api]: Deploy de30941c by user [email protected] | |
2019-07-27T09:02:14.380503+00:00 heroku[web.1]: Starting process with command `gunicorn mysite.wsgi --log-file -` | |
2019-07-27T09:02:17.098401+00:00 heroku[web.1]: State changed from starting to crashed | |
2019-07-27T09:02:16.793804+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [4] [INFO] Starting gunicorn 19.9.0 | |
2019-07-27T09:02:16.795115+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [4] [INFO] Listening at: http://0.0.0.0:47922 (4) | |
2019-07-27T09:02:16.795359+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [4] [INFO] Using worker: sync | |
2019-07-27T09:02:16.802447+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [10] [INFO] Booting worker with pid: 10 | |
2019-07-27T09:02:16.812456+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [10] [ERROR] Exception in worker process | |
2019-07-27T09:02:16.812460+00:00 app[web.1]: Traceback (most recent call last): | |
2019-07-27T09:02:16.812462+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker | |
2019-07-27T09:02:16.812465+00:00 app[web.1]: worker.init_process() | |
2019-07-27T09:02:16.812467+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 129, in init_process | |
2019-07-27T09:02:16.812469+00:00 app[web.1]: self.load_wsgi() | |
2019-07-27T09:02:16.812471+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi | |
2019-07-27T09:02:16.812473+00:00 app[web.1]: self.wsgi = self.app.wsgi() | |
2019-07-27T09:02:16.812475+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi | |
2019-07-27T09:02:16.812477+00:00 app[web.1]: self.callable = self.load() | |
2019-07-27T09:02:16.812480+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load | |
2019-07-27T09:02:16.812482+00:00 app[web.1]: return self.load_wsgiapp() | |
2019-07-27T09:02:16.812484+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp | |
2019-07-27T09:02:16.812485+00:00 app[web.1]: return util.import_app(self.app_uri) | |
2019-07-27T09:02:16.812487+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/util.py", line 350, in import_app | |
2019-07-27T09:02:16.812489+00:00 app[web.1]: __import__(module) | |
2019-07-27T09:02:16.812492+00:00 app[web.1]: ModuleNotFoundError: No module named 'mysite.wsgi' | |
2019-07-27T09:02:16.812661+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [10] [INFO] Worker exiting (pid: 10) | |
2019-07-27T09:02:16.846276+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [11] [INFO] Booting worker with pid: 11 | |
2019-07-27T09:02:16.859785+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [11] [ERROR] Exception in worker process | |
2019-07-27T09:02:16.859789+00:00 app[web.1]: Traceback (most recent call last): | |
2019-07-27T09:02:16.859792+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker | |
2019-07-27T09:02:16.859794+00:00 app[web.1]: worker.init_process() | |
2019-07-27T09:02:16.859796+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 129, in init_process | |
2019-07-27T09:02:16.859798+00:00 app[web.1]: self.load_wsgi() | |
2019-07-27T09:02:16.859800+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi | |
2019-07-27T09:02:16.859802+00:00 app[web.1]: self.wsgi = self.app.wsgi() | |
2019-07-27T09:02:16.859805+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi | |
2019-07-27T09:02:16.859806+00:00 app[web.1]: self.callable = self.load() | |
2019-07-27T09:02:16.859809+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load | |
2019-07-27T09:02:16.859811+00:00 app[web.1]: return self.load_wsgiapp() | |
2019-07-27T09:02:16.859813+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp | |
2019-07-27T09:02:16.859815+00:00 app[web.1]: return util.import_app(self.app_uri) | |
2019-07-27T09:02:16.859817+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/util.py", line 350, in import_app | |
2019-07-27T09:02:16.859819+00:00 app[web.1]: __import__(module) | |
2019-07-27T09:02:16.859821+00:00 app[web.1]: ModuleNotFoundError: No module named 'mysite.wsgi' | |
2019-07-27T09:02:16.863001+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [11] [INFO] Worker exiting (pid: 11) | |
2019-07-27T09:02:16.975273+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [4] [INFO] Shutting down: Master | |
2019-07-27T09:02:16.975438+00:00 app[web.1]: [2019-07-27 09:02:16 +0000] [4] [INFO] Reason: Worker failed to boot. | |
2019-07-27T09:02:17.075548+00:00 heroku[web.1]: Process exited with status 3 | |
2019-07-27T09:02:19.000000+00:00 app[api]: Build succeeded | |
2019-07-27T09:02:30.874554+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=peacock-django-study.herokuapp.com request_id=2a2ee514-2e09-474c-83fc-528453fd456b fwd="203.152.213.161" dyno= connect= service= status=503 bytes= protocol=https | |
2019-07-27T09:02:32.523085+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=peacock-django-study.herokuapp.com request_id=0ca33487-1116-4678-a9b4-9d7b43b8ded2 fwd="203.152.213.161" dyno= connect= service= status=503 bytes= protocol=https |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "manage.py", line 21, in <module> | |
main() | |
File "manage.py", line 17, in main | |
execute_from_command_line(sys.argv) | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line | |
utility.execute() | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv | |
self.execute(*args, **cmd_options) | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute | |
output = self.handle(*args, **options) | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped | |
res = handle_func(*args, **kwargs) | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 87, in handle | |
executor = MigrationExecutor(connection, self.migration_progress_callback) | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/db/migrations/executor.py", line 18, in __init__ | |
self.loader = MigrationLoader(self.connection) | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/db/migrations/loader.py", line 49, in __init__ | |
self.build_graph() | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/db/migrations/loader.py", line 212, in build_graph | |
self.applied_migrations = recorder.applied_migrations() | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 73, in applied_migrations | |
if self.has_table(): | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 56, in has_table | |
return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()) | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/db/backends/base/base.py", line 256, in cursor | |
return self._cursor() | |
File "/home/peacock/.local/share/virtualenvs/django-study-AQSv2gCz/lib/python3.7/site-packages/django/db/backends/dummy/base.py", line 20, in complain | |
raise ImproperlyConfigured("settings.DATABASES is improperly configured. " | |
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details. |
heroku(production)
➜ git push heroku master
Enumerating objects: 35, done.
Counting objects: 100% (35/35), done.
Delta compression using up to 8 threads
Compressing objects: 100% (27/27), done.
Writing objects: 100% (28/28), 3.89 KiB | 1.30 MiB/s, done.
Total 28 (delta 11), reused 6 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: Skipping installation, as Pipfile.lock hasn't changed since last deploy.
remote: -----> $ python mysite/manage.py collectstatic --noinput
remote: Traceback (most recent call last):
remote: File "mysite/manage.py", line 21, in <module>
remote: main()
remote: File "mysite/manage.py", line 17, in main
remote: execute_from_command_line(sys.argv)
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
remote: utility.execute()
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute
remote: django.setup()
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
remote: apps.populate(settings.INSTALLED_APPS)
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate
remote: app_config.import_models()
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models
remote: self.models_module = import_module(models_module_name)
remote: File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
remote: return _bootstrap._gcd_import(name[level:], package, level)
remote: File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
remote: File "<frozen importlib._bootstrap>", line 983, in _find_and_load
remote: File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
remote: File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
remote: File "<frozen importlib._bootstrap_external>", line 728, in exec_module
remote: File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/contrib/auth/models.py", line 2, in <module>
remote: from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/contrib/auth/base_user.py", line 47, in <module>
remote: class AbstractBaseUser(models.Model):
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/db/models/base.py", line 117, in __new__
remote: new_class.add_to_class('_meta', Options(meta, app_label))
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/db/models/base.py", line 321, in add_to_class
remote: value.contribute_to_class(cls, name)
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/db/models/options.py", line 204, in contribute_to_class
remote: self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/db/__init__.py", line 28, in __getattr__
remote: return getattr(connections[DEFAULT_DB_ALIAS], item)
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/db/utils.py", line 201, in __getitem__
remote: backend = load_backend(db['ENGINE'])
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/db/utils.py", line 110, in load_backend
remote: return import_module('%s.base' % backend_name)
remote: File "/app/.heroku/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
remote: return _bootstrap._gcd_import(name[level:], package, level)
remote: File "/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 36, in <module>
remote: raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)
remote: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
remote:
remote: ! Error while running '$ python mysite/manage.py collectstatic --noinput'.
remote: See traceback above for details.
remote:
remote: You may need to update application code to resolve this error.
remote: Or, you can disable collectstatic for this application:
remote:
remote: $ heroku config:set DISABLE_COLLECTSTATIC=1
remote:
remote: https://devcenter.heroku.com/articles/django-assets
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to peacock-django-study.
remote:
To https://git.heroku.com/peacock-django-study.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/peacock-django-study.git'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
local error