Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Error while using speedtest command

    Scheduled Pinned Locked Moved pfSense Packages
    speedtestspeedtest2.1.2
    4 Posts 3 Posters 3.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zaileion
      last edited by zaileion

      Speed test not working. Error copy/paste at bottom of post.

      I have Googled this trying to find a solution and removed the speedtest files from /usr/local/bin as suggested here:
      https://forum.netgate.com/topic/160996/speedtest-not-working-after-upgrade-to-2-5-0/18

      I removed the speedtest package:

      pkg delete py37-speedtest-cli
      

      and reinstalled:

      pkg update ; pkg install -y py37-speedtest-cli
      

      I also noticed the final post by KevinRice that provides some instruction for a workaround and wanted to know if this was a valid option before installing on the device that gives me access to the internet... Also, is there a fix in the works and should I wait for the fix as opposed to using the workaround suggested by KevinRice.

      I also installed the widget:
      https://github.com/aln-1/pfsense-speedtest-widget
      Doesn't work.

      Here is the error output:

      speedtest
      Retrieving speedtest.net configuration...
      Traceback (most recent call last):
        File "/usr/local/bin/speedtest", line 11, in <module>
          load_entry_point('speedtest-cli==2.1.2', 'console_scripts', 'speedtest')()
        File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1986, in main
          shell()
        File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1875, in shell
          secure=args.secure
        File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1091, in __init__
          self.get_config()
        File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1174, in get_config
          map(int, server_config['ignoreids'].split(','))
      ValueError: invalid literal for int() with base 10: ''
      

      Here is the install command and output for reference of version:

      pkg update ; pkg install -y py37-speedtest-cli
      Updating pfSense-core repository catalogue...
      pfSense-core repository is up to date.
      Updating pfSense repository catalogue...
      pfSense repository is up to date.
      All repositories are up to date.
      Updating pfSense-core repository catalogue...
      pfSense-core repository is up to date.
      Updating pfSense repository catalogue...
      pfSense repository is up to date.
      All repositories are up to date.
      Checking integrity... done (0 conflicting)
      The following 1 package(s) will be affected (of 0 checked):
      
      New packages to be INSTALLED:
              py37-speedtest-cli: 2.1.2 [pfSense]
      
      Number of packages to be installed: 1
      [1/1] Installing py37-speedtest-cli-2.1.2...
      [1/1] Extracting py37-speedtest-cli-2.1.2: 100%
      

      I sure would like to use Speedtest in my pfsense router, and the widget is really awesome. Any suggestions or recommendations for a fix would be most appreciated.

      Thank you!!!

      fireodoF 1 Reply Last reply Reply Quote 0
      • fireodoF
        fireodo @zaileion
        last edited by

        @zaileion

        Take a look here:

        speedtest-cli-dying-out

        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
        pfsense 2.8.0 CE
        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

        Z 1 Reply Last reply Reply Quote 0
        • Z
          zaileion @fireodo
          last edited by

          @fireodo Yes. Thank you. Both solutions suggested worked for me, I tried both. This is solved via workaround.

          1 Reply Last reply Reply Quote 0
          • SebMS
            SebM
            last edited by

            This method is pretty bulletproof for me:

            As per this page How To Install Speedtest-cli On a FreeBSD To Check Internet Speed, I simply ran these two commands in the GUI at Diagnostics / Command Prompt / Execute Shell Command:

            pkg search speedtest
            

            This returned the following:
            py38-speedtest-cli-2.1.3
            Command line interface for testing internet bandwidth

            so I ran this command:

            pkg install -y py38-speedtest-cli-2.1.3
            

            Then from there I simply run speedtest

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.