gnmyt / myspeed

A speed test analysis software that shows your internet speed for up to 30 days
https://myspeed.dev
MIT License
329 stars 18 forks source link

[Bug] error occurred: getaddrinfo #738

Closed scottsteely closed 2 weeks ago

scottsteely commented 2 weeks ago

General

The Bug

When I attempt to install myspeed in a docker environment following the guide I receive the following error:

Successfully connected to the database file
Integration "discord" loaded successfully
Integration "gotify" loaded successfully
Integration "healthChecks" loaded successfully
Integration "pushover" loaded successfully
Integration "telegram" loaded successfully
Integration "webhook" loaded successfully
Looking for network interfaces...
An error occurred: getaddrinfo EAI_AGAIN www.speedtest.net
An error occurred: getaddrinfo EAI_AGAIN librespeed.org

Docker info:

Client:
 Version:    25.0.3
 Context:    default
 Debug Mode: false
 Plugins:
  compose: Docker Compose (Docker Inc.)
    Version:  v2.18.1
    Path:     /usr/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 5
  Running: 3
  Paused: 0
  Stopped: 2
 Images: 22
 Server Version: 25.0.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version:
 runc version:
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 5.15.150
 Operating System: OpenWrt 23.05.3
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 3.713GiB
 Name: Scotts_Magick_Box
 ID: 2cfd4953-9f1b-4792-b8bc-0d41ab72460a
 Docker Root Dir: /opt/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support

What device are you using to access the page?

In the browser

Which operating system is your MySpeed instance running on?

Linux

825i commented 2 weeks ago

This is a DNS error. You are probably blocking both these sites at the DNS level or whatever DNS you are using cannot find this address. It's not a problem with the application itself. Whitelist both the domains that you are having errors with.

If that doesn't work, a simple restart of the container should fix the issue.

If this solves the issue please remember to close this thread thanks.

scottsteely commented 2 weeks ago

Fixed! Thanks for the help.