Oracle FMW GoldenGate Veridata setup OUI troubles with X Server

I have spent several hours finding the reason why installation of Oracle GoldenGate Veridata 12.2.1 on RedHad Enterpise Linux 7.3 starts correctly on one machine and doesn’t start on another – the same version and installed by the same administrator.

Starting installation just complains on X Server setup:

java -jar fmw_12.2.1.2.0_ogg.jar
...
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2017-03-30_10-47-55AM
Log: /tmp/OraInstall2017-03-30_10-47-55AM/install2017-03-30_10-47-55AM.log
X-Server access is denied on host
[Fatal Error] DISPLAY variable set incorrectly: localhost:11.0
[Resolution] Verify that your DISPLAY environment variable is set correctly, 
and that there is an X11 server on the system. If you are 
running the Oracle Installer as a different user or on a different host, 
you may need to use the xhost command to ensure that host/user 
has permission to write to your display

The most interesting thing is that starting already installed 11.2.0.4 GUI utils, like NETCA/DBCA/DBUA, works correctly… and they use the same X Server setup, actually through X Server Forwarding… because of this I have DISPLAY=localhost:11.0

Searching on support.oracle.com revealed several notes, like next two

other already installed Oracle environment influences on new install, so unset and/or remove references to existing Oracle environments by inspecting next SHELL variables: ORACLE_BASE, ORACLE_HOME, PATH, SHLIB, LIBPATH, CLASSPATH

I had completely removed reference to existing Oracle environments -> didn’t help -> not my case!

“uncertified version of JDK used”,

but I use the same JDK version as on another host -> didn’t help -> not my case!

Actually, I found a quick workaround for  mentioned problem by cloning ORACLE_HOME from host where setup was successful 😉 so the job was done.

but … at the next day I came back to spend extra time on the issue:

  • confirmed that /etc/ssh/ssh_config file is the same
  • confirmed that the list of installed RPMs IS NOT THE SAME on both hosts – first one has more RPMs

Comparing installed RPMs lists one by one revealed that host one(without an issue) has more RPMs related to X11, so installing additional RPMs one by one on host two I have found the root cause of the issue – libXrender, which wasn’t explicitly specified as a requirement in Installation Guide – that’s why I’m writing this long story 😉

Solution:

  • yum install libXrender

or yum install xorg-x11-apps if you additionally prefer to have xclock application for testing correct X Server setup

Conclusion:

  • dispite the displayed error message (“DISPLAY variable set incorrectly: localhost:11.0” is this case) the reason may not directly relate to correct X Server setup

Right Troubleshooting Steps:

here I’m providing the short(just several minutes) and “right“(no guess approach) way of troubleshooting problems like this one – definitely will go this way next time from the very beginning of troubleshooting process:

yum install strace

strace -s 50 -fo GGVD.strace.out java -jar fmw_12.2.1.2.0_ogg.jar 
  ...
  Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2017-03-30_01-03-47PM
  Log: /tmp/OraInstall2017-03-30_01-03-47PM/install2017-03-30_01-03-47PM.log
  X-Server access is denied on host
  [Fatal Error] DISPLAY variable set incorrectly: localhost:11.0
  [Resolution] Verify that your DISPLAY environment variable is set correctly, 
  and that there is an X11 server on the system. If you are 
  running the Oracle Installer as a different user or on a different host, 
  you may need to use the xhost command to ensure that host/user 
  has permission to write to your display.

less -p "X-Server access is denied on host" GGVD.strace.out
  ...
  21358 open("/usr/lib64/libXrender.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  ...
  21358 write(1, "X-Server access is denied on host", 33) = 33

yum install libXrender

PS:

kam singh(kamaljeet.singh@hotmail.co.uk) in comments additionally suggests:

yum install libXtst

Advertisements

2 thoughts on “Oracle FMW GoldenGate Veridata setup OUI troubles with X Server

  1. used the same strace to debug
    in my case it was
    open(“/usr/lib64/libXtst.so.6”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

    Solution
    yum install libXtst

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s