Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DerekYeung opened this issue Feb 27, 2023 · 17 comments

Comments

@DerekYeung
Copy link

DerekYeung commented Feb 27, 2023

When I have hundreds of inscriptions in the memory pool, I will not be able to continue inscribe until they are confirmed.

it just throw me error: JSON-RPC error: transport error: Couldn't connect to host: Resource temporarily unavailable (os error 11)

I try to fix this in the fork and finally find that the problem occurs at https://github.com/casey/ord/blob/master/src/subcommand/wallet/inscribe.rs#L307, when I deleteInscribe::backup_recovery_key it works again
@casey

@DerekYeung
Copy link
Author

I don't know rust so I don't know what's going on here, but I'm wondering can I delete this? I assume here is a backup just in case something goes wrong and not actually needed

@zx0922
Copy link

zx0922 commented Feb 28, 2023

P:\ord>ord --cookie-file .cookie --rpc-url 192.168.2.222 --data-dir P:\ord wallet balance
error: JSON-RPC error: transport error: unexpected HTTP code: 403

.cookies file is like username:password

ord 0.5.1

Umbrel Version
0.5.3

@ghost
Copy link

ghost commented Mar 4, 2023

There is a solution for this error?

@viralrich
Copy link

This is because bitcoind still running in background with some indexing process

@LightRider5
Copy link
Contributor

Have suddenly the same error. Why should it be caused by bitcoind?

@viralrich
Copy link

You need to await few mins, probably process in background still active,

Wait like 10-15 mins and run "ord" command, if ordinals options are showed it's because process end

@LightRider5
Copy link
Contributor

Didn't help. I also rebooted, restarted bitcoind and reinstalled the binary. Still the same error. Maybe I have to reindex again.

@viralrich
Copy link

viralrich commented Mar 15, 2023 via email

@LightRider5
Copy link
Contributor

ord wallet balance updates the index to the current block count!

re-index means you build the complete index again from scratch. This are two completely different things!

The bug still consists. I could bypass it by changing the file i want to inscribe every time it occurs.

@piesrtasty
Copy link

I'm also experiencing this issue when inscribing > 100 files in a loop.

@RobertClarke
Copy link
Contributor

+1

@pavillag
Copy link

  • 1

Is there a solution to this?

@ylsGit
Copy link

ylsGit commented Jan 4, 2024

@kvagajack
Copy link

+1

I am using ord 0.9.0 and getting the same error.

(Bitcoind is synced, and mempool is loaded)

@kvagajack
Copy link

kvagajack commented Jan 8, 2024

Just upgraded ord to 0.14.1, and the same error :(

$ ord --cookie-file /var/lib/bitcoind/.cookie \
    --index /root/.local/share/ord/index.redb \
    wallet  inscribe  \
    --destination <address> \
    --postage 9999sats \
    --fee-rate 48 
    --file <file_path>

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

@kvagajack
Copy link

kvagajack commented Jan 8, 2024

Btw, this is an intermittent issue... Sometimes I am able to inscribe, but still the failure happens much more often...

Files i am inscribing are from 3K to 5K. And some may fail first, and then get through later. When I inscribe very small files (30B) I don't get the error.

@raphjaph
Copy link
Collaborator

This could be an issue with the initial client that talks to Bitcoin becoming stale if the connection is not used for a while. I've recently done a big wallet refactor where we now create new clients more often. This might solve this issue. Will probably make a release this week for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants