Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedtest not running Manually or via Cronjob #184

Open
arkdev1 opened this issue Sep 10, 2024 · 2 comments
Open

Speedtest not running Manually or via Cronjob #184

arkdev1 opened this issue Sep 10, 2024 · 2 comments

Comments

@arkdev1
Copy link

arkdev1 commented Sep 10, 2024

Speedtest not running Manually or via Cronjob

Description

The system is failing to run speed tests, both when executed manually and via the configured cronjob. Despite multiple attempts, no speed test results are being generated.
Below is the relevant section from the speedtest-run.log file for further analysis.

Log Output

root@pi-hole:~# cat /var/log/pihole/speedtest-run.log 
Running Test...
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error: syntax error, unexpected ';' (Unix shell quoting issues?) at <top-level>, line 2:
    def walk(f): . as $in | if type == "object" then reduce keys_unsorted[] as $key ({}; . + { ($key):  ($in[$key] | walk(f)) }) | f else if type == "array" then map( walk(f) ) | f else f end;                                                                                                                                                                                               
jq: error: Possibly unterminated 'if' statement at <top-level>, line 2:
    def walk(f): . as $in | if type == "object" then reduce keys_unsorted[] as $key ({}; . + { ($key):  ($in[$key] | walk(f)) }) | f else if type == "array" then map( walk(f) ) | f else f end;                            
jq: 2 compile errors
Error: in prepare, near ",": syntax error
  44:05+00:00', 'Unknown', 'IPADDRESS', '', -1, , , , '');
                                      error here ---^

NB. IPADDRESS was my public ipv4.

I've manually installed the official speedtest cli of https://speedtest.net/.
But after the cronjob start, it keep installing librespeed.

root@pi-hole:~# speedtest
Retrieving server list from https://librespeed.org/backend-servers/servers.php
Selecting the fastest server based on ping
Selected server: 
Sponsored by: 
You're testing from: {"processedString":"IPADDRESS - Unknown ISP","rawIspInfo":""}
Ping: 17.18 ms	Jitter: 0.95 ms
Download rate:	847.80 Mbps
Upload rate:	642.53 Mbps

Screenshot

image

NB. librespeed is selected always after the cronjob.

Steps to Reproduce

  1. Try running a manual speedtest command.
  2. Set up a cronjob to execute the speedtest periodically.

Expected Behavior

Speedtest should run as expected and provide network performance metrics.

Actual Behavior

No speedtest results are recorded in the log file, and the command seems to fail silently.

Environment

  • OS:
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Additional Information

  • No significant errors or failures appear in the system logs.
  • All dependencies and configurations seem to be correctly installed.
@ipitio
Copy link
Collaborator

ipitio commented Sep 15, 2024

Hi, thanks for reporting this bug! I think I caused it a few months ago, when I last refactored some code. I'll look into the issue soon.

@arkdev1
Copy link
Author

arkdev1 commented Sep 16, 2024

Hi @ipitio, thank you for the response. I'm waiting for your update—let me know if you need any more data/logs/information regarding the issue.

Side note: the Librespeed library reports a download and upload speed of about 1Gbps, but the actual speed is 2.5Gbps download and 1Gbps upload. I can't figure out why there’s such a strong downgrade in the reported speed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants