Closed YuXiaoCoder closed 2 months ago
Hello,
so two things:
First of all the tokenregistry takes some time to start, when this is done the background service will start syncing the assets.
And did you set these environment variables to the background service as stated within the Readme?
CHAIN_FOLLOWER_START_SLOT=23068800 \ CHAIN_FOLLOWER_START_ID=a650a3f398ba4a9427ec8c293e9f7156d81fd2f7ca849014d8d2c1156c359b3a
This is needed otherwise the background service will get stuck.
I was referring to this docker-compose link, where CHAIN_FOLLOWER_START_SLOT and CHAIN_FOLLOWER_START_ID are variables that are set for background containers, not token-metadata-registry
I tried to recreate this issue in my environment without success. Could you elaborate further how your environment looks like? Could you have a look into the db-sync logs and see if there's a problem? An issue could be that the used db-sync version has a known issue which hinders using snapshots. I'm currently working on upgrading db-sync within GraphQL, since the update was just released two days ago.
I used the latest version of db-sync and tried again
I will share my log of my successes.
2024-08-14T18:18:19.426Z INFO 11 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
2024-08-14T18:19:18.275Z INFO 11 --- [ scheduling-1] o.c.t.r.s.TokenMetadataSyncCronJob : about to start syncing
2024-08-14T18:19:18.275Z INFO 11 --- [ scheduling-1] o.c.t.registry.service.GitService : exists and is git repo
d2024-08-14T20:05:19.795Z INFO 11 --- [ scheduling-1] o.c.t.r.s.TokenMetadataSyncCronJob : syncing completed
Hey @YuXiaoCoder! Have you found a solution to that? If not, could you please share your db-sync logs?
Hey @YuXiaoCoder! Have you found a solution to that? If not, could you please share your db-sync logs?
After updating the version, it's already working, thanks
Summary
Hi, I am running a Cardano node on the mainnet with the following versions:
Due to the database upgrade, I reloaded the latest db-sync snapshot and cardano-node snapshot
Steps to reproduce the bug
After the service starts, everything works fine, but cardano-graphql-server is not populated with Asset data, which prevents the interface from being used After the service starts, everything works fine, but metadata 一直显示即将同步数据,cardano-graphql-server 显示没有Remote schema is missing Block
metadata
kubectl logs ada-1-0 ada-1-cardano-graphql-server -f
Actual Result
cardano-graphql does not work
Expected Result
cardano-graphql is up and running
Environment
Platform
Platform version
Ubuntu
Runtime
Runtime version
v18.20.3