ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.76k stars 1.31k forks source link

JSON-RPC error: transport error: Couldn't connect to host: Resource temporarily unavailable (os error 35) #2147

Open raojianli opened 1 year ago

raojianli commented 1 year ago

when running ./ord wallet inscribe xxx, causes an error

philmartin2525 commented 1 year ago

@raojianli did you ever find a fix for this. I had a similar error:

copied from https://github.com/ordinals/ord/issues/1044#issuecomment-1623037830:

I got this error while trying to run ord preview. I am able to run ord info ord index run and ord server successfully. Any thoughts on why this would be the case? Happy to share more information but I'm not sure what would be useful yet.

Edit: perhaps this could be helpful - I've only indexed about 300k blocks and the following is the last several lines of output of ord preview

2023-07-06T05:58:02Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-06T05:58:02Z Saw new header hash=080720c024924eab69a56f63fe93f0e59a11df1d5af35f3dd6c9cebf9a2891d1 height=40
2023-07-06T05:58:02Z UpdateTip: new best=080720c024924eab69a56f63fe93f0e59a11df1d5af35f3dd6c9cebf9a2891d1 height=40 version=0x20000000 log2_work=6.357552 tx=41 date='2023-07-06T05:58:02Z' progress=1.000000 cache=0.0MiB(40txo)
2023-07-06T05:58:02Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-06T05:58:02Z Saw new header hash=248f36950dfdcff77d65a89ffad2259175bb98e56f29a0d0f5b4981076f7fc3d height=41
2023-07-06T05:58:02Z UpdateTip: new best=248f36950dfdcff77d65a89ffad2259175bb98e56f29a0d0f5b4981076f7fc3d height=41 version=0x20000000 log2_work=6.392317 tx=42 date='2023-07-06T05:58:02Z' progress=1.000000 cache=0.0MiB(41txo)
2023-07-06T05:58:02Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-06T05:58:02Z Saw new header hash=2cff172d479bec59c4bd47da4bbb14836bbde4d6c4da0fe6457e529618ae5b46 height=42
2023-07-06T05:58:02Z UpdateTip: new best=2cff172d479bec59c4bd47da4bbb14836bbde4d6c4da0fe6457e529618ae5b46 height=42 version=0x20000000 log2_work=6.426265 tx=43 date='2023-07-06T05:58:02Z' progress=1.000000 cache=0.0MiB(42txo)
2023-07-06T05:58:02Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-06T05:58:02Z Saw new header hash=50e9108cf2e9f34240e1c4ebac61f25e7d3837e47cafe18fb39306ebd325491f height=43
2023-07-06T05:58:02Z [default wallet] AddToWallet fde16e42e2ab7afde35d589b279873abb03b668d95a2fc7862b2e1cf9177019b  new
2023-07-06T05:58:03Z [default wallet] AddToWallet a0257eadaccabaa7ce5155caec45479a008973174d74d8cedca0f7d17d6acd18  new
2023-07-06T05:58:03Z [default wallet] AddToWallet 60d077263c8f4b3d1e3fb13a10e3da7144990dd5d1f91f30a49ce95e15a9bc67  new
2023-07-06T05:58:03Z [default wallet] AddToWallet 374ddcc67c222e31865e69b6c20ed62290392f86f5c6c0126ee114ff4f1a22ed  new
error: JSON-RPC error: transport error: Couldn't connect to host: Resource temporarily unavailable (os error 35)

Edit 2: Upon running this again, it appears the error occurs at different block heights, so it's nondeterministic:

2023-07-06T06:00:47Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-06T06:00:47Z Saw new header hash=4b83ea72b24499cb6fc647ba9794074cc35e95527627199bb0f7831abfb937f1 height=34
2023-07-06T06:00:47Z UpdateTip: new best=4b83ea72b24499cb6fc647ba9794074cc35e95527627199bb0f7831abfb937f1 height=34 version=0x20000000 log2_work=6.129283 tx=35 date='2023-07-06T06:00:47Z' progress=1.000000 cache=0.0MiB(34txo)
2023-07-06T06:00:47Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-06T06:00:47Z Saw new header hash=50acc1989083180574ca4f3485fe21c0c1b9b77a1fb346db237c257fda166831 height=35
2023-07-06T06:00:47Z UpdateTip: new best=50acc1989083180574ca4f3485fe21c0c1b9b77a1fb346db237c257fda166831 height=35 version=0x20000000 log2_work=6.169925 tx=36 date='2023-07-06T06:00:47Z' progress=1.000000 cache=0.0MiB(35txo)
2023-07-06T06:00:47Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-06T06:00:47Z Saw new header hash=0959a9d4f03f51259b3c6901a6f3f162465b560a20cd7d6ae3e7c1bfba045597 height=36
2023-07-06T06:00:47Z UpdateTip: new best=0959a9d4f03f51259b3c6901a6f3f162465b560a20cd7d6ae3e7c1bfba045597 height=36 version=0x20000000 log2_work=6.209453 tx=37 date='2023-07-06T06:00:47Z' progress=1.000000 cache=0.0MiB(36txo)
2023-07-06T06:00:47Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-06T06:00:47Z Saw new header hash=216dfa291f256f2b270476f12d68db3e19d5018269ed1d1ed1cbb235080b6224 height=37
2023-07-06T06:00:47Z [default wallet] AddToWallet 4c4b07e04bd96026ca5b7051b65a15388c63713ba315d061392b21e12186e147  new
2023-07-06T06:00:48Z [default wallet] AddToWallet d57f4f667210176a2704c9bb9f52e41b744bdc122ab8926fa6a10e6e756ec103  new
2023-07-06T06:00:48Z [default wallet] AddToWallet 007d6a1d1490f50e4f5abfd3a4ac70b1316545346ee5d14454b2862bae9d54bd  new
2023-07-06T06:00:49Z [default wallet] AddToWallet 7f2c6d57e10b1829e89e168ba02df9a3e42cf90119a15cd4901765d3029831e6  new
2023-07-06T06:00:49Z [default wallet] AddToWallet 54667a28149866d043c88a6446bc5fd13406cd55e3d70cd4569b43166f42189b  new
error: JSON-RPC error: transport error: Couldn't connect to host: Resource temporarily unavailable (os error 35)
philmartin2525 commented 1 year ago

After further investigation, I was able to get a debug log line after running the following:

command:

export RUST_LOG=DEBUG
ord preview

output:

2023-07-10T06:48:22Z CreateNewBlock(): block weight: 936 txs: 0 fees: 0 sigops 400
2023-07-10T06:48:22Z Saw new header hash=0a999dbc2aaf87c69f916f8764cfe4b8167d08830e6abe601e109891b45a4599 height=37
2023-07-10T06:48:23Z [default wallet] AddToWallet f6a96d142ee67683c37e36e09d53ea289301b0d5f5d61066edd176ebe6b266ee  new
2023-07-10T06:48:23Z [default wallet] AddToWallet 36a70f4f68032f3d34f374ded3bbc787e87657c6c94db282c06579235624ca42  new
[2023-07-10T06:48:24Z DEBUG bitcoincore_rpc] JSON-RPC failed parsing reply of generatetoaddress: JsonRpc(Transport(SocketError(Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" })))
error: JSON-RPC error: transport error: Couldn't connect to host: Resource temporarily unavailable (os error 35)