EdenLostMinetest / edenlost

Issues, mods, configs for the EdenLost Minetest server (el.edgy1.net:48131)
Apache License 2.0
1 stars 0 forks source link

Fix geoip command #40

Open Klaranth opened 2 years ago

Klaranth commented 2 years ago

/geoip needs a checkup. It won't work 99 percent of the time.

dennisjenkins75 commented 2 years ago

Note: The command works shortly after a server restart, but after a while it seems to fail with an HTTP error. Also note that the "geoip" lookup is done automatically on each login, with the results going into the server logs.

Possible causes for "/geoip" failure:

  1. The service that we're accessing (via HTTP) is intentionally failing the lookups, maybe b/c our server's IP address is making too many calls to it too often.
  2. There is a resource leak on the server side, either in multicraft-2.0.0, or in the geoip mod itself.

Suggestions for a fix:

  1. Modify the mod to not auto-lookup geo location for each player login.
  2. Attempt to reproduce the problem on my testing environment, and capture network traffic for inspection.
dennisjenkins75 commented 2 years ago

Error message observed (my IP addr is redacted).

2022-02-11 01:56:10: ACTION[Server]: sysadmin [<redacted>] joins game. List of players: sysadmin
2022-02-11 01:56:10: WARNING[CurlFetch]: https://tools.keycdn.com/geo.json?host=<redacted> not found (Error in the HTTP2 framing layer) (response code 0)