Skip to content

Instantly share code, notes, and snippets.

@alokm
Created August 10, 2019 01:59
Show Gist options
  • Save alokm/648bc82430f87bba5c5817ed35fef016 to your computer and use it in GitHub Desktop.
Save alokm/648bc82430f87bba5c5817ed35fef016 to your computer and use it in GitHub Desktop.
solvo-base-api heroku logs
(solvo_base_api) bash-3.2$ heroku logs --tail
2019-08-09T03:41:59.397413+00:00 app[web.1]: reraise(type(exception), exception, tb=exc_tb, cause=cause)
2019-08-09T03:41:59.397415+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 152, in reraise
2019-08-09T03:41:59.397417+00:00 app[web.1]: raise value.with_traceback(tb)
2019-08-09T03:41:59.397426+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
2019-08-09T03:41:59.397428+00:00 app[web.1]: cursor, statement, parameters, context
2019-08-09T03:41:59.397430+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
2019-08-09T03:41:59.397431+00:00 app[web.1]: cursor.execute(statement, parameters)
2019-08-09T03:41:59.397433+00:00 app[web.1]: sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "model" does not exist
2019-08-09T03:41:59.397435+00:00 app[web.1]: LINE 2: FROM model
2019-08-09T03:41:59.397436+00:00 app[web.1]: ^
2019-08-09T03:41:59.397438+00:00 app[web.1]:
2019-08-09T03:41:59.397440+00:00 app[web.1]: [SQL: SELECT model.id AS model_id, model.name AS model_name, model.created AS model_created, model.status AS model_status, model.error AS model_error
2019-08-09T03:41:59.397441+00:00 app[web.1]: FROM model]
2019-08-09T03:41:59.397443+00:00 app[web.1]: (Background on this error at: http://sqlalche.me/e/f405)
2019-08-09T03:41:59.397445+00:00 app[web.1]: 10.30.71.105 - - [09/Aug/2019:03:41:59 +0000] "GET /model HTTP/1.1" 500 0 "-" "-"
2019-08-09T03:41:59.397335+00:00 heroku[router]: at=info method=GET path="/model" host=solvo-base-api.herokuapp.com request_id=79351f6b-4268-4f0a-9148-19dfa514085f fwd="76.14.6.115" dyno=web.1 connect=0ms service=132ms status=500 bytes=244 protocol=https
2019-08-09T03:42:43.183646+00:00 app[api]: Starting process with command `flask db init` by user milo@milohub.com
2019-08-09T03:42:51.290570+00:00 heroku[run.4978]: Awaiting client
2019-08-09T03:42:51.512698+00:00 heroku[run.4978]: State changed from starting to up
2019-08-09T03:42:51.321403+00:00 heroku[run.4978]: Starting process with command `flask db init`
2019-08-09T03:42:58.129471+00:00 heroku[run.4978]: State changed from up to complete
2019-08-09T03:42:58.102671+00:00 heroku[run.4978]: Process exited with status 1
2019-08-09T03:43:25.287126+00:00 heroku[router]: at=info method=GET path="/model" host=solvo-base-api.herokuapp.com request_id=4eea04e1-1566-4fb9-9c1b-f711440db54b fwd="76.14.6.115" dyno=web.1 connect=0ms service=9ms status=500 bytes=244 protocol=https
2019-08-09T03:43:25.285739+00:00 app[web.1]: [2019-08-09 03:43:25 +0000] [22] [ERROR] Error handling request /model
2019-08-09T03:43:25.285747+00:00 app[web.1]: Traceback (most recent call last):
2019-08-09T03:43:25.285755+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
2019-08-09T03:43:25.285757+00:00 app[web.1]: cursor, statement, parameters, context
2019-08-09T03:43:25.285760+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
2019-08-09T03:43:25.285762+00:00 app[web.1]: cursor.execute(statement, parameters)
2019-08-09T03:43:25.285764+00:00 app[web.1]: psycopg2.errors.UndefinedTable: relation "model" does not exist
2019-08-09T03:43:25.285766+00:00 app[web.1]: LINE 2: FROM model
2019-08-09T03:43:25.285768+00:00 app[web.1]: ^
2019-08-09T03:43:25.285770+00:00 app[web.1]:
2019-08-09T03:43:25.285771+00:00 app[web.1]:
2019-08-09T03:43:25.285773+00:00 app[web.1]: The above exception was the direct cause of the following exception:
2019-08-09T03:43:25.285774+00:00 app[web.1]:
2019-08-09T03:43:25.285776+00:00 app[web.1]: Traceback (most recent call last):
2019-08-09T03:43:25.285777+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 135, in handle
2019-08-09T03:43:25.285779+00:00 app[web.1]: self.handle_request(listener, req, client, addr)
2019-08-09T03:43:25.285780+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
2019-08-09T03:43:25.285782+00:00 app[web.1]: respiter = self.wsgi(environ, resp.start_response)
2019-08-09T03:43:25.285784+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 2463, in __call__
2019-08-09T03:43:25.285785+00:00 app[web.1]: return self.wsgi_app(environ, start_response)
2019-08-09T03:43:25.285787+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 2449, in wsgi_app
2019-08-09T03:43:25.285789+00:00 app[web.1]: response = self.handle_exception(e)
2019-08-09T03:43:25.285790+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 1866, in handle_exception
2019-08-09T03:43:25.285792+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2019-08-09T03:43:25.285793+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
2019-08-09T03:43:25.285794+00:00 app[web.1]: raise value
2019-08-09T03:43:25.285796+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
2019-08-09T03:43:25.285797+00:00 app[web.1]: response = self.full_dispatch_request()
2019-08-09T03:43:25.285799+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
2019-08-09T03:43:25.285800+00:00 app[web.1]: rv = self.handle_user_exception(e)
2019-08-09T03:43:25.285802+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
2019-08-09T03:43:25.285803+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2019-08-09T03:43:25.285805+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
2019-08-09T03:43:25.285806+00:00 app[web.1]: raise value
2019-08-09T03:43:25.285807+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
2019-08-09T03:43:25.285809+00:00 app[web.1]: rv = self.dispatch_request()
2019-08-09T03:43:25.285810+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/flask_debugtoolbar/__init__.py", line 125, in dispatch_request
2019-08-09T03:43:25.285812+00:00 app[web.1]: return view_func(**req.view_args)
2019-08-09T03:43:25.285813+00:00 app[web.1]: File "/app/solvo_base_api/blueprints/main.py", line 38, in list_models
2019-08-09T03:43:25.285815+00:00 app[web.1]: all_models = Model.query.all()
2019-08-09T03:43:25.285817+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3174, in all
2019-08-09T03:43:25.285819+00:00 app[web.1]: return list(self)
2019-08-09T03:43:25.285821+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3330, in __iter__
2019-08-09T03:43:25.285824+00:00 app[web.1]: return self._execute_and_instances(context)
2019-08-09T03:43:25.285826+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3355, in _execute_and_instances
2019-08-09T03:43:25.285828+00:00 app[web.1]: result = conn.execute(querycontext.statement, self._params)
2019-08-09T03:43:25.285830+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 988, in execute
2019-08-09T03:43:25.285832+00:00 app[web.1]: return meth(self, multiparams, params)
2019-08-09T03:43:25.285834+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
2019-08-09T03:43:25.285836+00:00 app[web.1]: return connection._execute_clauseelement(self, multiparams, params)
2019-08-09T03:43:25.285838+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
2019-08-09T03:43:25.285840+00:00 app[web.1]: distilled_params,
2019-08-09T03:43:25.285842+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
2019-08-09T03:43:25.285844+00:00 app[web.1]: e, statement, parameters, cursor, context
2019-08-09T03:43:25.285846+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
2019-08-09T03:43:25.285848+00:00 app[web.1]: util.raise_from_cause(sqlalchemy_exception, exc_info)
2019-08-09T03:43:25.285850+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause
2019-08-09T03:43:25.285852+00:00 app[web.1]: reraise(type(exception), exception, tb=exc_tb, cause=cause)
2019-08-09T03:43:25.285855+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 152, in reraise
2019-08-09T03:43:25.285857+00:00 app[web.1]: raise value.with_traceback(tb)
2019-08-09T03:43:25.285866+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
2019-08-09T03:43:25.285869+00:00 app[web.1]: cursor, statement, parameters, context
2019-08-09T03:43:25.285870+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
2019-08-09T03:43:25.285872+00:00 app[web.1]: cursor.execute(statement, parameters)
2019-08-09T03:43:25.285873+00:00 app[web.1]: sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "model" does not exist
2019-08-09T03:43:25.285875+00:00 app[web.1]: LINE 2: FROM model
2019-08-09T03:43:25.285877+00:00 app[web.1]: ^
2019-08-09T03:43:25.285878+00:00 app[web.1]:
2019-08-09T03:43:25.285882+00:00 app[web.1]: [SQL: SELECT model.id AS model_id, model.name AS model_name, model.created AS model_created, model.status AS model_status, model.error AS model_error
2019-08-09T03:43:25.285883+00:00 app[web.1]: FROM model]
2019-08-09T03:43:25.285885+00:00 app[web.1]: (Background on this error at: http://sqlalche.me/e/f405)
2019-08-09T03:43:25.286210+00:00 app[web.1]: 10.5.253.6 - - [09/Aug/2019:03:43:25 +0000] "GET /model HTTP/1.1" 500 0 "-" "-"
2019-08-09T04:15:28.265226+00:00 heroku[web.1]: Idling
2019-08-09T04:15:28.272138+00:00 heroku[web.1]: State changed from up to down
2019-08-09T04:15:29.432877+00:00 app[web.1]: [2019-08-09 04:15:29 +0000] [22] [INFO] Worker exiting (pid: 22)
2019-08-09T04:15:29.403157+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2019-08-09T04:15:29.569555+00:00 heroku[web.1]: Process exited with status 143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment