on ‎2020 Feb 05 8:39 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you set it at the command prompt for the user trying to start trex admin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you set the DISPLAY environment variable for X server ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.