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

Agents are not connection to the server . Test Locations are showing blank #2

Open
kiransterling opened this issue May 27, 2019 · 5 comments

Comments

@kiransterling
Copy link

Hi ,

I have installed server in google cloud platform in ubuntu 16.04 LTS . It is working fine . I followed the steps to install the agents mentioned in url (https://github.com/WPO-Foundation/webpagetest-docs/blob/master/user/Private%20Instances/gce_agents.md) but after creating the instance group and the VM it is not able to connect to the server . In sever UI the locations are still blank . I waited for 30 mins so that all the browsers get installed in the agents but nothing happened . Need help to fix the issue .

Regards
Kashyap

@srayan
Copy link

srayan commented Dec 19, 2019

Hi Kashyap, I seem to be having the exact same issues while trying to set up the server and agent on Ubuntu 16.0.4 and 18.0.4 (on Azure). Were you able to find a fix?

@ShantiSumanth
Copy link

Hi both, Have you managed to fix the Agent connection to Server(on cloud, Azure)? if so, could you please assist on how you sorted the issue.

Thanks
Shanti

@Kanwrk
Copy link

Kanwrk commented Oct 3, 2022

Hi @ShantiSumanth , Today I was trying to install the agents in Google Cloud and faced the same issue (Test locations were showing blank). Looks like not setting the wpt_location part of the metadata, resulting in the issue. As per the instructions given, it supposed to set a default value for that, something is not right there... think so. So, I basically set the wpt_location (it should match the location value already given in the wpt_server locations.ini... Following is the metadata I used when setting up the agent

wpt_server=<WPT_SERVER_NAME> wpt_url=http://<WPT_SERVER_NAME>/work/ wpt_key=<LOCATION_KEY> wpt_location=gce-us-central1-linux

One more way to fix is, tail the web server logs in the WPT server to see the WPT agent's ping, it basically has the location its pinging from, you can configure that in the locations.ini

    • [03/Oct/2022:22:45:01 +0000] "GET /work/getwork.php?f=json&shards=1&reboot=1&servers=1&testinfo=1&location=gce-us-west4-linux&pc=&key=&ec2=&ec2zone=us-west4-b&version=220930.173035&dns=127.0.0.&freedisk=1.862&upminutes=3 HTTP/1.1" 200 31 "-" "wptagent"

@ShantiSumanth
Copy link

Thank you @Kanwrk ,
Will try to change config as mentioned.

Thanks again

Shanti

@ShantiSumanth
Copy link

Hi @Kanwrk,
Connection isn't successful after executing metadata on agent. I just executed the said command as i have already setup agent via debian.sh.

Please take a look at the location.ini attached.
Screen Shot 2022-10-11 at 09 50 32

As agent isn't connected i'm failing to see location info in server logs. Any advise on this please?

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

4 participants