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

Ton-indexer-index-api-1 error #106

Open
zhy827827 opened this issue Dec 16, 2024 · 0 comments
Open

Ton-indexer-index-api-1 error #106

zhy827827 opened this issue Dec 16, 2024 · 0 comments

Comments

@zhy827827
Copy link

zhy827827 commented Dec 16, 2024

Docker compose deploy indexer,Below is the startup log of ton-Indexer-index-api

POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
TON_INDEXER_TON_HTTP_API_ENDPOINT=http://127.0.0.1:8998
PWD=/
TON_INDEXER_PG_DSN=postgresql://postgres:MY_PASSWORD@postgres:5432/ton_index
HOME=/root
POSTGRES_DBNAME=ton_index
POSTGRES_PUBLISH_PORT=5432
POSTGRES_PORT=5432
TON_INDEXER_REDIS_DSN=redis://event-cache:6379
SHLVL=1
POSTGRES_USER=postgres
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TON_INDEXER_API_ROOT_PATH=
_=/usr/bin/printenv
Args:  -v2 http://127.0.0.1:8998
2024/12/16 08:34:09 Failed to ping to database 'postgresql://postgres:MY_PASSWORD@postgres:5432/ton_index': failed to connect to `user=postgres database=ton_index`:
	172.30.0.5:5432 (postgres): tls error: server refused TLS connection
	172.30.0.5:5432 (postgres): server error: FATAL: database "ton_index" does not exist (SQLSTATE 3D000)

According to the official documentation, I don't need to create the ton_index database.

how to fix this issuse?

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