I want to run monero-wallet-cli
on a separate machine that connects to monerod
onion service. To this end, inspired by this tutorial, having created the onion service I configured my bitmonero.conf
:
no-igd=1
restricted-rpc=1
rpc-login=USERNAME:PASSWORD
and launched monerod
like so: monerod --detach
. The daemon works as evidenced by the informational output that I get from executing this from my cient curl --socks5-hostname 127.0.0.1:9150 -u USERNAME:PASSWORD --digest -X POST http://j************************d.onion:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_info"}' -H 'Content-Type: application/json'
.
When I ssh into the machine that hosts monerod
I try to shut it down with monerod exit
or
monerod stop_daemon
it does not work, I get:
2024-04-04 12:32:54.642 I Monero 'Fluorine Fermi' (v0.18.1.0-c8214782f)
Error: Daemon did not stop-- rpc_request:
instead of what i normally would get when the daemon is launched without RPC options,
2024-04-04 12:31:27.478 I Monero 'Fluorine Fermi' (v0.18.1.0-c8214782f)
Stop signal sent
Having unsuccessfully tried stopping the service serverside, I then proceeded to stop
the daemon by sending a request from the client:
curl --socks5-hostname 127.0.0.1:9150 -u USER:PASSWORD http://j************************d.onion:18081/stop_daemon -H 'Content-Type: application/json'
and got this output:
<html><head><title>Unauthorized Access</title></head><body><h1>401 Unauthorized</h1></body></html>
What is happening with the m̀onerod
? Why cannot I shut it down?
P.S. My monerod
is hosted on a Debian based system and is run by root
. As I have not started my deamon with --rpc-bind-ip
please do not consider it a duplicate of this question.