monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
8.98k stars 3.11k forks source link

sendto: Network is unreachable #7904

Closed S1700 closed 3 years ago

S1700 commented 3 years ago

When I ran the command monerod in the bin dir after a bit of time it said sendto: Network is unreachable. I can't find any solutions online what could be the problem?

selsta commented 3 years ago

Do you have any issues apart from this message?

S1700 commented 3 years ago

wat?

cirocosta commented 3 years ago

Hey @Samuel20354, without much context is hard to help (e.g., which version? which OS? any other logs? did it ever work? have you tried with a higher log-level number? which flags passed to --monerod? etc).

"Network is unreachable" (ENETUNREACH) arrives when the kernel can't find a route to send a packet through in order to reach that destination ip.

e.g., if I have no routes and ifaces (other than loopback) at all and try to ping 1.1.1.1, i'll get back an ENETUNREACH

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

$ ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

$ ping 1.1.1.1
ping: connect: Network is unreachable

upadate: I'm not suuuper familiar with the codebase, but it's very likely sendto is being used on something UDP-related, which I imagine would be either on dns resolution or the miniupnp stuff (which can be disabled via --no-igd)

S1700 commented 3 years ago

Oh hi, I just saw this sorry. So the OS that I'm using is Ubuntu it's a VPS from vultr. This is the first time I have ran this and so it has not worked for me before. I don't know how to get the logs or how to change the log number. and I ran the monerod command by its self. This is what happens when I run the commands that you ran: image

Thanks!

S1700 commented 3 years ago

?

selsta commented 3 years ago

If ping 1.1.1.1 fails on your VPS it's not a monero related issue so I don't think the issue tracker here is the best place to resolve this. I would suggest you to contact Vultr support.

S1700 commented 3 years ago

ok