Closed martin-braun closed 1 year ago
what are you using in your config for your rpc url?
@majestrate I kept it default (ipc://oxend/mainnet.sock
). oxend
is fully synced and running on the same system.
I kinda assumed that mainnet.py
is only important when running uwsgi-emperor
, since it's not mentioned in the debug section.
I kindly ask for some clearance, since I never setup a blockchain explorer in the past. How can I get this running in debug mode, please?
On Sunday, 18 June 2023 08:35:28 EDT Martin Braun wrote:
@majestrate I kept it default (
ipc://oxend/mainnet.sock
).oxend
is fully synced and running on the same system.I kinda assumed that
mainnet.py
is only important when runninguwsgi-emperor
, since it's not mentioned in the debug section.I kindly ask for some clearance, since I never setup a blockchain explorer in the past. How can I get this running, please?
the default socket file for oxend with the debian packages i believe is at / var/lib/oxen/oxend.sock
additionally, if i recall this will also require the uwsgi vassal running under the same group (not necessarily user) as the oxen daemon so it can read the socket file. this group i THINK is still called _loki
this means, given the above information is correct, (jason can correct me here on such information) the vassal needs to have "gid=_loki" added to the uwsgi section of the vassel and the rpc socket set in the ini config for the explorer be set to use ipc:///var/lib/oxen/oxend.sock
you could also run oxend as a "normal" user such that it uses $HOME/.oxen as the data dir for the node, then i believe it uses $HOME/.oxen/mainnet.sock (i think?). the url for rpc can then be symlinked into the directory that the explorer is running in like so:
cd where/ever/your/explorer/runs ln -s $HOME/.oxen/mainnet.sock
and you can then set rpc socket url to be ipc://mainnet.sock
-- ~jeff
Hi @majestrate this certainly helps me to get my head around. While the first part of your response is fairly documented (production use), the debug instructions in regards of the sock are missing. Big thanks for the clearance.
However, I wasn't able to fix the sock issue by following your instructions blindly. After fiddling around, I figured it out:
The sock is called oxend.sock
and needs to be set in the local_config.py
to be used in debug mode. Simply executing
echo config.oxend_rpc = oxenmq.Address('ipc://$HOME/.oxen/oxend.sock') >> local_config.py
will fix the problem, but there are more issues down the line, i.e. #18. I appreciate your support, maybe you have some further advice. 🙏
I try to run the debug server in my Debian guest OS, but running
and accessing the website logs the following exception:
My
devnet-observer.ini
contents are:No
uwsgi.log
gets created. I'm probably missing something here, so a better documentation would be helpful for new-comers.