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

    Speedtest not working after upgrade to 2.5.0

    Scheduled Pinned Locked Moved pfSense Packages
    22 Posts 10 Posters 7.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.
    • fireodoF
      fireodo @fireodo
      last edited by fireodo

      @fireodo
      For those who stumble on this thread:

      I found myself the fault: there was another pair of speedtest and speedtest-cli (executables) left (after program removal) in the "/usr/bin" from the previous speedtest installation (2.1.1) that where conflicting with the speedtest / speedtest-cli (2.1.2) from the "/usr/local/bin".

      Now everything is as it should be. Sorry for embarrassing you!

      fireodo

      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.

      GertjanG 1 Reply Last reply Reply Quote 2
      • GertjanG
        Gertjan @fireodo
        last edited by

        Yeah, that's one of the side effect when you install manually FreeBSD packages that use another 'file foot print' as the pfSense-FreeBSD packages, present in the pfSense package repository.

        As soon as you install stuff manually with "pkg install ..." I advise you to takes Notes.

        That is : install the pfSense Notes package.
        And enter all the details, like the package file name, version, FreeBSD version, etc.
        Add also settings, if you created them.
        The Notes will get saved with your config.

        Inspecting the package (they are archive files that can be inspected) show you what files are copied where.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 2
        • occamsrazorO
          occamsrazor
          last edited by

          It would be nice if they could include the speedtest CLI + widget packages in the package directory....

          pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
          Ubiquiti Unifi wired and wireless network, APC UPSs
          Mac OSX and IOS devices, QNAP NAS

          GertjanG 1 Reply Last reply Reply Quote 1
          • GertjanG
            Gertjan @occamsrazor
            last edited by Gertjan

            @occamsrazor said in Speedtest not working after upgrade to 2.5.0:

            speedtest CLI

            It is in the pfSense repository.
            Remember : the pfSense repository is not the FreeBSD repository.

            But " pfSense repository" doesn't automatically mean it's in the pfSense package manager, as these are packages that are (re)written express so they can use the pfSense GUI.

            edit : understand also that Netgate/pfSense isn't going to 'advertise' all these packages, as installing them manually can have all kind of side effects, which has nothing to do with the core pfSense functionalities.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            fireodoF occamsrazorO 2 Replies Last reply Reply Quote 0
            • fireodoF
              fireodo @Gertjan
              last edited by

              @gertjan said in Speedtest not working after upgrade to 2.5.0:

              @occamsrazor said in Speedtest not working after upgrade to 2.5.0:

              speedtest CLI

              It is in the pfSense repository.
              Remember : the pfSense repository is not the FreeBSD repository.

              But " pfSense repository" doesn't automatically mean it's in the pfSense package manager, as these are packages that are (re)written express so they can use the pfSense GUI.

              edit : understand also that Netgate/pfSense isn't going to 'advertise' all these packages, as installing them manually can have all kind of side effects, which has nothing to do with the core pfSense functionalities.

              I guess what occamsrazor mean is that the "speedtest"-package should contain the afferent widget included in one single package ...

              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.

              1 Reply Last reply Reply Quote 0
              • L
                Larusso
                last edited by

                Hi, I've got problem with speedtest after upgrade too, unfortunately it is not connected to conflicting versions as I've checked to only have 2.1.2 version installed. It seems python do not have ssl module available and for some reason speedtest triies to use https version even without using --secure switch.
                Here is a stack trace
                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 1121, in get_config
                uh, e = catch_request(request, opener=self._opener)
                File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 730, in catch_request
                uh = _open(request)
                File "/usr/local/lib/python3.7/urllib/request.py", line 531, in open
                response = meth(req, response)
                File "/usr/local/lib/python3.7/urllib/request.py", line 641, in http_response
                'http', request, response, code, msg, hdrs)
                File "/usr/local/lib/python3.7/urllib/request.py", line 563, in error
                result = self._call_chain(*args)
                File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
                result = func(*args)
                File "/usr/local/lib/python3.7/urllib/request.py", line 755, in http_error_302
                return self.parent.open(new, timeout=req.timeout)
                File "/usr/local/lib/python3.7/urllib/request.py", line 525, in open
                response = self._open(req, data)
                File "/usr/local/lib/python3.7/urllib/request.py", line 543, in _open
                '_open', req)
                File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
                result = func(*args)
                File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 563, in https_open
                SpeedtestHTTPSConnection,
                NameError: name 'SpeedtestHTTPSConnection' is not defined

                1 Reply Last reply Reply Quote 0
                • occamsrazorO
                  occamsrazor @Gertjan
                  last edited by

                  @gertjan said in Speedtest not working after upgrade to 2.5.0:

                  It is in the pfSense repository.

                  Thanks. I wasn't aware of that.

                  Remember : the pfSense repository is not the FreeBSD repository.
                  But " pfSense repository" doesn't automatically mean it's in the pfSense package manager, as these are packages that are (re)written express so they can use the pfSense GUI.

                  Well as the speedtest-cli has a widget that can be installed into the pfSense GUI... seems like it would make sense to add it to the packages list in the Package Manager,

                  pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
                  Ubiquiti Unifi wired and wireless network, APC UPSs
                  Mac OSX and IOS devices, QNAP NAS

                  1 Reply Last reply Reply Quote 1
                  • K
                    KevinRice
                    last edited by

                    Speedtest 2.1.2 Broken

                    Speedtest 2.1.2 broke yesterday and stopped working, producing the error message:

                    ValueError: invalid literal for int() with base 10: ''.

                    An updated version 2.1.3 has been posted by the author, but has not yet been picked up into the package repositories.

                    Since a package update doesn't work, this manual update method worked for me in the interim:

                    # CONFIRM VERSION
                    : speedtest --version
                    speedtest-cli 2.1.2
                    Python 3.7.9 (default, Feb  5 2021, 20:17:58) [Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611a
                    
                    # CHANGE TO PYTHON PACKAGE DIRECTORY
                    : cd /usr/local/lib/python3.7/site-packages
                    
                    # MANUALLY DOWNLOAD NEWEST .PY FILE
                    : curl -Lo speedtest.py https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
                    
                    # CONFIRM VERSION
                    : speedtest --version
                    speedtest-cli 2.1.3
                    Python 3.7.9 (default, Feb  5 2021, 20:17:58) [Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611a
                    
                    
                    E T 2 Replies Last reply Reply Quote 8
                    • E
                      eostrike @KevinRice
                      last edited by

                      @kevinrice thank you for posting this. I could not get 3 of my boxes speedtest working until I found your post here. My speedtest bricked on all three moving over to 2.5.X. All is working as it should now. You are awesome!!!

                      1 Reply Last reply Reply Quote 2
                      • dcj99bD
                        dcj99b
                        last edited by

                        WOW !!!
                        Thanks 1000 thanks
                        Upgrading to 2.1.3 as per your instructions worked perfectly.
                        THANKS. THANKS. THANKS. THANKS.

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

                          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 3
                          • T
                            talbotdeg4 @KevinRice
                            last edited by

                            @kevinrice
                            Thanks!

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