cardano-foundation / cardano-rosetta

An implementation of Rosetta for Cardano
https://www.rosetta-api.org
Apache License 2.0
98 stars 49 forks source link

1.2.1 : db-sync error (Identity Connection Attempt Exception, destination LocalAddress "/ipc/node.socket" exception: Network.Socket.connect: <socket: 13>: does not exist (No such file or directory) #378

Open BomaxChen opened 3 years ago

BomaxChen commented 3 years ago

Hi, all When I start cardano-rosetta on mainnet, this is my build step

1. download the cardano-rosetta code and checkout to 1.2.1
2. run command -> docker build -t cardano-rosetta .

when the block sync to 5364351,  it stop and show information below, How do I resolve this problem?
[db-sync-node.Subscription:Notice:48] [2021-05-31 05:23:39.02 UTC] Identity Starting Subscription Worker, valency 1
[db-sync-node.Subscription:Notice:245] [2021-05-31 05:23:39.02 UTC] Identity Connection Attempt Start, destination LocalAddress "/ipc/node.socket"
[db-sync-node.Subscription:Error:245] [2021-05-31 05:23:39.02 UTC] Identity Connection Attempt Exception, destination LocalAddress "/ipc/node.socket" exception: Network.Socket.connect: <socket: 13>: does not exist (No such file or directory)
[db-sync-node.ErrorPolicy:Warning:4] [2021-05-31 05:23:39.03 UTC] IP LocalAddress "/ipc/node.socket" ErrorPolicySuspendPeer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 13>: does not exist (No such file or directory))) 20s 20s
[db-sync-node.Subscription:Warning:48] [2021-05-31 05:23:39.05 UTC] Identity Failed to start all required subscriptions
rhyslbw commented 3 years ago

Sorry for the delay in response @BomaxChen

That's a curious error you're seeing. Do you have any logs reported from a service named cardano-node ?

tech-lcx commented 3 years ago

I am also facing the same issue the cardano-node error logs are showing this,

[0d885e8a:cardano.node.DnsSubscription:Error:68] [2021-06-15 16:18:07.25 UTC] Domain: "relays-new.cardano-mainnet.iohk.io" Application Exception: 13.52.189.184:3001 SubscriberError {seType = SubscriberWorkerCancelled, seMessage = "SubscriptionWorker exiting", seStack = []}
[0d885e8a:cardano.node.LocalErrorPolicy:Error:58] [2021-06-15 16:18:04.05 UTC] IP LocalAddress "" ErrorPolicyUnhandledApplicationException (MuxError MuxBearerClosed "<socket: 24> closed when reading data, waiting on next header True")

How to resolve this?

tech-lcx commented 3 years ago

@BomaxChen It works when we update the latest Cardano-DB-sync version in rosetta. Currently, they are using the 8.0.0 version of DB-sync, when I updated it to 9.0.0 in Dockerfile then it works.

caetanix commented 3 years ago

@BomaxChen It works when we update the latest Cardano-DB-sync version in rosetta. Currently, they are using the 8.0.0 version of DB-sync, when I updated it to 9.0.0 in Dockerfile then it works.

Can you build the docker without errors ?

rhyslbw commented 3 years ago

Thanks for the info. We'll be shipping a new version that will upgrade the internal Cardano services, but it should be compatible now. Are you running this on the mainnet @tech-lcx?

tech-lcx commented 3 years ago

@rhyslbw Yes, I am running it on mainnet.

@BomaxChen Yes, I build the docker without any error.

caetanix commented 3 years ago

I dont have this issue, i'm using a volume for the /ipc to communicate with cardano-wallet

volumes:
  - node-db:/data:delegated
  - node-ipc:/ipc:delegated

But i have another bug in the db-sync, that i open here #386

rhyslbw commented 3 years ago

I suspect this is a bug in cardano-db-sync@8.0.0, and will be addressed when we release a new version that includes cardano-db-sync@8.0.0. It's in the final stages of the release process now, so it shouldn't be too long now.

Tizull commented 2 years ago

Was this ever corrected?