LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2017, 11:19 AM   #1
melghaze
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
X-Server access is denied on host


The situation is: I have a RHEL 7.3 VM that I am able to access via both ssh and VM console. I am able to run all of the standard commands for verifying that X11 forwarding/xhost permissions are working (xclock, nautilus, firefox, etc.) i can also run the runInstaller for Oracle client, No problems in any of these situations.
However, attempting to run the installation of Oracle WebLogic 12.1.3
with : cissys as user and the ligne command: java -jar fmw_12.1.3.0.0_wls.jar.
try with oracle user = same error.
results in the following :
Code:
Launcher log file is /tmp/OraInstall2017-07-25_03-14-27PM/launcher2017-07-25_03-14-27PM.log.
Extracting files.........
Java HotSpot(TM) Client VM warning: You have loaded library /tmp/orcl5779090421142529968.tmp/Disk1/install/linux/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Starting Oracle Universal Installer
Checking if CPU speed is above 300 MHz.   Actual 1696.120 MHz    Passed
Checking monitor: must be configured to display at least 256 colors.   Actual 16777216    Passed
Checking swap space: must be greater than 512 MB.   Actual 7815164 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 32    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 2956 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2017-07-25_03-14-27PM
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Log: /tmp/OraInstall2017-07-25_03-14-27PM/install2017-07-25_03-14-27PM.log
X-Server access is denied on host
[Fatal Error] DISPLAY variable set incorrectly: 172.16.40.30:0.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.
I've tried just about every troubleshooting step that I can think of and every troubleshooting step that Google has provided me.
If anyone has any idea of an obvious or less-than-obvious culprit, I would absolutely love to hear it.

Last edited by melghaze; 07-26-2017 at 02:30 AM.
 
Old 07-25-2017, 08:31 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Hi melghaze,

Welcome to LQ!

edit ...

Quote:
The error message received references the lack of a defined DISPLAY variable, the OUI (Oracle Universal Installer) does not know where to send output to and thus fails.

To resolve this issue simple set your DISPLAY variable to the local host or client machine you are currently using. If using a remote machine you will need a tool to accept the output from your server: VNC, Hummingbird, KEA!, etc will all work. NOTE: VNC is free for client use. Example: If my client machines IP is 192.168.0.110

Linux $ export DISPLAY=192.168.0.110:0.0

6. Now re-execute the runInstaller variable again and you will be presented with the OUI GUI.
Stolen from: http://www.cattsolutions.com/oracle-...play-variable/

Last edited by AwesomeMachine; 07-26-2017 at 10:37 PM.
 
Old 07-26-2017, 08:32 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,910

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Delete the DISPLAY environment setting from your profile.

ssh will forward the protocol, but to do that requires sshd to create the forwarded socket - and that means that sshd must also create the DISPLAY environment variable to use, AND set the security tokens for that display.

Setting the DISPLAY environment variable is ALWAYS the wrong thing to do. A local GUI login WILL create it for you, and it will NOT be 192.168... anything. Local X displays are using DOMAIN sockets for security. Thus setting the DISPLAY to anything will wipe out your access.

The error is that you are setting your DISPLAY environment variable to "172.16.40.30:0.0", and that is INVALID.
 
Old 07-26-2017, 10:41 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
sshd on the server must be configured to permit X11 forwarding. Oracle Universal Installer is a java-based application. I'm not sure how well it cooperates with sshd.

Last edited by AwesomeMachine; 07-26-2017 at 10:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Web server access denied fhleung Linux - Networking 4 08-04-2016 09:30 PM
[SOLVED] Access denied by the host (nfs.mount from the Slackware64-current installer) Didier Spaier Slackware 15 02-29-2016 04:46 AM
Wheezy/Postfix/Dovecot/SASL 554 5.7.1 Client host rejected: Access Denied RedSquirl Linux - Server 3 07-27-2014 12:14 PM
[SOLVED] Still getting Access Denied from XP to Samba server jbruyet Linux - Server 2 06-03-2011 01:43 PM
Postfix+Dovecot+MySQL+SASL/TLS : Client host rejected: Access denied CopalFreak Slackware 2 05-05-2011 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration