"X11 DISPLAY variable was set, but this program performed an operation which requires it"
I am running into an issue where I am executing MQ tests on my local Windows machine without a problem, but when I deploy the tests to my Linux environment I am recieving, "X11 DISPLAY variable was set, but this program performed an operation which requires it".
Does anybody have any idea what is causing this and how to resolve it?
This error says, your LINUX environment has enabled with GUI mode by setting the the variable X11 DISPLAY in environment variable.
You will need to have a Linux Desktop in order to use Workstation on Linux since it needs a GUI interface.
Here are some other Linux desktops you can use:
Thanks & Regards
Thanks, Srikanth!For clarity, I'm not running the script on a Linux desktop. It is simply an MQ script that I am deploying to the registry/coordinator/simulator env that runs on Linux Servers. Are you stating that I should work with a Linux Server admin to have them disable GUI mode?
If it is your own script that you are trying to run then it shouldn't be necessary to call in a linux server admin. You can either:
- in the beginning of your script, add the command: unset DISPLAY
- or replace the specific <command> that generates the error with: env -u DISPLAY <command>
I tried to send the unset DISPLAY command via a jsr-223 step and command line utility step. Neither worked. My script simply executes an MQ call so not sure why anything is trying to be displayed when I run this headless. I'll put a ticket in with support to look into this further. Thanks!