thanks for the fast answer, I updated cockroach to the latest version, started a node but now another error appeared:
{“level”:“info”,“ts”:“2022-05-23T13:52:07.899Z”,“caller”:“migrate/migrate.go:147”,“msg”:“Database connection”,“dsn”:“postgres://root@localhost:26257/nakama?sslmode=prefer”}
{“level”:“fatal”,“ts”:“2022-05-23T13:52:07.913Z”,“caller”:“migrate/migrate.go:161”,“msg”:“Failed to check if db exists”,“db”:“nakama”,“error”:“failed to connect to host=localhost user=root database=nakama: dial error (dial tcp [::1]:26257: connect: connection refused)”}
Well I don’t know why there were tons of others errors but then I randomly restarted the systemctl service and now it is all working as it should do. Migrate up seems fine:
{"level":"info","ts":"2022-05-23T18:01:18.953Z","caller":"migrate/migrate.go:147","msg":"Database connection","dsn":"postgres://root@localhost:26257/nakama?sslmode=prefer"}
{"level":"info","ts":"2022-05-23T18:01:18.963Z","caller":"migrate/migrate.go:167","msg":"Creating new database","name":"nakama"}
{"level":"info","ts":"2022-05-23T18:01:18.983Z","caller":"migrate/migrate.go:195","msg":"Database information","version":"CockroachDB CCL v21.1.19 (x86_64-unknown-linux-gnu, built 2022/05/09 15:01:31, go1.15.14)"}
{"level":"info","ts":"2022-05-23T18:01:20.761Z","caller":"migrate/migrate.go:218","msg":"Successfully applied migration","count":6}
I only think it might have been the stored cockroach-data. Probably it worked cause i deleted the data folder then restarted the service, but actually not sure!