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

The application stucks on 'Waiting for first finalized block info... ' step #413

Open
oksuz opened this issue Sep 25, 2024 · 0 comments
Open

Comments

@oksuz
Copy link

oksuz commented Sep 25, 2024

Hi,
I just wanted to do quick walkthrough around the application and build docker image on my local after that i set my env like the following:

export LITE_RPC_HTTP_ADDR=0.0.0.0:8890
export LITE_RPC_WS_ADDR=0.0.0.0:8891
export RUST_LOG=info
export RPC_ADDR=http://my-rpc-server:8890
export WS_ADDR=http://my-rpc-server:8891
export FANOUT_SIZE=32
export MAX_RETRIES=40
export RETRY_TIMEOUT=3
export USE_GRPC=false
export GRPC_ADDR=http://my-rpc-server:10000

Since my geyser doesn't let the clients subscription without filter i leave it as disabled . in this case the app is stuck at the Waiting for first finalized block info... step.

root@825ebf54502b:/# lite-rpc 
2024-09-25T13:33:40.732925Z  INFO lite_rpc: Use RPC address: ####
2024-09-25T13:33:40.733063Z  INFO lite_rpc: grpc_sources:[GrpcSource http://localhost:10000 (x-token n/a)]    
2024-09-25T13:33:40.733525Z  INFO lite_rpc: Accounts on demand service is disabled    
2024-09-25T13:33:40.733558Z  INFO lite_rpc: Creating RPC poll subscription...    
2024-09-25T13:33:40.733802Z  INFO lite_rpc: Disabled grpc stream inspection    
2024-09-25T13:33:40.733845Z  INFO lite_rpc: Waiting for first finalized block info...    
2024-09-25T13:33:40.734968Z  INFO solana_lite_rpc_cluster_endpoints::rpc_polling::poll_blocks: block listener started

It passes that step If I enable geyser but at this time i was not able to send request from client:

client log:

[2024-09-25 16:31:32.610] INFO (64698): solana connection will be created
    rpcHost: "0.0.0.0:8890"
    wsHost: null
/Users/oksuz/Developer/projects/web3/node_modules/@solana/web3.js/src/connection.ts:4293
      throw new SolanaJSONRPCError(res.error, 'failed to get slot leader');
            ^
SolanaJSONRPCError: failed to get slot leader: Method not found

lite-rpc log:

root@825ebf54502b:/# lite-rpc 
2024-09-25T13:39:46.914524Z  INFO lite_rpc: Use RPC address: http://my-rpc-server:8890    
2024-09-25T13:39:46.914579Z  INFO lite_rpc: grpc_sources:[GrpcSource http://my-rpc-server:10000 (x-token n/a)]    
2024-09-25T13:39:46.914797Z  INFO lite_rpc: Accounts on demand service is disabled    
2024-09-25T13:39:46.914832Z  INFO lite_rpc: Creating geyser subscription...    
2024-09-25T13:39:46.915069Z  INFO solana_lite_rpc_cluster_endpoints::grpc_multiplex: Setup grpc multiplexed slots connection...    
2024-09-25T13:39:46.915080Z  INFO solana_lite_rpc_cluster_endpoints::grpc_multiplex: - connection to grpc_addr http://my-rpc-server:10000    
2024-09-25T13:39:46.915247Z  INFO solana_lite_rpc_cluster_endpoints::grpc_multiplex: Setup grpc multiplexed blocks connection...    
2024-09-25T13:39:46.915263Z  INFO solana_lite_rpc_cluster_endpoints::grpc_multiplex: - connection to grpc_addr http://my-rpc-server:10000    
2024-09-25T13:39:46.915331Z  INFO lite_rpc: Disabled grpc stream inspection    
2024-09-25T13:39:46.915335Z  INFO lite_rpc: Waiting for first finalized block info...    
2024-09-25T13:39:47.183155Z  WARN geyser_grpc_connector::grpc_subscription_autoreconnect_tasks: error on grpc_addr http://my-rpc-server:10010 - retrying: Status { code: InvalidArgument, message: "failed to create filter: Broadcast `any` is not allowed, at least one filter required", source: None }    
2024-09-25T13:39:47.183370Z  INFO geyser_grpc_connector::grpc_subscription_autoreconnect_tasks: waiting 1.5 seconds, then reconnect to grpc_addr http://my-rpc-server:10000    
2024-09-25T13:39:47.312214Z  INFO lite_rpc: Got finalized block info: 291929877    
2024-09-25T13:39:47.703800Z  INFO lite_rpc: ALTs disabled    
2024-09-25T13:39:47.739333Z  INFO solana_lite_rpc_core::network_utils: GSO force-disabled? false    
2024-09-25T13:39:47.741770Z  INFO solana_lite_rpc_services::metrics_capture: Capturing Metrics    
2024-09-25T13:39:47.741803Z  INFO solana_lite_rpc_services::metrics_capture: Metrics Tokio Unstable enabled    
2024-09-25T13:39:47.742345Z  INFO lite_rpc::start_server: HTTP Server started at "0.0.0.0:8890"    
2024-09-25T13:39:47.742448Z  INFO lite_rpc::start_server: Websocket Server started at "0.0.0.0:8891"    
2024-09-25T13:39:48.960033Z  WARN geyser_grpc_connector::grpc_subscription_autoreconnect_tasks: error on grpc_addr http://my-rpc-server:10010 - retrying: Status { code: InvalidArgument, message: "failed to create filter: Broadcast `any` is not allowed, at least one filter required", source: None }    
2024-09-25T13:39:48.960242Z  INFO geyser_grpc_connector::grpc_subscription_autoreconnect_tasks: waiting 1.5 seconds, then reconnect to grpc_addr http://my-rpc-server:10000    
2024-09-25T13:39:50.733161Z  WARN geyser_grpc_connector::grpc_subscription_autoreconnect_tasks: error on grpc_addr http://my-rpc-server:10010 - retrying: Status { code: InvalidArgument, message: "failed to create filter: Broadcast `any` is not allowed, at least one filter required", source: None }    
2024-09-25T13:39:50.733276Z  INFO geyser_grpc_connector::grpc_subscription_autoreconnect_tasks: waiting 1.5 seconds, then reconnect to grpc_addr http://my-rpc-server:10000   

Do you have any suggestion for get it worked ?

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

1 participant