Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with initializing db #33

Open
VadneyK opened this issue Jun 26, 2021 · 0 comments
Open

Issues with initializing db #33

VadneyK opened this issue Jun 26, 2021 · 0 comments

Comments

@VadneyK
Copy link

VadneyK commented Jun 26, 2021

I cloned this repo and tried to run the functional node to run a Prometheus exporter against it, but I am having this issue. Also I tried setting the environment variable in the dockerfile but that doesn't seem to work either. Where do I specify the password? the DB should already be initializing so the only issue should be a non-specified password right?
Screen Shot 2021-06-26 at 3 37 56 PM

kentarovadney@Kentaros-MacBook-Air docker-stellar-core % docker-compose -f docker-compose.example.yml up
Docker Compose is now in the Docker CLI, try docker compose up

Creating docker-stellar-core_stellar-core-postgres_1 ... done
Creating docker-stellar-core_stellar-core_1 ... done
Attaching to docker-stellar-core_stellar-core-postgres_1, docker-stellar-core_stellar-core_1
stellar-core-postgres_1 | Error: Database is uninitialized and superuser password is not specified.
stellar-core-postgres_1 | You must specify POSTGRES_PASSWORD to a non-empty value for the
stellar-core-postgres_1 | superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
stellar-core-postgres_1 |
stellar-core-postgres_1 | You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
stellar-core-postgres_1 | connections without a password. This is not recommended.
stellar-core-postgres_1 |
stellar-core-postgres_1 | See PostgreSQL documentation about "trust":
stellar-core-postgres_1 | https://www.postgresql.org/docs/current/auth-trust.html
stellar-core_1 | Initializing core db...
stellar-core_1 | Using DEPRECATED command-line syntax.
stellar-core_1 | Please refer to documentation for new syntax.
stellar-core_1 |
stellar-core_1 | 2021-06-26T22:34:33.027 [default INFO] Assigning calculated value of 1 to FAILURE_SAFETY
stellar-core_1 | 2021-06-26T22:34:33.061 GD4E3 [Database INFO] Connecting to: postgresql://dbname=stellar-core user=postgres password=******** host=stellar-core-postgres
docker-stellar-core_stellar-core-postgres_1 exited with code 1
stellar-core_1 | 2021-06-26T22:34:36.179 GD4E3 [default INFO] Application destructing
stellar-core_1 | 2021-06-26T22:34:36.186 GD4E3 [default INFO] Application destroyed
stellar-core_1 | 2021-06-26T22:34:36.188 GD4E3 [default FATAL] Got an exception: Cannot establish connection to the database.
stellar-core_1 | could not connect to server: No route to host
stellar-core_1 | Is the server running on host "stellar-core-postgres" (172.19.0.2) and accepting
stellar-core_1 | TCP/IP connections on port 5432?
stellar-core_1 | [DeprecatedCommandLine.cpp:444]
stellar-core-postgres_1 | Error: Database is uninitialized and superuser password is not specified.
stellar-core-postgres_1 | You must specify POSTGRES_PASSWORD to a non-empty value for the
stellar-core-postgres_1 | superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
stellar-core-postgres_1 |
stellar-core-postgres_1 | You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
stellar-core-postgres_1 | connections without a password. This is not recommended.
stellar-core-postgres_1 |
stellar-core-postgres_1 | See PostgreSQL documentation about "trust":
stellar-core-postgres_1 | https://www.postgresql.org/docs/current/auth-trust.html
kentarovadney@Kentaros-MacBook-Air docker-stellar-core % docker-compose -f docker-compose.example.yml up -e POSTGRES_PASSWORD=password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant