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":"noNetwork","error_code":12 #31

Closed
gmosx opened this issue Mar 26, 2013 · 8 comments
Closed

"error":"noNetwork","error_code":12 #31

gmosx opened this issue Mar 26, 2013 · 8 comments

Comments

@gmosx
Copy link

gmosx commented Mar 26, 2013

./rippled --net


RPC call (through WebSocket):

{"command": "account_offers", "account": "r...h"}


Error:

{"error":"noNetwork","error_code":12,"error_message":"Network not available.","request":{"account":"r...h","command":"account_offers"},"status":"error","type":"response"}

The same happens with account_info, etc. Subscribe commands do work.

@JoelKatz
Copy link
Collaborator

The server was probably either unable to fetch a ledger from the network or unable to get validations, likely because it had no validators configured. What's the output of 'server_info'?

@gmosx
Copy link
Author

gmosx commented Mar 26, 2013

{"result":{"info":{"closed_ledger":{"base_fee_xrp":0.000010,"hash":"AB...B6918936C7","reserve_base_xrp":200.0,"reserve_inc_xrp":50.0,"seq":1,"validated":true},"complete_ledgers":"empty","last_close":{"converge_time_s":15.0,"proposers":0},"load":{"job_types":[{"job_type":"untrustedProposal","peak_time":1},{"avg_time":2299,"job_type":"ledgerData","peak_time":9165,"per_second":1},{"in_progress":1,"job_type":"clientCommand"},{"job_type":"writeObjects","peak_time":3,"per_second":1},{"job_type":"peerCommand","peak_time":2,"per_second":10},{"job_type":"diskAccess","peak_time":23,"per_second":1052}],"threads":6},"load_factor":1.0,"network_ledger":"waiting","peers":8,"pubkey_node":"n9Mgumq..TBszdBKzsMrEVej6ekd7z","pubkey_validator":"none","server_state":"connected","validation_quorum":2}},"status":"success","type":"response"}

@JoelKatz
Copy link
Collaborator

It looks like your server is having a hard time synchronizing the whole network ledger because it is performing an enormous amount of I/O. If this is a VPS, a lot of those are very I/O constrained and limit the server to 100 disk I/Os per second or so. If you have lots of RAM (1GB or more) you can increase the 'node_size' setting to get more memory caching. If you don't have the RAM, you may just have to suffer through it. It will clear once the server catches up.

@gmosx
Copy link
Author

gmosx commented Mar 26, 2013

Btw, I copied validators-example.txt to validators.txt (I have forgotten about that) but I still get the same error. Here is my updated server_info:

{"result":{"info":{"closed_ledger":{"base_fee_xrp":0.000010,"hash":"AB868A6...36C7","reserve_base_xrp":200.0,"reserve_inc_xrp":50.0,"seq":1,"validated":true},"complete_ledgers":"empty","last_close":{"converge_time_s":15.0,"proposers":0},"load":{"job_types":[{"avg_time":1,"job_type":"untrustedProposal","peak_time":3},{"in_progress":1,"job_type":"clientCommand"},{"job_type":"trustedProposal","peak_time":2},{"job_type":"peerCommand","peak_time":7,"per_second":14},{"job_type":"diskAccess","peak_time":640,"per_second":94}],"threads":6},"load_factor":1.0,"network_ledger":"waiting","peers":8,"pubkey_node":"n9Mgu..ej6ekd7z","pubkey_validator":"none","server_state":"connected","validation_quorum":2}},"status":"success","type":"response"}

@gmosx
Copy link
Author

gmosx commented Mar 26, 2013

OK, will leave the server running...

@gmosx
Copy link
Author

gmosx commented Mar 26, 2013

You were right, I left rippled running for a bit longer, and it works now ;-)

@gmosx gmosx closed this as completed Mar 26, 2013
@JoelKatz
Copy link
Collaborator

That looks a little better. It is still working to synchronize the initial ledger. Is this starting from empty databases? Or is this a VPS with very constrained I/O? Or very low RAM?

I think we are seeing cases where the server gets very bogged down with I/O. It's almost always shortly after startup, and it almost always clears in ten minutes or less. I'm trying to narrow down the circumstances under which it happens.

commit 9fbbee3 was supposed to help with this, but it may be based on an incomplete understanding of the issue.

@gmosx
Copy link
Author

gmosx commented Mar 26, 2013

It was running on my Laptop (8Gb of RAM, but many many Chrome tabs open ;-)). I think it started from empty databases. Sorry, I don't know how to provide more information :(

On the positive side, everything is working fine now.

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

2 participants