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

No servers currently available when using local json list #8

Closed
cubednet135 opened this issue May 11, 2020 · 1 comment
Closed

No servers currently available when using local json list #8

cubednet135 opened this issue May 11, 2020 · 1 comment

Comments

@cubednet135
Copy link

cubednet135 commented May 11, 2020

When I try to run a speedtest with my local json server list, I get a message that no server is currently available.
$ librespeed-cli --local-json speedtestservers.json Using local JSON server list: speedtestservers.json Selecting the fastest server based on ping No server is currently available, please try again later.
I have verified that all of these servers are online and I can run a speedtest with a browser.
JSON list:

[
  {
    "name": "Server1",
    "server": "https://(server1)/speedtest/",
    "dlURL": "garbage.php",
    "ulURL": "empty.php",
    "pingURL": "empty.php",
    "getIPURL": "getIP.php"
  },
  {
    "name": "Server2",
    "server": "https://(server2)/speedtest/",
    "dlURL": "garbage.php",
    "ulURL": "empty.php",
    "pingURL": "empty.php",
    "getIPURL": "getIP.php"
  },
  {
    "name": "Server3",
    "server": "http://(server3)/speedtest/",
    "dlURL": "garbage.php",
    "ulURL": "empty.php",
    "pingURL": "empty.php",
    "getIPURL": "getIP.php"
  }
]
@cubednet135
Copy link
Author

Solved by adding backend directory for dlURL, ulURL, pingURL, and getIPURL

[
  {
    "name": "Server1",
    "server": "https://(server1)/speedtest/",
    "dlURL": "backend/garbage.php",
    "ulURL": "backend/empty.php",
    "pingURL": "backend/empty.php",
    "getIPURL": "backend/getIP.php"
  },
  {
    "name": "Server2",
    "server": "https://(server2)/speedtest/",
    "dlURL": "backend/garbage.php",
    "ulURL": "backend/empty.php",
    "pingURL": "backend/empty.php",
    "getIPURL": "backend/getIP.php"
  },
  {
    "name": "Server3",
    "server": "http://(server3)/speedtest/",
    "dlURL": "backend/garbage.php",
    "ulURL": "backend/empty.php",
    "pingURL": "backend/empty.php",
    "getIPURL": "backend/getIP.php"
  }
]

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

1 participant