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

xprop: unable to open display '' #458

Open
PetrHar opened this issue Dec 10, 2021 · 3 comments
Open

xprop: unable to open display '' #458

PetrHar opened this issue Dec 10, 2021 · 3 comments

Comments

@PetrHar
Copy link

PetrHar commented Dec 10, 2021

Hello,
i update server from debian 10 to 11.
I get an error after updating the server and agent:
/usr/bin/python3 /home/agent/wptagent-master/wptagent.py --server "https://wpt.wpserver.cz/work/" --location "Test" -vvvv --dockerized --xvbf --sharper none --username wpt --password fHjbn84Q 22:02:23.460 - Detected Browsers: 22:02:23.460 - Chrome: /opt/google/chrome/chrome 22:02:23.460 - Chrome Beta: /opt/google/chrome-beta/chrome 22:02:23.460 - Chrome Dev: /opt/google/chrome-unstable/chrome 22:02:23.460 - Chrome Canary: /opt/google/chrome-unstable/chrome 22:02:23.460 - Canary: /opt/google/chrome-unstable/chrome 22:02:23.460 - Firefox: /usr/lib/firefox/firefox 22:02:23.460 - Firefox ESR: /usr/lib/firefox-esr/firefox-esr 22:02:23.594 - Interfaces: 22:02:23.594 - {'lo': [snicaddr(family=<AddressFamily.AF_INET: 2>, address='127.0.0.1', netmask='255.0.0.0', broadcast=None, ptp=None), snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='00:00:00:00:00:00', netmask=None, broadcast=None, ptp=None)], 'venet0': [snicaddr(family=<AddressFamily.AF_INET: 2>, address='185.8.164.36', netmask='255.255.255.255', broadcast='185.8.164.36', ptp=None), snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='d2:2a:ca:28:2f:77', netmask=None, broadcast='ff:ff:ff:ff:ff:ff', ptp=None)], 'tunl0': [snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='00:00:00:00:00:00', netmask=None, broadcast=None, ptp=None)], 'gre0': [snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='00:00:00:00:00:00', netmask=None, broadcast=None, ptp=None)], 'gretap0': [snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='00:00:00:00:00:00', netmask=None, broadcast='ff:ff:ff:ff:ff:ff', ptp=None)], 'erspan0': [snicaddr(family=<AddressFamily.AF_PACKET: 17>, address='00:00:00:00:00:00', netmask=None, broadcast='ff:ff:ff:ff:ff:ff', ptp=None)]} xprop: unable to open display '' Traceback (most recent call last): File "/home/agent/wptagent-master/wptagent.py", line 1185, in <module> main() File "/home/agent/wptagent-master/wptagent.py", line 1175, in main agent = WPTAgent(options, browsers) File "/home/agent/wptagent-master/wptagent.py", line 46, in __init__ self.wpt = WebPageTest(options, os.path.join(self.root_path, "work")) File "/home/agent/wptagent-master/internal/webpagetest.py", line 157, in __init__ out = subprocess.check_output(['xprop','-notype','-len','16','-root','_NET_DESKTOP_GEOMETRY'], universal_newlines=True) File "/usr/lib/python3.9/subprocess.py", line 424, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['xprop', '-notype', '-len', '16', '-root', '_NET_DESKTOP_GEOMETRY']' returned non-zero exit status 1.

@vlastimilott
Copy link

It seems like xprop is called although the script is running in headless mode. The reason for this might be getting current screen resolution which crashes within framebuffer. Is there any other way to get geometry? I'm not able to post a PR srry

@sharksforarms
Copy link

sharksforarms commented Jan 27, 2022

Also getting this after following GCE guide: https://docs.webpagetest.org/private-instances/gce_agents/#parameters

Ubuntu 20.04

@sharksforarms
Copy link

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

3 participants