Monday 9 October 2017

"No more handles" seen trying to run X11 over SSH

A brief moment of "panic" this AM, whilst trying to tunnel X11 over SSH: -

ssh -X wasadmin@bpm86

wasadmin@bpm86's password: 
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Last login: Mon Oct  9 09:38:11 2017 from 192.168.153.1


/opt/ibm/InstallationManager/eclipse/IBMIM -record installJava8.rsp

00:00.29 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged
  Application error
  org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
    at org.eclipse.swt.SWT.error(SWT.java:4394)
    at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914)
    at org.eclipse.swt.widgets.Display.create(Display.java:900)
    at org.eclipse.swt.graphics.Device.<init>(Device.java:156)
    ...
IBMIM:
An error has occurred. See the log file
/opt/ibm/InstallationManager/eclipse/configuration/1507538359387.log.


Before getting too worried about ulimit and missing X11 RPMs, I tested using my good old friend xeyes : -

xeyes 

which immediately returned: -

Error: Can't open display: 

Looking back at the original SSH command: -

ssh -X wasadmin@bpm86

I realised where I was going wrong, and really should've visited this old blog post: -


which directed me to do this: -

ssh -Y wasadmin@bpm86

wasadmin@bpm86's password: 
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Mon Oct  9 09:39:05 2017 from 192.168.153.1


and now things just work

xeyes 


/opt/ibm/InstallationManager/eclipse/IBMIM -record installJava8.rsp


Noice :-)

No comments:

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...