You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am trying to install via docker-compose as per the instructions
and tried to follow the part about credentials
But adding a new app to my Recurse profile gives me only oauth settings (ID, secret, and redirect URI).
Nothing about SOCIAL_AUTH_HS_KEY or SOCIAL_AUTH_HS_SECRET
Maybe the oauth id is SOCIAL_AUTH_HS_KEY? I thought I would at least try that.
But the next hurdle is that docker-compose up isn't working for me.
I installed via brew install --cask docker and went through the desktop app setup with account login etc.
Here's what happens; looks like some issue with database config.
$ docker-compose up --force-recreate --build
[+] Building 37.8s (19/19) FINISHED
=> [migration internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 192B 0.0s
=> [migration internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [web internal] load metadata for docker.io/library/python:3.7 1.0s
=> [migration auth] library/python:pull token for registry-1.docker.io 0.0s
=> [web 1/6] FROM docker.io/library/python:3.7@sha256:5362766ecaf46aee86aa9a6d9a3d23f701 0.0s
=> [migration internal] load build context 0.1s
=> => transferring context: 189.95kB 0.1s
=> CACHED [web 2/6] RUN mkdir /code 0.0s
=> CACHED [web 3/6] WORKDIR /code 0.0s
=> [migration 4/6] ADD requirements.txt /code/ 0.0s
=> [migration 5/6] RUN pip install -r requirements.txt 34.2s
=> [migration 6/6] ADD . /code/ 0.2s
=> [migration] exporting to image 1.9s
=> => exporting layers 1.9s
=> => writing image sha256:5dd68096c6db501237d1e9393d2dd91733605d6412233229a4d1190cc021c 0.0s
=> => naming to docker.io/library/app 0.0s
=> [web internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [web internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 192B 0.0s
=> [web internal] load build context 0.1s
=> => transferring context: 160.01kB 0.1s
=> CACHED [web 4/6] ADD requirements.txt /code/ 0.0s
=> CACHED [web 5/6] RUN pip install -r requirements.txt 0.0s
=> CACHED [web 6/6] ADD . /code/ 0.0s
=> [web] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:a012d32659635578fb496c7dfa54de8b50974acc8abec3702eac4959654fc 0.0s
=> => naming to docker.io/library/blaggregator-web 0.0s
[+] Running 3/3
✔ Container blaggregator-db-1 Recreated 0.1s
✔ Container blaggregator-migration-1 Recreated 0.1s
✔ Container blaggregator-web-1 Recreated 0.1s
Attaching to blaggregator-db-1, blaggregator-migration-1, blaggregator-web-1
blaggregator-db-1 | Error: Database is uninitialized and superuser password is not specified.
blaggregator-db-1 | You must specify POSTGRES_PASSWORD to a non-empty value for the
blaggregator-db-1 | superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
blaggregator-db-1 |
blaggregator-db-1 | You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
blaggregator-db-1 | connections without a password. This is *not* recommended.
blaggregator-db-1 |
blaggregator-db-1 | See PostgreSQL documentation about "trust":
blaggregator-db-1 | https://www.postgresql.org/docs/current/auth-trust.html
blaggregator-db-1 |
blaggregator-db-1 exited with code 1
blaggregator-migration-1 | ** DETECTED DOCKER ENVIRONMENT
blaggregator-web-1 | ** DETECTED DOCKER ENVIRONMENT
blaggregator-migration-1 | Traceback (most recent call last):
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
blaggregator-migration-1 | self.connect()
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-migration-1 | return func(*args, **kwargs)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 200, in connect
blaggregator-migration-1 | self.connection = self.get_new_connection(conn_params)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-migration-1 | return func(*args, **kwargs)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
blaggregator-migration-1 | connection = Database.connect(**conn_params)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 122, in connect
blaggregator-migration-1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
blaggregator-migration-1 | psycopg2.OperationalError: could not translate host name "db" to address: Name or service not known
blaggregator-migration-1 |
blaggregator-migration-1 |
blaggregator-migration-1 | The above exception was the direct cause of the following exception:
blaggregator-migration-1 |
blaggregator-migration-1 | Traceback (most recent call last):
blaggregator-migration-1 | File "manage.py", line 10, in <module>
blaggregator-migration-1 |
blaggregator-migration-1 | execute_from_command_line(sys.argv)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
blaggregator-migration-1 | utility.execute()
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 413, in execute
blaggregator-migration-1 | self.fetch_command(subcommand).run_from_argv(self.argv)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 354, in run_from_argv
blaggregator-migration-1 | self.execute(*args, **cmd_options)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 398, in execute
blaggregator-migration-1 | output = self.handle(*args, **options)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 89, in wrapped
blaggregator-migration-1 | res = handle_func(*args, **kwargs)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 75, in handle
blaggregator-migration-1 | self.check(databases=[database])
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 423, in check
blaggregator-migration-1 | databases=databases,
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/checks/registry.py", line 76, in run_checks
blaggregator-migration-1 | new_errors = check(app_configs=app_configs, databases=databases)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/core/checks/model_checks.py", line 34, in check_all_models
blaggregator-migration-1 | errors.extend(model.check(**kwargs))
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 1290, in check
blaggregator-migration-1 | *cls._check_indexes(databases),
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 1682, in _check_indexes
blaggregator-migration-1 | connection.features.supports_covering_indexes or
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
blaggregator-migration-1 | res = instance.__dict__[self.name] = self.func(instance)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/features.py", line 93, in is_postgresql_11
blaggregator-migration-1 | return self.connection.pg_version >= 110000
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
blaggregator-migration-1 | res = instance.__dict__[self.name] = self.func(instance)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 329, in pg_version
blaggregator-migration-1 | with self.temporary_connection():
blaggregator-migration-1 | File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
blaggregator-migration-1 | return next(self.gen)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 603, in temporary_connection
blaggregator-migration-1 |
blaggregator-migration-1 | with self.cursor() as cursor:
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-migration-1 | return func(*args, **kwargs)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 259, in cursor
blaggregator-migration-1 | return self._cursor()
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 235, in _cursor
blaggregator-migration-1 |
blaggregator-migration-1 | self.ensure_connection()
blaggregator-migration-1 |
blaggregator-migration-1 |
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-migration-1 | return func(*args, **kwargs)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
blaggregator-migration-1 |
blaggregator-migration-1 | self.connect()
blaggregator-migration-1 |
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
blaggregator-migration-1 |
blaggregator-migration-1 | raise dj_exc_value.with_traceback(traceback) from exc_value
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
blaggregator-migration-1 | self.connect()
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-migration-1 | return func(*args, **kwargs)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 200, in connect
blaggregator-migration-1 | self.connection = self.get_new_connection(conn_params)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-migration-1 | return func(*args, **kwargs)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
blaggregator-migration-1 | connection = Database.connect(**conn_params)
blaggregator-migration-1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 122, in connect
blaggregator-migration-1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
blaggregator-migration-1 | django.db.utils.OperationalError: could not translate host name "db" to address: Name or service not known
blaggregator-migration-1 |
blaggregator-migration-1 |
blaggregator-web-1 | ** DETECTED DOCKER ENVIRONMENT
blaggregator-migration-1 exited with code 1
blaggregator-web-1 | Watching for file changes with StatReloader
blaggregator-web-1 | Performing system checks...
blaggregator-web-1 |
blaggregator-web-1 |
blaggregator-web-1 | System check identified no issues (0 silenced).
blaggregator-web-1 | Exception in thread django-main-thread:
blaggregator-web-1 | Traceback (most recent call last):
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
blaggregator-web-1 | self.connect()
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-web-1 | return func(*args, **kwargs)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 200, in connect
blaggregator-web-1 | self.connection = self.get_new_connection(conn_params)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-web-1 | return func(*args, **kwargs)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
blaggregator-web-1 | connection = Database.connect(**conn_params)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 122, in connect
blaggregator-web-1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
blaggregator-web-1 | psycopg2.OperationalError: could not translate host name "db" to address: Name or service not known
blaggregator-web-1 |
blaggregator-web-1 |
blaggregator-web-1 | The above exception was the direct cause of the following exception:
blaggregator-web-1 |
blaggregator-web-1 | Traceback (most recent call last):
blaggregator-web-1 | File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
blaggregator-web-1 | self.run()
blaggregator-web-1 | File "/usr/local/lib/python3.7/threading.py", line 870, in run
blaggregator-web-1 | self._target(*self._args, **self._kwargs)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/autoreload.py", line 64, in wrapper
blaggregator-web-1 | fn(*args, **kwargs)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 121, in inner_run
blaggregator-web-1 | self.check_migrations()
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 486, in check_migrations
blaggregator-web-1 | executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 18, in __init__
blaggregator-web-1 | self.loader = MigrationLoader(self.connection)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/loader.py", line 53, in __init__
blaggregator-web-1 | self.build_graph()
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/loader.py", line 220, in build_graph
blaggregator-web-1 | self.applied_migrations = recorder.applied_migrations()
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 77, in applied_migrations
blaggregator-web-1 | if self.has_table():
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 55, in has_table
blaggregator-web-1 | with self.connection.cursor() as cursor:
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-web-1 | return func(*args, **kwargs)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 259, in cursor
blaggregator-web-1 | return self._cursor()
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 235, in _cursor
blaggregator-web-1 | self.ensure_connection()
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-web-1 | return func(*args, **kwargs)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
blaggregator-web-1 | self.connect()
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
blaggregator-web-1 | raise dj_exc_value.with_traceback(traceback) from exc_value
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
blaggregator-web-1 | self.connect()
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-web-1 | return func(*args, **kwargs)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 200, in connect
blaggregator-web-1 | self.connection = self.get_new_connection(conn_params)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
blaggregator-web-1 | return func(*args, **kwargs)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
blaggregator-web-1 | connection = Database.connect(**conn_params)
blaggregator-web-1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 122, in connect
blaggregator-web-1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
blaggregator-web-1 | django.db.utils.OperationalError: could not translate host name "db" to address: Name or service not known
The text was updated successfully, but these errors were encountered:
Am trying to install via docker-compose as per the instructions
and tried to follow the part about credentials
But adding a new app to my Recurse profile gives me only oauth settings (ID, secret, and redirect URI).
Nothing about
SOCIAL_AUTH_HS_KEY
orSOCIAL_AUTH_HS_SECRET
Maybe the oauth
id
isSOCIAL_AUTH_HS_KEY
? I thought I would at least try that.But the next hurdle is that
docker-compose up
isn't working for me.I installed via
brew install --cask docker
and went through the desktop app setup with account login etc.Here's what happens; looks like some issue with database config.
The text was updated successfully, but these errors were encountered: