Hello,
I cannot do Nakama migration on freshly installed Debian 10
I have installed Cockroach according to guide (successfully ran the demo):
https://www.cockroachlabs.com/docs/v20.2/install-cockroachdb-linux
I have copied Nakama binary from the repository, as suggested:
https://github.com/heroiclabs/nakama/releases/tag/v3.0.0
Then I continued following the guide:
<new_user_limit_https>://heroiclabs.com/docs/install-binary/#install-nakama-on-linux
but got stuck on point 4:
username:~$ nakama migrate up
{"level":"info","ts":"2021-01-23T22:33:47.229+0100","caller":"migrate/migrate.go:139","msg":"Database connection","dsn":"postgresql://root@localhost:26257?sslmode=disable"}
{"level":"fatal","ts":"2021-01-23T22:33:47.232+0100","caller":"migrate/migrate.go:147","msg":"Error pinging database","error":"dial tcp 127.0.0.1:26257: connect: connection refused"}
I also tried adding the address manually:
username:~$ nakama migrate up --database.address root@cockroachdb:26257
{"level":"info","ts":"2021-01-23T23:09:35.088+0100","caller":"migrate/migrate.go:139","msg":"Database connection","dsn":"postgresql://root@cockroachdb:26257?sslmode=disable"}
{"level":"fatal","ts":"2021-01-23T23:09:40.118+0100","caller":"migrate/migrate.go:147","msg":"Error pinging database","error":"dial tcp: lookup cockroachdb on <MY_IP>:53: no such host"}
I donât want to use Postgres, I would like to use Cockroach, as the guide suggests.
Can someone check whatâs wrong here?
I think I did not skip any steps.
Could it be due to âpostgresâ prefix being hardcoded:
<new_user_limit_https>://github.com/heroiclabs/nakama/blob/master/migrate/migrate.go
line: 121
rawURL := fmt.Sprintf("postgresql://%s", ms.dbAddress)
Thank you,
Looping