Skip to content

[BUG] Irregular speedtest fail #81

Open

Description

@batumulia

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have been getting some fails on speedtests without any clear indication why. Getting the following error:
Error: [111] Connection refused | Error: [0] Cannot read from socket: | Error: [101] Network unreachable

Image Image

Expected Behavior

Expected is to have all tests complete

Steps To Reproduce

  1. Run the app in docker environment
  2. Run test hourly
  3. Sometimes test passes, sometimes it does not

Environment

- OS: Ubuntu 24.04.4 LTS
- How docker service was installed: Through apt

CPU architecture

x86-64

Docker creation

services:
    speedtest-tracker:
        image: lscr.io/linuxserver/speedtest-tracker:latest
        restart: unless-stopped
        container_name: speedtest-tracker
        ports:
            - 8080:80
            - 8443:443
        environment:
            - PUID=1000
            - PGID=1000
            - APP_KEY=base64:xxxxxx
            - APP_URL=https://xxxxx
            - APP_DEBUG=true
            - DB_CONNECTION=sqlite
            - APP_TIMEZONE=Europe/Budapest
            - ASSET_URL=https://xxxxx
            - SPEEDTEST_SCHEDULE=0 * * * *
            - DISPLAY_TIMEZONE=Europe/Budapest
        volumes:
            - /docker/speedtester/config:/config
            - /docker/speedtester/config/keys:/config/keys

Container logs

2026-07-25T08:34:22.774118632Z [speedtest-tracker] [migrations] started
2026-07-25T08:34:22.779758963Z [speedtest-tracker] [migrations] 01-nginx-site-confs-default: skipped
2026-07-25T08:34:22.779879901Z [speedtest-tracker] [migrations] done
2026-07-25T08:34:22.826125237Z [speedtest-tracker] ───────────────────────────────────────
2026-07-25T08:34:22.826143870Z [speedtest-tracker] 
2026-07-25T08:34:22.826147328Z [speedtest-tracker]       ██╗     ███████╗██╗ ██████╗
2026-07-25T08:34:22.826150348Z [speedtest-tracker]       ██║     ██╔════╝██║██╔═══██╗
2026-07-25T08:34:22.826153004Z [speedtest-tracker]       ██║     ███████╗██║██║   ██║
2026-07-25T08:34:22.826155624Z [speedtest-tracker]       ██║     ╚════██║██║██║   ██║
2026-07-25T08:34:22.826158240Z [speedtest-tracker]       ███████╗███████║██║╚██████╔╝
2026-07-25T08:34:22.826160812Z [speedtest-tracker]       ╚══════╝╚══════╝╚═╝ ╚═════╝
2026-07-25T08:34:22.826163410Z [speedtest-tracker] 
2026-07-25T08:34:22.826165907Z [speedtest-tracker]    Brought to you by linuxserver.io
2026-07-25T08:34:22.826168478Z [speedtest-tracker] ───────────────────────────────────────
2026-07-25T08:34:22.826281961Z [speedtest-tracker] 
2026-07-25T08:34:22.826425720Z [speedtest-tracker] To support the app dev(s) visit:
2026-07-25T08:34:22.828260977Z [speedtest-tracker] speedtest-tracker: https://github.com/sponsors/alexjustesen
2026-07-25T08:34:22.828745490Z [speedtest-tracker] 
2026-07-25T08:34:22.828755576Z [speedtest-tracker] To support LSIO projects visit:
2026-07-25T08:34:22.828758814Z [speedtest-tracker] https://www.linuxserver.io/donate/
2026-07-25T08:34:22.828761352Z [speedtest-tracker] 
2026-07-25T08:34:22.828778886Z [speedtest-tracker] ───────────────────────────────────────
2026-07-25T08:34:22.828783274Z [speedtest-tracker] GID/UID
2026-07-25T08:34:22.828911681Z [speedtest-tracker] ───────────────────────────────────────
2026-07-25T08:34:22.833481039Z [speedtest-tracker] 
2026-07-25T08:34:22.833501782Z [speedtest-tracker] User UID:    1000
2026-07-25T08:34:22.833505125Z [speedtest-tracker] User GID:    1000
2026-07-25T08:34:22.833507685Z [speedtest-tracker] ───────────────────────────────────────
2026-07-25T08:34:22.835489903Z [speedtest-tracker] Linuxserver.io version: v1.14.6-ls164
2026-07-25T08:34:22.835505632Z [speedtest-tracker] Build-date: 2026-07-23T15:51:22+00:00
2026-07-25T08:34:22.835508777Z [speedtest-tracker] ───────────────────────────────────────
2026-07-25T08:34:22.835512051Z [speedtest-tracker]     
2026-07-25T08:34:22.895301291Z [speedtest-tracker] using keys found in /config/keys
2026-07-25T08:34:25.122172070Z [speedtest-tracker] [custom-init] No custom files found, skipping...
2026-07-25T08:34:25.154336701Z [speedtest-tracker] [ls.io-init] done.
2026-07-25T09:00:02.406808799Z [speedtest-tracker] [2026-07-25 11:00:02] production.DEBUG: Pinged hostname {"host":"icanhazip.com","data":{"success":true,"error":null,"host":"icanhazip.com","packet_loss_percentage":0,"packets_transmitted":1,"packets_received":1,"options":{"timeout_in_seconds":5,"interval":1.0,"packet_size_in_bytes":56,"ttl":64,"ip_version":"ipv4"},"timings":{"minimum_time_in_ms":8.266,"maximum_time_in_ms":8.266,"average_time_in_ms":8.266,"standard_deviation_time_in_ms":0.0}}} 
2026-07-25T10:00:02.144965313Z [speedtest-tracker] [2026-07-25 12:00:02] production.DEBUG: Pinged hostname {"host":"icanhazip.com","data":{"success":true,"error":null,"host":"icanhazip.com","packet_loss_percentage":0,"packets_transmitted":1,"packets_received":1,"options":{"timeout_in_seconds":5,"interval":1.0,"packet_size_in_bytes":56,"ttl":64,"ip_version":"ipv4"},"timings":{"minimum_time_in_ms":8.446,"maximum_time_in_ms":8.446,"average_time_in_ms":8.446,"standard_deviation_time_in_ms":0.0}}} 
2026-07-25T11:00:02.337468175Z [speedtest-tracker] [2026-07-25 13:00:02] production.DEBUG: Pinged hostname {"host":"icanhazip.com","data":{"success":true,"error":null,"host":"icanhazip.com","packet_loss_percentage":0,"packets_transmitted":1,"packets_received":1,"options":{"timeout_in_seconds":5,"interval":1.0,"packet_size_in_bytes":56,"ttl":64,"ip_version":"ipv4"},"timings":{"minimum_time_in_ms":8.411,"maximum_time_in_ms":8.411,"average_time_in_ms":8.411,"standard_deviation_time_in_ms":0.0}}} 
2026-07-25T12:00:03.311125952Z [speedtest-tracker] [2026-07-25 14:00:03] production.DEBUG: Pinged hostname {"host":"icanhazip.com","data":{"success":true,"error":null,"host":"icanhazip.com","packet_loss_percentage":0,"packets_transmitted":1,"packets_received":1,"options":{"timeout_in_seconds":5,"interval":1.0,"packet_size_in_bytes":56,"ttl":64,"ip_version":"ipv4"},"timings":{"minimum_time_in_ms":8.82,"maximum_time_in_ms":8.82,"average_time_in_ms":8.82,"standard_deviation_time_in_ms":0.0}}}

Activity

  1. github-actions commented on Jul 25, 2026

    @github-actions

    Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

  2. batumulia commented on Jul 25, 2026

    @batumulia
    Author

    Additional info:

    `docker exec -it speedtest-tracker sh -c "curl -v https://icanhazip.com"
    * Host icanhazip.com:443 was resolved.
    * IPv6: 2606:4700::6810:b9f1, 2606:4700::6810:b8f1
    * IPv4: 104.16.184.241, 104.16.185.241
    *   Trying [2606:4700::6810:b9f1]:443...
    * Immediate connect fail for 2606:4700::6810:b9f1: Network unreachable
    * connect to 2606:4700::6810:b9f1 port 443 from :: port 0 failed: Network unreachable
    *   Trying 104.16.184.241:443...
    * ALPN: curl offers h2,http/1.1
    * TLSv1.3 (OUT), TLS handshake, Client hello (1):
    * SSL Trust Anchors:
    *   CAfile: /etc/ssl/certs/ca-certificates.crt
    *   CApath: /etc/ssl/certs
    * TLSv1.3 (IN), TLS handshake, Server hello (2):
    * TLSv1.3 (IN), TLS change cipher, Change cipher spec (1):
    * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
    * TLSv1.3 (IN), TLS handshake, Certificate (11):
    * TLSv1.3 (IN), TLS handshake, CERT verify (15):
    * TLSv1.3 (IN), TLS handshake, Finished (20):
    * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
    * TLSv1.3 (OUT), TLS handshake, Finished (20):
    * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
    * ALPN: server accepted h2
    * Server certificate:
    *   subject: CN=icanhazip.com
    *   start date: Jun 12 10:41:09 2026 GMT
    *   expire date: Sep 10 11:40:50 2026 GMT
    *   issuer: C=US; O=Google Trust Services; CN=WE1
    *   Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA256
    *   Certificate level 1: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA384
    *   Certificate level 2: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
    *   subjectAltName: "icanhazip.com" matches cert's "icanhazip.com"
    * OpenSSL verify result: 0
    * SSL certificate verified via OpenSSL.
    * Established connection to icanhazip.com (104.16.184.241 port 443) from 192.168.32.2 port 45836
    * using HTTP/2
    * [HTTP/2] [1] OPENED stream for https://icanhazip.com/
    * [HTTP/2] [1] [:method: GET]
    * [HTTP/2] [1] [:scheme: https]
    * [HTTP/2] [1] [:authority: icanhazip.com]
    * [HTTP/2] [1] [:path: /]
    * [HTTP/2] [1] [user-agent: curl/8.21.0]
    * [HTTP/2] [1] [accept: */*]
    > GET / HTTP/2
    > Host: icanhazip.com
    > User-Agent: curl/8.21.0
    > Accept: */*
    >
    * Request completely sent off
    * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    < HTTP/2 200
    < date: Sat, 25 Jul 2026 13:38:06 GMT
    < content-type: text/plain
    < content-length: 14
    < access-control-allow-origin: *
    < access-control-allow-methods: GET
    < set-cookie: __cf_bm=ov4mazPEuAoNzqiznPH_sPKLZiAj2Mu5XzE8gkWz818-1784986686.7982795-1.0.1.1-y.xUPcKeHF9n4RiIAU1eeMfD4NBo8gdYwigV9zawN.B.2m2PrnrOMWTXTS0xDRzd7O2iG_1gmxslBYgO1heznoGJxJRTgAthPeS9iLvdAfx7u3s14b_bNGyOYRNP6Ro2; HttpOnly; SameSite=None; Secure; Path=/; Domain=icanhazip.com; Expires=Sat, 25 Jul 2026 14:08:06 GMT
    < server: cloudflare
    < cf-ray: a20b90287c5a11d5-VIE
    < alt-svc: h3=":443"; ma=86400
    <
    xxx.xxx.xxx.xxx
    * Connection #0 to host icanhazip.com:443 left intact`
    
    `docker exec -e APP_DEBUG=true speedtest-tracker speedtest -v -f json-pretty
    {
        "type": "log",
        "timestamp": "2026-07-25T13:39:44Z",
        "message": "Error in connection: 111 - Connection refused",
        "level": "warning"
    }
    {
        "type": "log",
        "timestamp": "2026-07-25T13:39:44Z",
        "message": "Error in connection: 111 - Connection refused",
        "level": "warning"
    }
    {
        "type": "log",
        "timestamp": "2026-07-25T13:39:44Z",
        "message": "Error: [111] Connection refused",
        "level": "error"
    }
    {
        "type": "log",
        "timestamp": "2026-07-25T13:39:47Z",
        "message": "Timeout occurred in connect.",
        "level": "warning"
    }
    {
        "type": "log",
        "timestamp": "2026-07-25T13:39:47Z",
        "message": "Connect failed: [101] Network unreachable",
        "level": "warning"
    }
    {
        "type": "log",
        "timestamp": "2026-07-25T13:39:47Z",
        "message": "Error: [101] Network unreachable",
        "level": "error"
    }
    {
        "type": "log",
        "timestamp": "2026-07-25T13:39:54Z",
        "message": "Loaded latency: cannot read response.: [11] Resource temporarily unavailable",
        "level": "warning"
    }
    {
        "type": "log",
        "timestamp": "2026-07-25T13:39:54Z",
        "message": "No libz support available, not compressing data.",
        "level": "warning"
    }
    {
        "type": "result",
        "timestamp": "2026-07-25T13:39:55Z",
        "ping": {
            "jitter": 0.440,
            "latency": 1.691,
            "low": 1.415,
            "high": 2.174
        },
        "download": {
            "bandwidth": 117487898,
            "bytes": 436655520,
            "elapsed": 3713,
            "latency": {
                "iqm": 12.878,
                "low": 3.004,
                "high": 13.993,
                "jitter": 0.436
            }
        },
        "upload": {
            "bandwidth": 116727588,
            "bytes": 422431506,
            "elapsed": 3620,
            "latency": {
                "iqm": 1.860,
                "low": 1.487,
                "high": 3.275,
                "jitter": 0.221
            }
        },
        "packetLoss": 0,
        "isp": "Magyar Telekom",
        "interface": {
            "internalIp": "192.168.32.2",
            "name": "eth0",
            "macAddr": "C2:E0:50:CC:B8:C3",
            "isVpn": false,
            "externalIp": "86.59.200.176"
        },
        "server": {
            "id": 28951,
            "host": "bp-speedtest.zt.hu",
            "port": 8080,
            "name": "ZNET Telekom Zrt.",
            "location": "Budapest",
            "country": "Hungary",
            "ip": "185.232.83.0"
        },
        "result": {
            "id": "32d2e2ba-151a-4439-9a56-15e6c85dada5",
            "url": "https://www.speedtest.net/result/c/32d2e2ba-151a-4439-9a56-15e6c85dada5",
            "persisted": true
        }
    }`
    
  3. j0nnymoe commented on Jul 25, 2026

    @j0nnymoe
    Member

    I wouldn't say this is an issue with the container but an issue just between yourself<>that specific speedtest server. I've experience the same issues and just removed them from my automated tests.

  4. batumulia commented on Jul 27, 2026

    @batumulia
    Author

    I wouldn't say this is an issue with the container but an issue just between yourself<>that specific speedtest server. I've experience the same issues and just removed them from my automated tests.

    Yes it may be, but how would I go about finding out which server it was trying to connect to, to find out if it really is a server issue or further troubleshooting on app side may need to be done?

  5. j0nnymoe commented on Jul 27, 2026

    @j0nnymoe
    Member

    I just set the servers I want to test against in my compose file.

  6. LinuxServer-CI commented on Aug 27, 2026

    @LinuxServer-CI
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

  7. 2q2code commented on Sep 28, 2026

    @2q2code

    More information on this - if you try to curl exclusively with IPv6, it will fail as unreachable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions