speedtest-cli icon indicating copy to clipboard operation
speedtest-cli copied to clipboard

Self Hosted Error with private server

Open ParadigmITOps opened this issue 1 year ago • 4 comments

Hi All,

Just to get it out there if you get the following error message when attempting to test with your own self-hosted librespeedtest instance:

Selected server <YourServerInfo> is not responding at the moment, try again later

The fix is just to add the "backend/" to the variables with the php files, I did not figure this out on my own, it was posted [HERE] by @fmolinelli (https://github.com/librespeed/speedtest-cli/issues/27)

[
  {
    "id": 0,
    "name": "<Name>",
    "server": "http://URL or IP/",
    "dlURL": "backend/**garbage.php",
    "ulURL": "backend/empty.php",
    "pingURL": "backend/empty.php",
    "getIpURL": "backend/getIP.php"
  }
]

ParadigmITOps avatar Jan 31 '24 18:01 ParadigmITOps

Did you get this working?

tomsik-radek avatar Feb 16 '24 06:02 tomsik-radek

Yes after adding the backend the CLI started to work correctly

ParadigmITOps avatar Feb 20 '24 21:02 ParadigmITOps

why would you put ** before garbage.php ? i get better results without this

rafipiccolo avatar Jul 25 '24 11:07 rafipiccolo

Hi All,

Just to get it out there if you get the following error message when attempting to test with your own self-hosted librespeedtest instance:

Selected server is not responding at the moment, try again later

The fix is just to add the "backend/" to the variables with the php files, I did not figure this out on my own, it was posted [HERE] by @fmolinelli (#27)

[
  {
    "id": 0,
    "name": "<Name>",
    "server": "http://URL or IP/",
    "dlURL": "backend/**garbage.php",
    "ulURL": "backend/empty.php",
    "pingURL": "backend/empty.php",
    "getIpURL": "backend/getIP.php"
  }
]

Optimize it:

[
  {
    "id": 0,
    "name": "<Name>",
    "server": "http://URL or IP/backend/",
    "dlURL": "garbage.php",
    "ulURL": "empty.php",
    "pingURL": "empty.php",
    "getIpURL": "getIP.php"
  }
]

echo '[{"id": 1,"name": "a","server": "http://192.168.10.191:3888/backend/","dlURL": "garbage.php","ulURL": "empty.php","pingURL": "empty.php","getIpURL": "getIP.php"}]' | librespeed-cli --local-json - --server 1

AndrewGoal avatar Jul 29 '24 23:07 AndrewGoal