XRPLF / clio

An XRP Ledger API Server
https://xrpl.org
ISC License
57 stars 48 forks source link

Clio reconnecting with error code = system:111 #233

Closed arminas5 closed 1 year ago

arminas5 commented 1 year ago

Hello,

could anyone knows whats happening here? Looks like everything is ok, but nothing else happening just reconnecting.

{ "database": { "type":"cassandra", "cassandra": { "contact_points":"127.0.0.1", "port":9042, "keyspace":"clio", "replication_factor":1, "table_prefix":"", "max_requests_outstanding":25000, "threads":8 } }, "etl_sources": [ { "ip":"127.0.0.1", "ws_port":"6005", "grpc_port":"50051" } ], "dos_guard": { "whitelist":["127.0.0.1"] }, "server":{ "ip":"0.0.0.0", "port":51233 }, "log_level":"debug", "log_to_console": true, "log_to_file": true, "log_directory":"./clio_log", "log_rotation_size": 2048, "log_directory_max_size": 51200, "log_rotation_hour_interval": 12, "online_delete":0, "extractor_threads":8, "read_only":false }

[2022-08-04 21:39:39.994181] [0x00007f22a58ba8c0] [info] Log level = "debug" [2022-08-04 21:39:39.994249] [0x00007f22a58ba8c0] [info] Clio version: clio-1.0.1 [2022-08-04 21:39:39.994272] [0x00007f22a58ba8c0] [info] Number of io threads = 2 [2022-08-04 21:39:39.994371] [0x00007f22a58ba8c0] [info] make_Backend: Constructing BackendInterface [2022-08-04 21:39:39.994432] [0x00007f22a58ba8c0] [info] Opening Cassandra Backend [2022-08-04 21:39:39.994512] [0x00007f22a58ba8c0] [info] open sync interval is 1. max requests outstanding is 25000 [2022-08-04 21:39:39.994527] [0x00007f22a58ba8c0] [warning] Table prefix is empty [2022-08-04 21:39:39.994536] [0x00007f22a58ba8c0] [info] open setting ttl to 0 [2022-08-04 21:39:42.099358] [0x00007f22a58ba8c0] [info] Opened CassandraBackend successfully [2022-08-04 21:39:42.099533] [0x00007f22a58ba8c0] [debug] hardFetchLedgerRangeNoThrow [2022-08-04 21:39:42.102871] [0x00007f22a58ba8c0] [error] hardFetchLedgerRange - no rows [2022-08-04 21:39:42.103017] [0x00007f22a58ba8c0] [info] make_Backend: Constructed BackendInterface Successfully [2022-08-04 21:39:42.103106] [0x00007f22a58ba8c0] [info] Starting subscription manager with 1 workers [2022-08-04 21:39:42.104679] [0x00007f22a58ba8c0] [debug] Made stub for remote = { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:39:42.104922] [0x00007f22a58ba8c0] [info] ETLLoadBalancer : added etl source - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:39:42.105036] [0x00007f22a58ba8c0] [info] Starting reporting etl [2022-08-04 21:39:42.105265] [0x00007f22a58ba8c0] [info] make_HttpServer Number of workers = 8. Max queue size = 0 [2022-08-04 21:39:42.106288] [0x00007f229956d700] [debug] hardFetchLedgerRangeNoThrow [2022-08-04 21:39:42.114234] [0x00007f229956d700] [error] hardFetchLedgerRange - no rows [2022-08-04 21:39:42.114402] [0x00007f229956d700] [info] monitor : Database is empty. Will download a ledger from the network. [2022-08-04 21:39:42.114466] [0x00007f229956d700] [info] monitor : Waiting for next ledger to be validated by network... [2022-08-04 21:39:42.118329] [0x00007f22a58ba8c0] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:39:43.118975] [0x00007f22a58ba8c0] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:39:45.119452] [0x00007f2270ff9700] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:39:49.119768] [0x00007f22a58ba8c0] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:39:57.120156] [0x00007f2270ff9700] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:40:13.120723] [0x00007f22a58ba8c0] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:40:43.121356] [0x00007f2270ff9700] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:41:13.121927] [0x00007f2270ff9700] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:41:43.122581] [0x00007f22a58ba8c0] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:42:13.123130] [0x00007f2270ff9700] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:42:43.123521] [0x00007f2270ff9700] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:43:13.124031] [0x00007f22a58ba8c0] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:43:43.124410] [0x00007f22a58ba8c0] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:44:13.124909] [0x00007f22a58ba8c0] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:44:43.125262] [0x00007f2270ff9700] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 } [2022-08-04 21:45:13.125488] [0x00007f2270ff9700] [warning] reconnect : error code = system:111 - { validated_ledger : , ip : 127.0.0.1 , web socket port : 6005, grpc port : 50051 }

cjcobb23 commented 1 year ago

is your rippled node running locally, with port 6005 open for unencrypted websocket connections?

arminas5 commented 1 year ago

Hi @cjcobb23 ,

yes rippled node running locally. Rippled config: [port_ws_public] port = 6005 ip = 127.0.0.1 protocol = wss

Do you mean 6005 port should be open outside the machine?

cjcobb23 commented 1 year ago

Change protocol to ws

pkmelee337 commented 1 year ago

I had the same issue, and ended up with the following config using the latest rippled version:

[port_ws_public]
port = 6005
ip = 0.0.0.0
protocol = ws,wss

You can remove wss if you don't want to connect to your node using a XRPL client.

godexsoft commented 1 year ago

I assume this is no longer a problem. We had this issue for wss before but that should not be the case anymore either.