Last active
March 10, 2021 00:15
-
-
Save mtreacy002/eccb93ef0dc0c4677ab84c424806e926 to your computer and use it in GitHub Desktop.
running docker-compose up output for BIT backend pr 208
This file contains 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
# output on `docker-compose up` | |
Creating network "bridge-in-tech-backend_default" with the default driver | |
Pulling postgres (postgres:)... | |
latest: Pulling from library/postgres | |
// continute the rests | |
Status: Downloaded newer image for postgres:latest | |
// then it continues building ms first, which is not ideal, cause will mess db schemas | |
Building ms | |
Step 1/6 : FROM python:3.7 | |
3.7: Pulling from library/python | |
// continue the rests | |
Successfully built bc51b678ee64 | |
Successfully tagged bridge-in-tech-backend_ms:latest | |
WARNING: Image for service ms was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`. | |
// then continue building bit | |
Building bit | |
Step 1/18 : FROM python:latest | |
latest: Pulling from library/python | |
// continue the rests | |
Successfully built 5ac4c7883344 | |
Successfully tagged bridge-in-tech-backend_bit:latest | |
WARNING: Image for service bit was built because it did not already exist. To rebuild this image | |
you must use `docker-compose build` or `docker-compose up --build`. | |
// continue with running the servers | |
Creating postgres ... done | |
Creating MS ... done | |
Creating BIT ... done | |
Attaching to postgres, MS, BIT | |
BIT | flask run --host 0.0.0.0 | |
MS | * Serving Flask app "run.py" | |
MS | * Environment: production | |
MS | WARNING: Do not use the development server in a production environment. | |
MS | Use a production WSGI server instead. | |
MS | * Debug mode: off | |
postgres | The files belonging to this database system will be owned by user "postgres". | |
postgres | This user must also own the server process. | |
postgres | | |
postgres | The database cluster will be initialized with locale "en_US.utf8". | |
postgres | The default database encoding has accordingly been set to "UTF8". | |
postgres | The default text search configuration will be set to "english". | |
postgres | | |
postgres | Data page checksums are disabled. | |
postgres | | |
postgres | fixing permissions on existing directory /var/lib/postgresql/data ... ok | |
postgres | creating subdirectories ... ok | |
postgres | selecting dynamic shared memory implementation ... posix | |
postgres | selecting default max_connections ... 100 | |
postgres | selecting default shared_buffers ... 128MB | |
postgres | selecting default time zone ... Etc/UTC | |
postgres | creating configuration files ... ok | |
postgres | running bootstrap script ... ok | |
postgres | performing post-bootstrap initialization ... ok | |
postgres | syncing data to disk ... initdb: warning: enabling "trust" authentication for local connections | |
postgres | You can change this by editing pg_hba.conf or using the option -A, or | |
postgres | --auth-local and --auth-host, the next time you run initdb. | |
postgres | ok | |
postgres | | |
postgres | | |
postgres | Success. You can now start the database server using: | |
postgres | | |
postgres | pg_ctl -D /var/lib/postgresql/data -l logfile start | |
postgres | | |
postgres | waiting for server to start....2021-03-09 23:43:54.717 UTC [48] LOG: starting PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit | |
postgres | 2021-03-09 23:43:54.749 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" | |
postgres | 2021-03-09 23:43:54.786 UTC [49] LOG: database system was shut down at 2021-03-09 | |
23:43:54 UTC | |
postgres | 2021-03-09 23:43:54.801 UTC [48] LOG: database system is ready to accept connections | |
postgres | done | |
postgres | server started | |
postgres | | |
postgres | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init_databases.sql | |
postgres | CREATE DATABASE | |
postgres | You are now connected to database "bit_schema" as user "postgres". | |
postgres | CREATE SCHEMA | |
postgres | CREATE SCHEMA | |
postgres | ALTER DATABASE | |
postgres | | |
postgres | | |
postgres | 2021-03-09 23:43:55.637 UTC [48] LOG: received fast shutdown request | |
postgres | waiting for server to shut down....2021-03-09 23:43:55.647 UTC [48] LOG: aborting | |
any active transactions | |
postgres | 2021-03-09 23:43:55.649 UTC [48] LOG: background worker "logical replication launcher" (PID 55) exited with exit code 1 | |
postgres | 2021-03-09 23:43:55.650 UTC [50] LOG: shutting down | |
postgres | 2021-03-09 23:43:55.699 UTC [48] LOG: database system is shut down | |
postgres | done | |
postgres | server stopped | |
postgres | | |
postgres | PostgreSQL init process complete; ready for start up. | |
postgres | | |
postgres | 2021-03-09 23:43:55.834 UTC [1] LOG: starting PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit | |
postgres | 2021-03-09 23:43:55.838 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 | |
postgres | 2021-03-09 23:43:55.838 UTC [1] LOG: listening on IPv6 address "::", port 5432 | |
postgres | 2021-03-09 23:43:56.024 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" | |
postgres | 2021-03-09 23:43:56.178 UTC [77] LOG: database system was shut down at 2021-03-09 | |
23:43:55 UTC | |
postgres | 2021-03-09 23:43:56.280 UTC [1] LOG: database system is ready to accept connections | |
MS | * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) | |
BIT | * Serving Flask app "run.py" | |
BIT | * Environment: production | |
BIT | WARNING: This is a development server. Do not use it in a production deployment.BIT | Use a production WSGI server instead. | |
BIT | * Debug mode: off | |
BIT | * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) | |
BIT | 172.18.0.1 - - [09/Mar/2021 23:53:08] "GET / HTTP/1.1" 200 - | |
BIT | 172.18.0.1 - - [09/Mar/2021 23:53:08] "GET /swaggerui/swagger-ui.css HTTP/1.1" 200 | |
- | |
BIT | 172.18.0.1 - - [09/Mar/2021 23:53:08] "GET /swaggerui/swagger-ui-bundle.js HTTP/1.1" 200 - | |
BIT | 172.18.0.1 - - [09/Mar/2021 23:53:08] "GET /swaggerui/droid-sans.css HTTP/1.1" 200 | |
- | |
BIT | 172.18.0.1 - - [09/Mar/2021 23:53:08] "GET /swaggerui/swagger-ui-standalone-preset.js HTTP/1.1" 200 - | |
BIT | 172.18.0.1 - - [09/Mar/2021 23:53:09] "GET /swagger.json HTTP/1.1" 200 - | |
BIT | 172.18.0.1 - - [09/Mar/2021 23:53:09] "GET /swaggerui/favicon-32x32.png HTTP/1.1" 200 - | |
MS | Job "complete_overdue_mentorship_relations_job (trigger: cron[day='*', hour='23', minute='59', second='0'], next run at: 2021-03-10 23:59:00 UTC)" raised an exception | |
MS | Traceback (most recent call last): | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2336, in _wrap_pool_connect | |
MS | return fn() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 364, | |
in connect | |
MS | return _ConnectionFairy._checkout(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 778, | |
in _checkout | |
MS | fairy = _ConnectionRecord.checkout(pool) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 495, | |
in checkout | |
MS | rec = pool._do_get() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 140, | |
in _do_get | |
MS | self._dec_overflow() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ | |
MS | with_traceback=exc_tb, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 137, | |
in _do_get | |
MS | return self._create_connection() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 309, | |
in _create_connection | |
MS | return _ConnectionRecord(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 440, | |
in __init__ | |
MS | self.__connect(first_connect_check=True) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 661, | |
in __connect | |
MS | pool.logger.debug("Error on connect(): %s", e) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ | |
MS | with_traceback=exc_tb, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 656, | |
in __connect | |
MS | connection = pool._invoke_creator(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect | |
MS | return dialect.connect(*cargs, **cparams) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line | |
508, in connect | |
MS | return self.dbapi.connect(*cargs, **cparams) | |
MS | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in | |
connect | |
MS | conn = _connect(dsn, connection_factory=connection_factory, **kwasync) | |
MS | psycopg2.OperationalError: could not connect to server: Connection refused | |
MS | Is the server running on host "localhost" (127.0.0.1) and accepting | |
MS | TCP/IP connections on port 5432? | |
MS | could not connect to server: Cannot assign requested address | |
MS | Is the server running on host "localhost" (::1) and accepting | |
MS | TCP/IP connections on port 5432? | |
MS | | |
MS | | |
MS | The above exception was the direct cause of the following exception: | |
MS | | |
MS | Traceback (most recent call last): | |
MS | File "/usr/local/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job | |
MS | retval = job.func(*job.args, **job.kwargs) | |
MS | File "/dockerBuild/app/schedulers/complete_mentorship_cron_job.py", line 20, in complete_overdue_mentorship_relations_job | |
MS | MentorshipRelationModel.query.all(), | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3373, in all | |
MS | return list(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3535, in __iter__ | |
MS | return self._execute_and_instances(context) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3557, in _execute_and_instances | |
MS | querycontext, self._connection_from_session, close_with_result=True | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3572, in _get_bind_args | |
MS | mapper=self._bind_mapper(), clause=querycontext.statement, **kw | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3550, in _connection_from_session | |
MS | conn = self.session.connection(**kw) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1145, in connection | |
MS | execution_options=execution_options, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1151, in _connection_for_bind | |
MS | engine, execution_options | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 433, in _connection_for_bind | |
MS | conn = bind._contextual_connect() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2302, in _contextual_connect | |
MS | self._wrap_pool_connect(self.pool.connect, None), | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2340, in _wrap_pool_connect | |
MS | e, dialect, self | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _handle_dbapi_exception_noconnection | |
MS | sqlalchemy_exception, with_traceback=exc_info[2], from_=e | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2336, in _wrap_pool_connect | |
MS | return fn() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 364, | |
in connect | |
MS | return _ConnectionFairy._checkout(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 778, | |
in _checkout | |
MS | fairy = _ConnectionRecord.checkout(pool) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 495, | |
in checkout | |
MS | rec = pool._do_get() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 140, | |
in _do_get | |
MS | self._dec_overflow() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ | |
MS | with_traceback=exc_tb, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 137, | |
in _do_get | |
MS | return self._create_connection() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 309, | |
in _create_connection | |
MS | return _ConnectionRecord(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 440, | |
in __init__ | |
MS | self.__connect(first_connect_check=True) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 661, | |
in __connect | |
MS | pool.logger.debug("Error on connect(): %s", e) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ | |
MS | with_traceback=exc_tb, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 656, | |
in __connect | |
MS | connection = pool._invoke_creator(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect | |
MS | return dialect.connect(*cargs, **cparams) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line | |
508, in connect | |
MS | return self.dbapi.connect(*cargs, **cparams) | |
MS | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in | |
connect | |
MS | conn = _connect(dsn, connection_factory=connection_factory, **kwasync) | |
MS | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused | |
MS | Is the server running on host "localhost" (127.0.0.1) and accepting | |
MS | TCP/IP connections on port 5432? | |
MS | could not connect to server: Cannot assign requested address | |
MS | Is the server running on host "localhost" (::1) and accepting | |
MS | TCP/IP connections on port 5432? | |
MS | | |
MS | (Background on this error at: http://sqlalche.me/e/13/e3q8) | |
MS | [2021-03-10 00:01:34,059] ERROR in app: Exception on /register [POST] | |
MS | Traceback (most recent call last): | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2336, in _wrap_pool_connect | |
MS | return fn() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 364, | |
in connect | |
MS | return _ConnectionFairy._checkout(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 778, | |
in _checkout | |
MS | fairy = _ConnectionRecord.checkout(pool) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 495, | |
in checkout | |
MS | rec = pool._do_get() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 140, | |
in _do_get | |
MS | self._dec_overflow() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ | |
MS | with_traceback=exc_tb, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 137, | |
in _do_get | |
MS | return self._create_connection() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 309, | |
in _create_connection | |
MS | return _ConnectionRecord(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 440, | |
in __init__ | |
MS | self.__connect(first_connect_check=True) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 661, | |
in __connect | |
MS | pool.logger.debug("Error on connect(): %s", e) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ | |
MS | with_traceback=exc_tb, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 656, | |
in __connect | |
MS | connection = pool._invoke_creator(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect | |
MS | return dialect.connect(*cargs, **cparams) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line | |
508, in connect | |
MS | return self.dbapi.connect(*cargs, **cparams) | |
MS | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in | |
connect | |
MS | conn = _connect(dsn, connection_factory=connection_factory, **kwasync) | |
MS | psycopg2.OperationalError: could not connect to server: Connection refused | |
MS | Is the server running on host "localhost" (127.0.0.1) and accepting | |
MS | TCP/IP connections on port 5432? | |
MS | could not connect to server: Cannot assign requested address | |
MS | Is the server running on host "localhost" (::1) and accepting | |
MS | TCP/IP connections on port 5432? | |
MS | | |
MS | | |
MS | The above exception was the direct cause of the following exception: | |
MS | | |
MS | Traceback (most recent call last): | |
MS | File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app | |
MS | response = self.full_dispatch_request() | |
MS | File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1808, in full_dispatch_request | |
MS | self.try_trigger_before_first_request_functions() | |
MS | File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1855, in try_trigger_before_first_request_functions | |
MS | func() | |
MS | File "/dockerBuild/run.py", line 65, in create_tables | |
MS | db.create_all() | |
MS | File "/usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line | |
1039, in create_all | |
MS | self._execute_for_all_tables(app, bind, 'create_all') | |
MS | File "/usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line | |
1031, in _execute_for_all_tables | |
MS | op(bind=self.get_engine(app, bind), **extra) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4664, in create_all | |
MS | ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2094, in _run_visitor | |
MS | with self._optional_conn_ctx_manager(connection) as conn: | |
MS | File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__ | |
MS | return next(self.gen) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2086, in _optional_conn_ctx_manager | |
MS | with self._contextual_connect() as conn: | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2302, in _contextual_connect | |
MS | self._wrap_pool_connect(self.pool.connect, None), | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2340, in _wrap_pool_connect | |
MS | e, dialect, self | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _handle_dbapi_exception_noconnection | |
MS | sqlalchemy_exception, with_traceback=exc_info[2], from_=e | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2336, in _wrap_pool_connect | |
MS | return fn() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 364, | |
in connect | |
MS | return _ConnectionFairy._checkout(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 778, | |
in _checkout | |
MS | fairy = _ConnectionRecord.checkout(pool) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 495, | |
in checkout | |
MS | rec = pool._do_get() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 140, | |
in _do_get | |
MS | self._dec_overflow() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ | |
MS | with_traceback=exc_tb, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 137, | |
in _do_get | |
MS | return self._create_connection() | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 309, | |
in _create_connection | |
MS | return _ConnectionRecord(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 440, | |
in __init__ | |
MS | self.__connect(first_connect_check=True) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 661, | |
in __connect | |
MS | pool.logger.debug("Error on connect(): %s", e) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ | |
MS | with_traceback=exc_tb, | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ | |
MS | raise exception | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 656, | |
in __connect | |
MS | connection = pool._invoke_creator(self) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect | |
MS | return dialect.connect(*cargs, **cparams) | |
MS | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line | |
508, in connect | |
MS | return self.dbapi.connect(*cargs, **cparams) | |
MS | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in | |
connect | |
MS | conn = _connect(dsn, connection_factory=connection_factory, **kwasync) | |
MS | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused | |
MS | Is the server running on host "localhost" (127.0.0.1) and accepting | |
MS | TCP/IP connections on port 5432? | |
MS | could not connect to server: Cannot assign requested address | |
MS | Is the server running on host "localhost" (::1) and accepting | |
MS | TCP/IP connections on port 5432? | |
MS | | |
MS | (Background on this error at: http://sqlalche.me/e/13/e3q8) | |
MS | 172.18.0.4 - - [10/Mar/2021 00:01:34] "POST /register HTTP/1.1" 500 - | |
BIT | CRITICAL:root:{'message': 'Internal Server Error'} | |
BIT | 172.18.0.1 - - [10/Mar/2021 00:01:34] "POST /register HTTP/1.1" 500 - | |
BIT | INFO:werkzeug:172.18.0.1 - - [10/Mar/2021 00:01:34] "POST /register HTTP/1.1" 500 - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment