Skip to content

The LHCI role doesn't complete. #2049

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

Open
pm98zz-c opened this issue Nov 1, 2024 · 2 comments
Open

The LHCI role doesn't complete. #2049

pm98zz-c opened this issue Nov 1, 2024 · 2 comments
Labels
2.x bug Something isn't working
Milestone

Comments

@pm98zz-c
Copy link

pm98zz-c commented Nov 1, 2024

Trying to use the lhci role in ce-dev just stay stuck during provisioning. That seems to be due to

Xvfb -ac :99 -screen 0 1280x1024x16 &

There's another approach in the selenium role that could be reused here.

@gregharvey gregharvey added bug Something isn't working 2.x labels Jan 23, 2025
@gregharvey gregharvey added this to the 2025 Q2 milestone Mar 31, 2025
@gregharvey
Copy link
Member

Here's some more background from an internal ticket:


I think we're maybe starting it up wrong. Here's the task:

- name: Configure Xvfb to start on boot.
  ansible.builtin.shell: |
    Xvfb -ac :99 -screen 0 1280x1024x16 &

Maybe a dev can have a play with running that actual command on a broken container to see what it does? Is there a display already running, do we need to do something else to ensure LHCI starts when the container/server does other than this? I'm already not convinced the task does what it thinks it does. Looks to me like that will start Xvfb once, but not on reboot.

Some info here, although it's quite old. I'm almost certain there's a better/smarter way to start Xvfb though.


Basically, what Pascal said! 😄

And Chris added this:


On ce-dev provision, the process seemed to hang. I hit CTRL-C, then ce-dev shell <container-id> and ran:

ce-dev@REDACTED-web:~$ Xvfb -ac :99 -screen 0 1280x1024x16 &
[1] 21101
ce-dev@REDACTED-web:~$ (EE) 
Fatal server error:
(EE) Server is already active for display 99
        If this server is no longer running, remove /tmp/.X99-lock
        and start again.
(EE)

At this point, it's waiting for stdin.

Maybe I can experiment with removing /tmp/.X99-lock before this.

@DionisioFG
Copy link
Contributor

Selenium role has been re-written, and lighthouse can be executed in headless mode

#1079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants