maelstrom-cms / odin

An open-source domain monitoring tool built using Maelstrom ๐Ÿค– Uptime Robot + ๐Ÿง Oh Dear + ๐Ÿงช SSL Labs + โฐ Cronitor + ๐Ÿ•ต๐Ÿปโ€โ™‚๏ธ DNS Spy
Mozilla Public License 2.0
458 stars 93 forks source link

dns_get_record(): A temporary server error occurred. #91

Open Umplo opened 6 months ago

Umplo commented 6 months ago

Hi there,

I've installed Odin on an Ubuntu 20.04 system, and configured Apache2 with a self-signed SSL certificate. Laravel is configured with composer and npm, and PHP 7.4 is connected to the latest releases of MySQL and Redis databases, both of which deployed via docker on the same host separately, and connected as per the odin .env. Everything is working so far except for DNS monitoring, which is a total shame. Currently, I'm running into the following error in my laravel logs:

[2024-03-02 16:45:39] local.ERROR: dns_get_record(): A temporary server error occurred.

And consequently, monitoring "DNS Records" is not working at all.

image

What is working?

OwenMelbz commented 6 months ago

Hi,

Sorry I don't think I'm going to be much good here, a guess would be that whatever PHP calls under the hood for fetching dns records is failing because of a system/networking issue.

You can see here https://www.google.com/search?q=dns_get_record%28%29%3A+a+temporary+server+error+occurred.&sca_esv=781689f199775288&rlz=1CDGOYI_enGB590GB590&hl=en-GB&sxsrf=ACQVn0-90VtTqfwmnlZVJEevXm1l4hVOUQ%3A1709457120302&ei=4D7kZe2HEoPJhbIPoZ28iAs&oq=dns_get_record+php&gs_lp=EhNtb2JpbGUtZ3dzLXdpei1zZXJwIhJkbnNfZ2V0X3JlY29yZCBwaHAqAggAMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADSPkKUABYAHABeAGQAQCYAQCgAQCqAQC4AQHIAQCYAgGgAguYAwCIBgGQBgiSBwEx&sclient=mobile-gws-wiz-serp that Google is filled with people with this issue so there might be a solution how to fix it

Umplo commented 6 months ago

Hi @OwenMelbz,

I'm not convinced it's simply a DNS or network misconfiguration.

As things stand, DNS resolution works fine on the ubuntu host, and Odin is perfectly capable of monitoring sites online, such as https://www.microsoft.com, and https://www.cnn.com, as seen below.

image

I'm aware there's a PHP bug that leads to the aforementioned error, and I'm wondering if it could be related; https://bugs.php.net/bug.php?id=73149

OwenMelbz commented 6 months ago

Are you able to run it on a newer version of php?

Umplo commented 6 months ago

@OwenMelbz Which version do you recommend for Odin?

OwenMelbz commented 6 months ago

Theoretically it shouldn't matter, but if you're experiencing a bug in the version you're running then anything newer to try and see if that's the case, so could just try something like 8.2 and see what happens