]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/dashboard: kill existing xvfb process 2256/head
authorNizamudeen A <nia@redhat.com>
Fri, 14 Jun 2024 04:02:58 +0000 (09:32 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 14 Jun 2024 04:02:58 +0000 (09:32 +0530)
To fix the below error on starting cypress
```
[STARTED] Task without title.
[FAILED] Xvfb exited with a non zero exit code.
[FAILED]
[FAILED] There was a problem spawning Xvfb.
[FAILED]
[FAILED] This is likely a problem with your system, permissions, or installation of Xvfb.
[FAILED]
[FAILED] ----------
[FAILED]
[FAILED] Error: _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[FAILED] _XSERVTransMakeAllCOTSServerListeners: server already running
[FAILED] (EE)
[FAILED] Fatal server error:
[FAILED] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
[FAILED]
[FAILED] ----------
[FAILED]
[FAILED] Platform: linux-x64 (Ubuntu - 22.04)
[FAILED] Cypress Version: 12.17.4
Xvfb exited with a non zero exit code.

There was a problem spawning Xvfb.

This is likely a problem with your system, permissions, or installation of Xvfb.
```

Signed-off-by: Nizamudeen A <nia@redhat.com>
scripts/dashboard/install-e2e-test-deps.sh

index ba0673f92277e40246417c643c76652d8ea41deb..66ea9fa0eee10ec480133b83eb6a0bb1759692e9 100644 (file)
@@ -29,3 +29,6 @@ EOF
     sudo yum install -y python-requests pyOpenSSL python-jinja2 python-jwt scipy python-routes python3-routes
     sudo yum install -y xorg-x11-server-Xvfb.x86_64
 fi
+
+# kill any existing Xvfb process to avoid port conflict
+sudo killall Xvfb || true