View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006472 | unreal | json-rpc | public | 2024-09-29 18:07 | 2024-11-18 23:19 |
Reporter | adator | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | feedback | Resolution | open | ||
Product Version | 6.1.8 | ||||
Summary | 0006472: server.rehash stucked when there is an error with unrealircd.conf | ||||
Description | When i run a server.rehash call from rpc it stop the code | ||||
Steps To Reproduce | socat - unix-connect:/home/adator/ircd/6.1.8/data/rpc.socket {"jsonrpc": "2.0", "method": "server.rehash", "params": {}, "id": 123} second attempt: {"jsonrpc": "2.0", "method": "server.rehash", "params": {}, "id": 123} response: {"jsonrpc": "2.0", "method": "server.rehash", "id": 123, "error": {"code": -32600, "message": "A rehash initiated by you is already in progress"}} | ||||
Additional Information | On unrealircd server side: * config.CONFIG_RELOAD [info] Rehashing server configuration file [by: RPC:[email protected]] * config.CONFIG_INFO_GENERIC [info] Loading IRCd configuration.. * config.CONFIG_ERROR_GENERIC [error] /home/adator/ircd/6.1.8/conf/unrealircd.conf:23: Unterminated quote found * config.CONFIG_LOAD_FILE_FAILED [error] Could not load configuration file: /home/adator/ircd/6.1.8/conf/unrealircd.conf | ||||
Tags | json-rpc | ||||
3rd party modules | |||||
|
Did you wait for the response of the 1st request? Because I cannot reproduce it. It works fine here... i make a bad config file and then do the rehash, it fails, then i do it again, it fails, then i update the config to be good again and retry, it succeeds. Just to be clear: you cannot issue a (second) rehash while another rehash is in progress. This is true for over JSON-RPC but also elsewhere, like REHASH on IRC as an IRCOp. |
|
In this 6.1.8.1 version the rehash is working for both cases error or success. |