Database configuration in `divio app setup` not working correctly
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Reproduce the failure with divio app setup <my-project>, then inspect the Docker container with docker ps and docker logs as described. Trace the setup entry point and database configuration path; done means the local PostgreSQL container starts successfully and the setup command completes without the password error.
Written by the indexing model from the issue text.
Description
When I run divio app setup <my-project> I get this output:
creating new database container
===> Pulling database from <my-project> test environment
---> Preparing download [99s]
---> Writing temp file: /home/<user>/<my-project>/.divio/data.tar.gz
---> Downloading database [4s]
---> Starting local database server
[+] Running 1/1
⠿ Container <my-project>-db-1 Started 0.3s
[0s]
---> Waiting for local database serverCouldn't connect to database container. Database server may not have started.
Using docker ps and docker logs I get:
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
connections without a password. This is *not* recommended.
See PostgreSQL documentation about "trust":
https://www.postgresql.org/docs/current/auth-trust.html
I'm not sure why the DB is not getting set up correctly here?
- Dominant language
- Python
- Stars
- 23
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from divio/divio-cli
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100