Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: command line SpeedTest Client Not working due to an SSL certificate error

  1. #1
    Join Date
    Dec 2020
    Beans
    24

    command line SpeedTest Client Not working due to an SSL certificate error

    I run ubuntu server 22.04 and my platform is armhf. I run the speedtest client version 1.0.0.2-1.5ae238b
    speedtest is the ookla program to run internt speedtests. it's not the 3rd party speedtest-cli.

    I get the following certificate error after launching the program:

    speedtest
    [2024-08-09 00:47:25.496] [error] Configuration - SSL peer certificate or SSH remote key was not OK (UnknownException)
    [2024-08-09 00:47:25.496] [error] Configuration - Cannot retrieve configuration document (0)
    [2024-08-09 00:47:25.497] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
    [2024-08-09 00:47:25.497] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
    [error] Configuration - Could not retrieve or read configuration (ConfigurationError)


    I haven't changed anything in the system lately, the program stopped working suddenly during the night (its execution is automated). I tried multiple potential fixes including updating ca-certificates and installing libssl1.1_1.1.1w-0+deb11u1, looking for updates.

    I ran out of ideas. no other program on the system has SSL certificate errors, I know speedtest user curl to connect so this issue is somewhat related to curl not liking certificates.

    let me know how can this be fixed
    Last edited by crpz41; August 9th, 2024 at 07:57 AM.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    Wait a day and try again.
    Repeat.

  3. #3
    currentshaft is offline Oops! My Coffee Cup is empty.
    Join Date
    May 2024
    Beans
    Hidden!

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    25
    Last edited by currentshaft; 1 Week Ago at 01:08 AM.

  4. #4
    Join Date
    Dec 2020
    Beans
    24

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    this is the official speedtest command line app from ookla. now I updated to the latest version

    available here:

    https://www.speedtest.net/apps/cli
    Last edited by crpz41; August 9th, 2024 at 08:46 AM.

  5. #5
    currentshaft is offline Oops! My Coffee Cup is empty.
    Join Date
    May 2024
    Beans
    Hidden!

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    g
    Last edited by currentshaft; 1 Week Ago at 01:08 AM.

  6. #6
    Join Date
    Dec 2020
    Beans
    24

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    speedtest-cli returns lower results for some reason (less than 300 mbps), maybe it's not very much optimized for my slow arm processor in the raspberry. if I can't test the potential full gigabit of the connection, keeping logs stop make sense. I need to recover the use of the old one.

    I noticed, if you restart the network service the speedtest works for a few minutes. would be cool to know why. other network related services work just fine.

  7. #7
    Join Date
    Mar 2007
    Location
    Promiseland
    Beans
    1,662
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    Code:
    $ apt show speedtest-cli
    Package: speedtest-cli
    Version: 2.1.3-2
    Priority: optional
    Section: universe/utils
    Origin: Ubuntu
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Original-Maintainer: Jonathan Carter <jcc@debian.org>
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Installed-Size: 106 kB
    Depends: python3:any, python3-pkg-resources, ca-certificates
    Homepage: https://github.com/sivel/speedtest-cli/
    Download-Size: 24.1 kB
    APT-Sources: http://us.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
    Description: Command line interface for testing internet bandwidth using speedtest.net
     Speedtest.net is a webservice that allows you to test your broadband
     connection by downloading a file from one of many Speedtest.net
     servers from around the world.
     .
     This utility allows you to use the Speedtest.net service from the
     command line.
     .
     Note: This tool accesses speedtest.net over http, while the web-based client
     uses websockets. This tool has shown to become increasingly inacurate with
     high-speed connections. For more information, see the readme on:
     https://github.com/sivel/speedtest-cli
    Cheers,


    The Linux Command Line at https://linuxcommand.org/

  8. #8
    Join Date
    Mar 2007
    Location
    Promiseland
    Beans
    1,662
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    Code:
    $ speedtest-cli &
    [1] 156644
    ....:~$ Retrieving speedtest.net configuration...
    Testing from Comcast Cable (xxx.xx.xxx.x)...
    Retrieving speedtest.net server list...
    Selecting best server based on ping...
    Hosted by Shentel (Ashburn, VA) [93.31 km]: 68.035 ms
    Testing download speed................................................................................
    Download: 79.57 Mbit/s
    Testing upload speed......................................................................................................
    Upload: 22.57 Mbit/s
    
    [1]+  Done                    speedtest-cli
    Last edited by him610; August 9th, 2024 at 10:40 PM. Reason: x'd out address
    Cheers,


    The Linux Command Line at https://linuxcommand.org/

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    Different models of Raspberry Pi hardware have different limitations on bandwidth, regardless of what the spec sheet says. Some with "GigE" ports can only get at most 250Mbps because that GigE port is internally connected to a USB2 bus.

    So, what exact version of Rapberry Pi and which exact version of an OS is being used? Those are the first two questions to be answered. I see 22.04 but is that desktop Ubuntu or Server or Core?

  10. #10
    Join Date
    Dec 2020
    Beans
    24

    Re: command line SpeedTest Client Not working due to an SSL certificate error

    notes on the system:
    I have ubuntu 22.04 server, there is no GUI.
    the raspberry is the Pi4 4GB RAM. for the task I do, it's overkill.
    I use max 512MB of RAM and I hit 100% cpu usage only during security updates. the other network services use very low bandwidth and cpu.
    it's basically a network QoS monitoring device with few services available for local users (for example Pihole)

    back to the speedtest problem:

    with the regular speedtest program I can hit 940 mbps download, the cpu usage goes mainly on 1-2 cores, it's not heavy at all. I don't know why the cli version cannot perform the same, we are here to find why the regular app see network problems.
    the problem isn't the app, it's something in the system of course related to certificates and access to the network. we shouldn't focus on the speedtest program itself.
    Last edited by crpz41; August 10th, 2024 at 01:49 PM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •