All Apps and Add-ons

Display not working for splunkit-user with SplunkIt app

mfrost8
Builder

I'm trying to use SplunkIt. I get to the point in the install where I see both my user machine and my server machine in the grinder console. I hit Action -> Start Processes and it seems to whiz along, however I find that splunkit-user seems to bomb out with:

Java exception creating per-thread TestRunner object
        File "./search/user_medium.py", line 50, in __init__
Caused by: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
Error: no display specified

Essentially saying that it can't open my DISPLAY because it's not defined. Note that I'm not running this on a headless machine.

My splunkit-user/splunkit.properties file contains

DISPLAY=:1

When I run ant with

nohup ant grinder -lib thirdparty/ant -verbose &

it even reports:

[SplunkIt Search Test] Setting environment variable: DISPLAY=:1

Note that I've attempted this with both DISPLAY=:0 and DISPLAY=:1. I've attempted to validate that this works by running

xterm -display :0
OR
xterm -display :1

from the same window I ran "ant" from. With :0, I get an xterm window, with :1, I don't get one, but it doesn't error out either. I assume that it somehow runs that window in such a way that I can't see it. With either :0 or :1 though, I get the same splunkit-user error where it's telling me I haven't set DISPLAY.

I'm logged into this machine (an OpenSuSE 12.1 workstation) in a KDE session and Xvfb is running automatically so I couldn't start up another one.

I also tried with "xhost +" but that didn't help as I suspect it wouldn't since this doesn't seem to be a permissions issue, but rather than java just isn't seeing the DISPLAY being set for some reason.

Oh, and I've also made sure $DISPLAY is exported into my bash environment.

What am I doing wrong?

Thanks

Tags (1)
0 Karma
1 Solution

schoi
Splunk Employee
Splunk Employee

for future ref, switching from openjdk to the oracle version seems to have solved the DISPLAY issue above (reason unclear)

View solution in original post

0 Karma

schoi
Splunk Employee
Splunk Employee

for future ref, switching from openjdk to the oracle version seems to have solved the DISPLAY issue above (reason unclear)

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...