hyperledger-archives / indy-sdk

indy-sdk
https://wiki.hyperledger.org/display/indy
Apache License 2.0
666 stars 737 forks source link

"pool.open_pool_ledger" report a timeout error. #2598

Closed lijinnan123 closed 6 months ago

lijinnan123 commented 1 year ago

When I run "docs/how-tos/save-schema-and-cred-def/python/save_schema_and_cred_def.py", the log print as:

2023-08-01 09:18:09,041 DEBUG do_call: <<< <Future pending>
2023-08-01 09:18:09,041 DEBUG _get_error_details: >>>
2023-08-01 09:18:09,042 DEBUG _get_error_details: <<< error_details: {'backtrace': '', 'message': 'Error: Pool ledger config already exists\n  Caused by: Pool ledger config file with name "pool1" already exists\n'}
2023-08-01 09:18:09,042 DEBUG _indy_callback: >>> command_handle: 1, err , args: ()
2023-08-01 09:18:09,042 DEBUG _indy_callback: <<<
2023-08-01 09:18:09,042 DEBUG _indy_loop_callback: >>> command_handle: 1, err , args: ()
2023-08-01 09:18:09,042 WARNING _indy_loop_callback: Function returned error 
2023-08-01 09:18:09,042 DEBUG _indy_loop_callback <<<
2023-08-01 09:18:09,042 DEBUG open_pool_ledger: >>> config_name: 'pool1', config: None
2023-08-01 09:18:09,042 DEBUG open_pool_ledger: Creating callback
2023-08-01 09:18:09,042 DEBUG create_cb: >>> cb_type: <class 'ctypes.CFUNCTYPE.<locals>.CFunctionType'>
2023-08-01 09:18:09,042 DEBUG create_cb: <<< res: <CFunctionType object at 0x7ff2c5a1d780>
2023-08-01 09:18:09,042 DEBUG do_call: >>> name: indy_open_pool_ledger, args: (c_char_p(140680674833088), None, <CFunctionType object at 0x7ff2c5a1d780>)
2023-08-01 09:18:09,042 DEBUG do_call: Function indy_open_pool_ledger returned err: 0
2023-08-01 09:18:09,042 DEBUG do_call: <<< <Future pending>
2023-08-01 09:19:09,069 INFO    src/commands/pool.rs:75 | OpenAck handle 2, pool_id 2, result Err(IndyError { inner: 

Pool timeout

Pool timeout })
2023-08-01 09:19:09,069 DEBUG _get_error_details: >>>
2023-08-01 09:19:09,069 DEBUG _get_error_details: <<< error_details: {'backtrace': '', 'message': 'Error: Pool timeout\n  Caused by: Pool timeout\n'}
2023-08-01 09:19:09,069 DEBUG _indy_callback: >>> command_handle: 2, err , args: (0,)
2023-08-01 09:19:09,069 DEBUG _indy_callback: <<<
2023-08-01 09:19:09,069 DEBUG _indy_loop_callback: >>> command_handle: 2, err , args: (0,)
2023-08-01 09:19:09,069 WARNING _indy_loop_callback: Function returned error 
2023-08-01 09:19:09,069 DEBUG _indy_loop_callback <<<

The environment is ubuntu22.04. Libindy is libindy_1.16.0-bionic_amd64.deb. Is this problem caused by a mismatch between the former and the latter?