hive issues
https://gitlab.syncad.com/hive/hive/-/issues
2024-02-07T19:04:27Z
https://gitlab.syncad.com/hive/hive/-/issues/656
update_median_witness_props updates some props too soon
2024-02-07T19:04:27Z
Gandalf
update_median_witness_props updates some props too soon
While looking into #655 and examining update_median_witness_props it was reveled that some of the witness properties are activated too soon (with the next witness schedule yet to come).
**This is hardfork change**
While looking into #655 and examining update_median_witness_props it was reveled that some of the witness properties are activated too soon (with the next witness schedule yet to come).
**This is hardfork change**
HF-28
https://gitlab.syncad.com/hive/hive/-/issues/586
Erased authority after passing incorrect JSON
2023-09-26T10:59:19Z
Mateusz Kudela
Erased authority after passing incorrect JSON
While writing tests for `account_update2` operation I encountered interesting behavior. By mistake I passed to wallet incorrect JSON:
```plaintext
{'ref_block_num': 0, 'ref_block_prefix': 0, 'expiration': '1970-01-01T00:00:00', 'operati...
While writing tests for `account_update2` operation I encountered interesting behavior. By mistake I passed to wallet incorrect JSON:
```plaintext
{'ref_block_num': 0, 'ref_block_prefix': 0, 'expiration': '1970-01-01T00:00:00', 'operations': [['account_update2', {'account': 'alice', 'owner': {'owner': {'account_auths': [], 'key_auths': [['TST4yYzyVQNMXT9YSjbqn9aPL8qdWVYT81yqJmsKWSrpWKJ9j1riS', 1]], 'weight_threshold': 1}}}]], 'extensions': [], 'signatures': [], 'transaction_id': '0000000000000000000000000000000000000000', 'block_num': 0, 'transaction_num': 0}
```
Second occurence of `'owner':` is wrong, it shouldn't be there, however I passed this transaction to wallet and it was broadcasted without any errors. In result `owner` authority of this account was totally erased. There was no keys in `key_auths` and `weight_threshold` was set to 0. Worked same way with `account_update` operation.
https://gitlab.syncad.com/hive/hive/-/issues/572
beekeeper | SIGINT randomly closes with `-2` return code and do not removes t...
2023-10-17T06:28:07Z
Mateusz Żebrak
beekeeper | SIGINT randomly closes with `-2` return code and do not removes the `beekeeper.pid` file
FYI: @Trela
This behavior could be observed in random failing clive tests.
#### In the logs of the failing test, we can observe:
```plaintext
2023-08-31 14:07:33.741 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:175 - ...
FYI: @Trela
This behavior could be observed in random failing clive tests.
#### In the logs of the failing test, we can observe:
```plaintext
2023-08-31 14:07:33.741 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:175 - Starting Beekeeper...
2023-08-31 14:07:33.742 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:listen:36 - Notifications server is listening on 39353...
2023-08-31 14:07:33.764 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'current_status': 'starting without a session'}, 'time': '2023-08-31T14:07:33', 'name': 'hived_status'}
2023-08-31 14:07:33.766 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:07:33 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:07:33.767 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'current_status': 'signals attached'}, 'time': '2023-08-31T14:07:33', 'name': 'hived_status'}
2023-08-31 14:07:33.767 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:notify:50 - Beekeeper reports to be ready
2023-08-31 14:07:33.768 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:07:33 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:07:33.768 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'address': '0.0.0.0', 'port': 39881, 'type': 'HTTP'}, 'time': '2023-08-31T14:07:33', 'name': 'webserver listening'}
2023-08-31 14:07:33.769 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:notify:47 - Got notification with http address on: http://127.0.0.1:39881
2023-08-31 14:07:33.769 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:07:33 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:07:38.756 | 🐞 DEBUG | clive.__private.core.beekeeper.handle:__run_beekeeper:207 - Got webserver http endpoint: `http://127.0.0.1:39881`
2023-08-31 14:07:38.757 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:186 - Beekeeper started on http://127.0.0.1:39881.
2023-08-31 14:07:38.763 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=CreateSession(token='d540aaa8ee678152ad698338c37b111ab5f033387ea7c40b4c67e117207b386a')
2023-08-31 14:07:38.765 | ℹ️ INFO | clive.__private.core.commands.abc.command:_log_execution_info:40 - Executing command: CreateWallet
2023-08-31 14:07:38.769 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=Create(password='password')
2023-08-31 14:07:38.769 | ℹ️ INFO | clive.__private.core.app_state:activate:33 - Mode switched to ACTIVE.
2023-08-31 14:07:38.771 | ℹ️ INFO | clive.__private.core.beekeeper.handle:close:160 - Closing Beekeeper...
2023-08-31 14:07:38.772 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=EmptyResponse()
2023-08-31 14:07:38.774 | 🐞 DEBUG | clive.__private.core.beekeeper.executable:close:105 - Beekeeper closed with return code of `-2`.
2023-08-31 14:07:38.775 | 🐞 DEBUG | clive.__private.core.beekeeper.executable:__wait_for_pid_file_to_be_deleted:140 - Beekeeper PID file was deleted in 0.00 seconds.
2023-08-31 14:07:38.775 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:close:76 - Notifications server closed
2023-08-31 14:07:38.775 | ℹ️ INFO | clive.__private.core.beekeeper.handle:close:166 - Beekeeper closed.
2023-08-31 14:07:38.776 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:175 - Starting Beekeeper...
2023-08-31 14:07:38.776 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:listen:36 - Notifications server is listening on 34353...
2023-08-31 14:07:38.793 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'current_status': 'starting without a session'}, 'time': '2023-08-31T14:07:38', 'name': 'hived_status'}
2023-08-31 14:07:38.794 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:07:38 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:07:38.795 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'current_status': 'signals attached'}, 'time': '2023-08-31T14:07:38', 'name': 'hived_status'}
2023-08-31 14:07:38.796 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:notify:50 - Beekeeper reports to be ready
2023-08-31 14:07:38.796 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:07:38 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:07:38.797 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'address': '0.0.0.0', 'port': 44521, 'type': 'HTTP'}, 'time': '2023-08-31T14:07:38', 'name': 'webserver listening'}
2023-08-31 14:07:38.798 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:notify:47 - Got notification with http address on: http://127.0.0.1:44521
2023-08-31 14:07:38.798 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:07:38 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:07:43.790 | 🐞 DEBUG | clive.__private.core.beekeeper.handle:__run_beekeeper:207 - Got webserver http endpoint: `http://127.0.0.1:44521`
2023-08-31 14:07:43.791 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:186 - Beekeeper started on http://127.0.0.1:44521.
2023-08-31 14:07:43.797 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=CreateSession(token='4af7c8b37f24b1c99ba962773f5ba9e8843cfa7cba4ba2c896942c0528a4a4b3')
2023-08-31 14:07:43.801 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=ListWallets(wallets=[])
2023-08-31 14:07:43.803 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=EmptyResponse()
2023-08-31 14:07:43.806 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=ListWallets(wallets=[WalletDetails(name='wallet', unlocked=False)])
2023-08-31 14:07:43.809 | ℹ️ INFO | clive.__private.core.beekeeper.handle:close:160 - Closing Beekeeper...
2023-08-31 14:07:43.811 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=EmptyResponse()
2023-08-31 14:07:43.813 | 🐞 DEBUG | clive.__private.core.beekeeper.executable:close:105 - Beekeeper closed with return code of `-2`.
2023-08-31 14:07:53.833 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:close:76 - Notifications server closed
2023-08-31 14:07:53.862 | 🐞 DEBUG | asyncio.selector_events:__init__:54 - Using selector: EpollSelector
2023-08-31 14:07:53.913 | 🐞 DEBUG | asyncio.selector_events:__init__:54 - Using selector: EpollSelector
```
and beekeeper logs
```plaintext
458785ms json_rpc_plugin.cpp:222 initialize ] initializing JSON RPC plugin
458786ms webserver_plugin.cpp:584 plugin_initialize ] initializing webserver plugin
458786ms webserver_plugin.cpp:587 plugin_initialize ] configured with 1 thread pool size
458786ms webserver_plugin.cpp:590 plugin_initialize ] Compression in webserver is disabled
458786ms webserver_plugin.cpp:602 plugin_initialize ] configured http to listen on 0.0.0.0:0
458786ms beekeeper_app_init.cpp:123 initialize_program_o ] initializing options
458787ms notifications.cpp:64 setup ] setting up notification handler for 1 address
458791ms beekeeper_app_init.cpp:166 initialize_program_o ] Backtrace on segfault is enabled.
458792ms webserver_plugin.cpp:290 operator() ] start processing http thread
458792ms webserver_plugin.cpp:305 operator() ] start listening for http requests on 0.0.0.0:44521
463795ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.create_session","params":{"notifications_endpoint":"127.0.0.1:34353","salt":"139898871443712"}}
463800ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.list_wallets","params":{"token":"4af7c8b37f24b1c99ba962773f5ba9e8843cfa7cba4ba2c896942c0528a4a4b3"}}
463803ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.open","params":{"wallet_name":"wallet","token":"4af7c8b37f24b1c99ba962773f5ba9e8843cfa7cba4ba2c896942c0528a4a4b3"}}
463805ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.list_wallets","params":{"token":"4af7c8b37f24b1c99ba962773f5ba9e8843cfa7cba4ba2c896942c0528a4a4b3"}}
463810ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.close_session","params":{"token":"4af7c8b37f24b1c99ba962773f5ba9e8843cfa7cba4ba2c896942c0528a4a4b3"}}
463811ms application.cpp:99 handle_signal ] _last_signal_code: 2
463811ms application.cpp:90 generate_interrupt_r ] interrupt requested!
463811ms webserver_plugin.cpp:651 plugin_pre_shutdown ] Shutting down webserver_plugin...
463811ms webserver_plugin.cpp:310 operator() ] http io service exit
463812ms application.cpp:475 finish ] Waiting for logging_thread quit
463812ms application.cpp:477 finish ] logging_thread quit done
```
Here are artifacts from this failing test (job 670337): [failing.tar.gz](/uploads/acd6e05b32d4d2f3263afde254881a24/failing.tar.gz)
#### And while it's green:
```plaintext
2023-08-31 14:05:30.712 | ❌ ERROR | asyncio.base_events:default_exception_handler:1744 - Task was destroyed but it is pending!
task: <Task pending name='Task-84' coro=<RequestHandler.start() done, defined at /builds/hive/clive/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py:462> wait_for=<Future finished result=None>>
2023-08-31 14:05:30.862 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:175 - Starting Beekeeper...
2023-08-31 14:05:30.864 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:listen:36 - Notifications server is listening on 41905...
2023-08-31 14:05:30.884 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'current_status': 'starting without a session'}, 'time': '2023-08-31T14:05:30', 'name': 'hived_status'}
2023-08-31 14:05:30.886 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:05:30 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:05:30.887 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'current_status': 'signals attached'}, 'time': '2023-08-31T14:05:30', 'name': 'hived_status'}
2023-08-31 14:05:30.887 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:notify:50 - Beekeeper reports to be ready
2023-08-31 14:05:30.888 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:05:30 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:05:30.888 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'address': '0.0.0.0', 'port': 34139, 'type': 'HTTP'}, 'time': '2023-08-31T14:05:30', 'name': 'webserver listening'}
2023-08-31 14:05:30.889 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:notify:47 - Got notification with http address on: http://127.0.0.1:34139
2023-08-31 14:05:30.889 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:05:30 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:05:35.878 | 🐞 DEBUG | clive.__private.core.beekeeper.handle:__run_beekeeper:207 - Got webserver http endpoint: `http://127.0.0.1:34139`
2023-08-31 14:05:35.879 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:186 - Beekeeper started on http://127.0.0.1:34139.
2023-08-31 14:05:35.885 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=CreateSession(token='b90094a2d0aa2621f1bbe68535a0c7388b62d163641a6e6a3920b06cfe9bc372')
2023-08-31 14:05:35.888 | ℹ️ INFO | clive.__private.core.commands.abc.command:_log_execution_info:40 - Executing command: CreateWallet
2023-08-31 14:05:35.890 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=Create(password='password')
2023-08-31 14:05:35.891 | ℹ️ INFO | clive.__private.core.app_state:activate:33 - Mode switched to ACTIVE.
2023-08-31 14:05:35.892 | ℹ️ INFO | clive.__private.core.beekeeper.handle:close:160 - Closing Beekeeper...
2023-08-31 14:05:35.894 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=EmptyResponse()
2023-08-31 14:05:36.108 | 🐞 DEBUG | clive.__private.core.beekeeper.executable:close:105 - Beekeeper closed with return code of `0`.
2023-08-31 14:05:36.110 | 🐞 DEBUG | clive.__private.core.beekeeper.executable:__wait_for_pid_file_to_be_deleted:140 - Beekeeper PID file was deleted in 0.00 seconds.
2023-08-31 14:05:36.111 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:close:76 - Notifications server closed
2023-08-31 14:05:36.112 | ℹ️ INFO | clive.__private.core.beekeeper.handle:close:166 - Beekeeper closed.
2023-08-31 14:05:36.112 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:175 - Starting Beekeeper...
2023-08-31 14:05:36.114 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:listen:36 - Notifications server is listening on 42591...
2023-08-31 14:05:36.137 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'current_status': 'starting without a session'}, 'time': '2023-08-31T14:05:36', 'name': 'hived_status'}
2023-08-31 14:05:36.138 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:05:36 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:05:36.140 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'current_status': 'signals attached'}, 'time': '2023-08-31T14:05:36', 'name': 'hived_status'}
2023-08-31 14:05:36.140 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:notify:50 - Beekeeper reports to be ready
2023-08-31 14:05:36.141 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:05:36 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:05:36.142 | ℹ️ INFO | clive.__private.core.beekeeper.notifications:notify:40 - Got notification: {'value': {'address': '0.0.0.0', 'port': 33197, 'type': 'HTTP'}, 'time': '2023-08-31T14:05:36', 'name': 'webserver listening'}
2023-08-31 14:05:36.143 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:notify:47 - Got notification with http address on: http://127.0.0.1:33197
2023-08-31 14:05:36.143 | ℹ️ INFO | aiohttp.web_log:log:206 - 127.0.0.1 [31/Aug/2023:14:05:36 +0000] "PUT / HTTP/1.1" 204 0 "-" "-"
2023-08-31 14:05:41.129 | 🐞 DEBUG | clive.__private.core.beekeeper.handle:__run_beekeeper:207 - Got webserver http endpoint: `http://127.0.0.1:33197`
2023-08-31 14:05:41.130 | ℹ️ INFO | clive.__private.core.beekeeper.handle:__start:186 - Beekeeper started on http://127.0.0.1:33197.
2023-08-31 14:05:41.136 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=CreateSession(token='712241ececec2f17484a73ab7d03c4e1eaad25f4242e1c9f8b5ef40ac1d33e4c')
2023-08-31 14:05:41.140 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=ListWallets(wallets=[])
2023-08-31 14:05:41.143 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=EmptyResponse()
2023-08-31 14:05:41.145 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=ListWallets(wallets=[WalletDetails(name='wallet', unlocked=False)])
2023-08-31 14:05:41.148 | ℹ️ INFO | clive.__private.core.beekeeper.handle:close:160 - Closing Beekeeper...
2023-08-31 14:05:41.150 | ℹ️ INFO | clive.__private.core.beekeeper.handle:_send:147 - Returning model: id_=0 jsonrpc='2.0' result=EmptyResponse()
2023-08-31 14:05:41.152 | 🐞 DEBUG | clive.__private.core.beekeeper.executable:close:105 - Beekeeper closed with return code of `-2`.
2023-08-31 14:05:41.153 | 🐞 DEBUG | clive.__private.core.beekeeper.executable:__wait_for_pid_file_to_be_deleted:140 - Beekeeper PID file was deleted in 0.00 seconds.
2023-08-31 14:05:41.153 | 🐞 DEBUG | clive.__private.core.beekeeper.notifications:close:76 - Notifications server closed
2023-08-31 14:05:41.153 | ℹ️ INFO | clive.__private.core.beekeeper.handle:close:166 - Beekeeper closed.
2023-08-31 14:05:41.175 | 🐞 DEBUG | asyncio.selector_events:__init__:54 - Using selector: EpollSelector
2023-08-31 14:05:41.177 | 🐞 DEBUG | asyncio.selector_events:__init__:54 - Using selector: EpollSelector
```
and beekeeper:
```plaintext
336125ms json_rpc_plugin.cpp:222 initialize ] initializing JSON RPC plugin
336125ms webserver_plugin.cpp:584 plugin_initialize ] initializing webserver plugin
336125ms webserver_plugin.cpp:587 plugin_initialize ] configured with 1 thread pool size
336125ms webserver_plugin.cpp:590 plugin_initialize ] Compression in webserver is disabled
336126ms webserver_plugin.cpp:602 plugin_initialize ] configured http to listen on 0.0.0.0:0
336126ms beekeeper_app_init.cpp:123 initialize_program_o ] initializing options
336127ms notifications.cpp:64 setup ] setting up notification handler for 1 address
336134ms beekeeper_app_init.cpp:166 initialize_program_o ] Backtrace on segfault is enabled.
336135ms webserver_plugin.cpp:290 operator() ] start processing http thread
336135ms webserver_plugin.cpp:305 operator() ] start listening for http requests on 0.0.0.0:33197
341134ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.create_session","params":{"notifications_endpoint":"127.0.0.1:42591","salt":"140566037592720"}}
341139ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.list_wallets","params":{"token":"712241ececec2f17484a73ab7d03c4e1eaad25f4242e1c9f8b5ef40ac1d33e4c"}}
341142ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.open","params":{"wallet_name":"wallet","token":"712241ececec2f17484a73ab7d03c4e1eaad25f4242e1c9f8b5ef40ac1d33e4c"}}
341144ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.list_wallets","params":{"token":"712241ececec2f17484a73ab7d03c4e1eaad25f4242e1c9f8b5ef40ac1d33e4c"}}
341150ms json_rpc_plugin.cpp:439 rpc ] message: {"id":0,"jsonrpc":"2.0","method":"beekeeper_api.close_session","params":{"token":"712241ececec2f17484a73ab7d03c4e1eaad25f4242e1c9f8b5ef40ac1d33e4c"}}
341150ms application.cpp:99 handle_signal ] _last_signal_code: 2
341150ms application.cpp:90 generate_interrupt_r ] interrupt requested!
341150ms webserver_plugin.cpp:651 plugin_pre_shutdown ] Shutting down webserver_plugin...
341150ms webserver_plugin.cpp:310 operator() ] http io service exit
341151ms application.cpp:475 finish ] Waiting for logging_thread quit
341151ms application.cpp:477 finish ] logging_thread quit done
```
Here are artifacts from this test (job 670336): [success.tar.gz](/uploads/2e673695eaddb7ed408afecb6dc47011/success.tar.gz)
Here is a job when such a situation occurs: https://gitlab.syncad.com/hive/clive/-/jobs/670337
In the CI logs, we can observe that a test failed because of \
`Beekeeper PID file /builds/hive/clive/tests/unit/beekeeper/generated_during_test_wallet/test_wallet_open/beekeeper/beekeeper.pid was not deleted in 10.0 seconds.`
and this is happening when beekeeper closes with `-2` (but not always), sometimes this file is deleted though:
```plaintext
2023-08-31 14:05:36.108 | :beetle: DEBUG | clive.\__private.core.beekeeper.executable:close:105 - Beekeeper closed with return code of `0`.
2023-08-31 14:05:36.110 | :beetle: DEBUG | clive.\__private.core.beekeeper.executable:\__wait_for_pid_file_to_be_deleted:140 - Beekeeper PID file was deleted in 0.00 seconds.
2023-08-31 14:05:36.111 | :beetle: DEBUG | clive.\__private.core.beekeeper.notifications:close:76 - Notifications server closed
```
vs
```plaintext
2023-08-31 14:05:41.152 | :beetle: DEBUG | clive.\__private.core.beekeeper.executable:close:105 - Beekeeper closed with return code of `-2`.
2023-08-31 14:05:41.153 | :beetle: DEBUG | clive.\__private.core.beekeeper.executable:\__wait_for_pid_file_to_be_deleted:140 - Beekeeper PID file was deleted in 0.00 seconds.
2023-08-31 14:05:41.153 | :beetle: DEBUG | clive.\__private.core.beekeeper.notifications:close:76 - Notifications server closed
```
vs
```plaintext
2023-08-31 14:07:43.813 | :beetle: DEBUG | clive.\__private.core.beekeeper.executable:close:105 - Beekeeper closed with return code of `-2`.
2023-08-31 14:07:53.833 | :beetle: DEBUG | clive.\__private.core.beekeeper.notifications:close:76 - Notifications server closed
```
and some successful jobs from the same pipeline: https://gitlab.syncad.com/hive/clive/-/jobs/670336 https://gitlab.syncad.com/hive/clive/-/jobs/670335 https://gitlab.syncad.com/hive/clive/-/jobs/670330
This is randomly happening on other tests also, not only the one mentioned above: https://gitlab.syncad.com/hive/clive/-/jobs/670306
https://gitlab.syncad.com/hive/hive/-/issues/568
beekeeper | ----webserver-thread-pool-size problem with signed value
2023-10-12T09:29:52Z
Wieslaw Kedzierski
beekeeper | ----webserver-thread-pool-size problem with signed value
The problem occurs when we try to assign a signed value to this flag.
Internally, `webserver-thread-pool-size` refers to `thread_pool_size_t` which is a `uint32_t` type. It cannot assign a negative value to it, so it will try to assign...
The problem occurs when we try to assign a signed value to this flag.
Internally, `webserver-thread-pool-size` refers to `thread_pool_size_t` which is a `uint32_t` type. It cannot assign a negative value to it, so it will try to assign `4294967295`.
Example:
```
./beekeeper --notifications-endpoint 127.0.0.1:8000 --webserver-http-endpoint 127.0.0.1:6666 --salt "avocado" --webserver-thread-pool-size -1
1709560ms json_rpc_plugin.cpp:222 initialize ] initializing JSON RPC plugin
1709560ms webserver_plugin.cpp:584 plugin_initialize ] initializing webserver plugin
1709560ms webserver_plugin.cpp:587 plugin_initialize ] configured with 4294967295 thread pool size
1709560ms webserver_plugin.cpp:590 plugin_initialize ] Compression in webserver is disabled
1709560ms webserver_plugin.cpp:602 plugin_initialize ] configured http to listen on 127.0.0.1:6666
1709560ms beekeeper_app_init.cpp:120 initialize_program_o ] initializing options
1709561ms notifications.cpp:64 setup ] setting up notification handler for 1 address
1709563ms beekeeper_app_init.cpp:157 initialize_program_o ] Backtrace on segfault is enabled.
Setting up a startup_io_handler...
1709563ms webserver_plugin.cpp:290 operator() ] start processing http thread
1709563ms webserver_plugin.cpp:305 operator() ] start listening for http requests on 127.0.0.1:6666
Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::wrapexcept<boost::thread_resource_error>
std::exception::what: boost::thread_resource_error: Resource temporarily unavailable
```
`1709560ms webserver_plugin.cpp:587 plugin_initialize ] configured with 4294967295 thread pool size`
It is a problem with `webserver_plugin`, but the beekeeper inherited it.
https://gitlab.syncad.com/hive/hive/-/issues/567
beekeeper | remove unnecessary command line flags
2023-08-25T07:37:16Z
Wieslaw Kedzierski
beekeeper | remove unnecessary command line flags
Beekeeper has a set of flags that are no important to it - it is just inherited after `application:app`.
We should print/handle only those valid for beekepeer.
List of valid flags:
Inherited after:
`webserver`:
* `--webserver-http-e...
Beekeeper has a set of flags that are no important to it - it is just inherited after `application:app`.
We should print/handle only those valid for beekepeer.
List of valid flags:
Inherited after:
`webserver`:
* `--webserver-http-endpoint arg`,
* `--webserver-thread-pool-size arg (=32)`.
`json_rpc`:
* `--log-json-rpc arg`
Our own:
* `--notifications-endpoint`,
* `--wallet-dir`,
* `--unlock-timeout`,
* `--backtrace`,
* `--salt`,
* `--export-keys-wallet-name`,
* `--export-keys-wallet-password`,
List of flags that should be removed:
`application:app` :
* `--plugin plugin-name`,
* `--list-plugins`,
* `--generate-completions`,
* `--data-dir, -d`,
* `--config, -c`,
* `--dump-config`.
`webserver`:
* `--webserver-unix-endpoint arg`,
* `--webserver-ws-endpoint arg`,
* `--webserver-ws-deflate arg (=0)`,
* `--rpc-endpoint arg`.
Mariusz Trela
Mariusz Trela
https://gitlab.syncad.com/hive/hive/-/issues/395
RC delegation JSON without a valid max_rc property incorrectly considered as ...
2022-10-21T16:16:55Z
arcange
RC delegation JSON without a valid max_rc property incorrectly considered as undelegation
If you issue a RC delegation custom_json with a missing (or mistyped) max_rc property, the max_rc value is considered 0, and any existing delegation is removed.
ex:
1. delegation :`["delegate_rc",{"max_rc":100,"from":"arcange","dele...
If you issue a RC delegation custom_json with a missing (or mistyped) max_rc property, the max_rc value is considered 0, and any existing delegation is removed.
ex:
1. delegation :`["delegate_rc",{"max_rc":100,"from":"arcange","delegatees":["arcange-1"]}]`
https://hiveblocks.com/tx/b6f5e72db91ee5afb4605a07ffc5d08c032ab2dc
2. invalid delegation: `["delegate_rc",{"the_rc":101,"from":"arcange","delegatees":["arcange-1"]}]`
https://hiveblocks.com/tx/8a466248a74c22fda191cd7b8a35eea01a8f27d1
https://gitlab.syncad.com/hive/hive/-/issues/216
Duplicate measurement during CI replay benchmark
2022-02-24T11:53:31Z
Mateusz Żebrak
Duplicate measurement during CI replay benchmark
In the CI artifacts - replay benchmark.json file, the `measurements` array has the first element as the measurement of the last block (5,000,000)
```
{
"block_number": 5000000,
"real_ms": 0,
"cpu_ms": 0,
"current_mem": 25958312,...
In the CI artifacts - replay benchmark.json file, the `measurements` array has the first element as the measurement of the last block (5,000,000)
```
{
"block_number": 5000000,
"real_ms": 0,
"cpu_ms": 0,
"current_mem": 25958312,
"peak_mem": 25958312,
"index_memory_details_cntr": [...]
}
```
then there are measurements for 100000, 200000.. and again 5000000 block number
```
{
"block_number": 5000000,
"real_ms": 12040,
"cpu_ms": 12012,
"current_mem": 25962740,
"peak_mem": 25964044,
"index_memory_details_cntr": [...]
}
```
Krzysztof Mochocki
kmochocki@syncad.com
Krzysztof Mochocki
kmochocki@syncad.com
https://gitlab.syncad.com/hive/hive/-/issues/100
Incorrect result while calling jsonrpc.get_signature for account_history_api....
2021-05-16T22:04:30Z
inertia
Incorrect result while calling jsonrpc.get_signature for account_history_api.get_account_history
Calls to `jsonrpc.get_signature` method, passing parameters to inspect the method `account_history_api.get_account_history`, returns incorrect result. The expected arguments `include_reversible`, `operation_filter_low`, and `operation_f...
Calls to `jsonrpc.get_signature` method, passing parameters to inspect the method `account_history_api.get_account_history`, returns incorrect result. The expected arguments `include_reversible`, `operation_filter_low`, and `operation_filter_high` are missing from the response.
##### Expected result:
```json
{
"jsonrpc": "2.0",
"result": {
"args": {
"account": "",
"start": "18446744073709551615",
"limit": 1000,
"include_reversible": true,
"operation_filter_low": "18446744073709551615",
"operation_filter_high": "18446744073709551615"
},
"ret": {
"history": []
}
},
"id": 1
}
```
##### Actual result:
```json
{
"jsonrpc": "2.0",
"result": {
"args": {
"account": "",
"start": "18446744073709551615",
"limit": 1000
},
"ret": {
"history": []
}
},
"id": 1
}
```
To recreate the issue, use the following `curl`:
```bash
curl -s --data '{
"jsonrpc": "2.0",
"method": "jsonrpc.get_signature",
"params": {
"method": "account_history_api.get_account_history"
},
"id": 1
}' https://api.hive.blog | jq
```
(tested in blockchain version 1.24.6, rev:74f18672c5418c835a1665a30c0e523b314f7aea)
Mariusz Trela
Mariusz Trela