cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to open TREXADMIN Tool

manojsomkuwar
Participant
0 Kudos

Hi SAP Community,

While trying to open TrexAdminTool I am facing below issue.

SIDadm@HOSTNAME:/usr/sap/SID/TRX00/exe/python_support> python TREXAdmin.py
Traceback (most recent call last):
File "TREXAdmin.py", line 2685, in <module>
main()
File "TREXAdmin.py", line 2678, in main
root = Tk.Tk()
File "/usr/sap/SID/TRX00/exe/Python/lib/python2.7/lib-tk/Tkinter.py", line 1814, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

SIDadm@HOSTNAME:/usr/sap/SID/TRX00/exe/python_support>exit

Linux Version : 3.10.0-957.10.1.el7.x86_64

TREX Version :

SIDadm@HOSTNAME:/usr/sap/SID/TRX00> TREX version
TREX version info:
version: 7.10.72.00
build number: 710.72.403812
changelist: 403812 (710_REL)
compile date: 2016-11-03 14:00:23
compile host: ldm015
compile type: opt

Kindly could you let me know what could be done to resolve the above mentioned issue.

Regards,

Manoj Somkuwar

Accepted Solutions (1)

Accepted Solutions (1)

manojsomkuwar
Participant
0 Kudos

I have resolved this issue by following below using MobaXterm Application.

1. Login to server using sidadm.

2. At this moment, there is no display variable set.

3. Run without quotes "xauth list".

4. Now run "xauth add <output of above command>"

5. echo $DISPLAY will show the DISPLAY Variable.

6. Run xclock to check if it's working. In my case, it did.

Regards,

Manoj Somkuwar

Answers (2)

Answers (2)

warren_angerstein3
Active Participant
0 Kudos

you set it at the command prompt for the user trying to start trex admin

manojsomkuwar
Participant
0 Kudos

Thanks Warren. Can you please let me know what should be the value should it be set to?

Regards,

Manoj Somkuwar

warren_angerstein3
Active Participant
0 Kudos

Have you set the DISPLAY environment variable for X server ?

manojsomkuwar
Participant
0 Kudos

Hi Warren,

Kindly could you let me know where and how can I set the DISPLAY Environment Variable. I have checked 'env' command and no DISPLAY parameter is not maintained for "working" and "non-working" Trex system. I am using SSH-based Putty and MobaXterm v11.0 applications to access TrexAdminTool. Also, I have connected firstly to serverA and SSH'ed to serverB to use the TrexAdminTool( i.e. connected remotely). So the above commands/outputs you see are running from remote serverB.

Please let me know if any further information is required from my side and I'll try my best to provide it to you.

Regards,

Manoj Somkuwar

warren_angerstein3
Active Participant
0 Kudos

There are too many variables for me to be able to give you a definitive answer. Google it, I found several sites that had examples of what it could be based on system and network setup and shell used.

warren_angerstein3
Active Participant
0 Kudos

and you have to turn on x11 forwarding on putty also before you connect for it to work correctly