By: Jeremy Forsyth user 29 Jul 2020 at 2:28 a.m. CDT

7 Responses
Jeremy Forsyth gravatar
Hello Support I have tried installing the dev tools as per the instructions on this page; https://gluu.org/docs/gluu-server/4.1/developer-guide/script-debugging/ However, whenever I perform step 6, "Run /opt/gluu/bin/eclipse.sh" I receive the following error ``` root@adris-gluu-dv:/opt/gluu/bin# MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized. MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: Eclipse: An error has occurred. See the log file /opt/eclipse-jee/configuration/1596006424880.log. ``` Contents of log /opt/eclipse-jee/configuration/1596006424880.log ``` !SESSION 2020-07-29 07:07:04.662 ----------------------------------------------- eclipse.buildId=4.14.0.I20191210-0610 java.version=1.8.0_222 java.vendor=Amazon.com Inc. BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product !ENTRY org.eclipse.osgi 4 0 2020-07-29 07:07:06.953 !MESSAGE Application error !STACK 1 org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] at org.eclipse.swt.SWT.error(SWT.java:4746) at org.eclipse.swt.widgets.Display.createDisplay(Display.java:1117) at org.eclipse.swt.widgets.Display.create(Display.java:1057) at org.eclipse.swt.graphics.Device.<init>(Device.java:175) at org.eclipse.swt.widgets.Display.<init>(Display.java:623) at org.eclipse.swt.widgets.Display.<init>(Display.java:614) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:778) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:166) at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:180) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) ``` On the client side I am using MobaXterm and I have enabled X11-Forwarding. I have tried the trouble shooting steps. When I run the xhost command from outside the CE I get the following ``` gluu-admin@sissadrisgluuvmaedv:~$ xhost access control enabled, only authorized clients can connect INET:169.254.91.17 LOCAL: ``` If I log into the CE and run xhost I get command not found. Thank you

By Mohit Mali staff 29 Jul 2020 at 4:23 a.m. CDT

Mohit Mali gravatar
hi Jeremy Forsyth, thanks for reaching out gluu support , have you run the following command after logout from gluu container? ```/opt/gluu-server/opt/gluu/bin/prepare-dev-tools.py``` Thanks and Regards Mohit Mali

By Jeremy Forsyth user 29 Jul 2020 at 5:15 a.m. CDT

Jeremy Forsyth gravatar
Hi Mohit, I have run the script, however I just re-ran it then from outside the container. Below is the output ``` Last login: Wed Jul 29 07:12:14 2020 from 120.88.153.54 gluu-admin@sissadrisgluuvmaedv:~$ cd /opt/gluu-server/opt/gluu/bin gluu-admin@sissadrisgluuvmaedv:/opt/gluu-server/opt/gluu/bin$ sudo ./prepare-dev-tools.py non-network local connections being added to access control list gluu-admin@sissadrisgluuvmaedv:/opt/gluu-server/opt/gluu/bin$ ^C gluu-admin@sissadrisgluuvmaedv:/opt/gluu-server/opt/gluu/bin$ sudo /sbin/gluu-serverd login Welcome to the Gluu Server! Last login: Wed Jul 29 07:15:07 2020 from 127.0.0.1 root@adris-gluu-dv:~# cd /opt/gluu/bin/ root@adris-gluu-dv:/opt/gluu/bin# ll total 40 drwxr-xr-x 2 root root 4096 Jul 29 05:12 ./ drwxr-xr-x 7 root root 4096 Jul 20 20:57 ../ -rw-r--r-- 1 root root 47 Jul 29 10:11 1 -rwxr-xr-x 1 root root 91 Jul 29 10:11 eclipse.sh* -rwxr-xr-x 1 root root 945 Jul 20 20:57 encode.py* -rwxr-xr-x 1 root root 3091 Feb 13 12:21 install.py* -rwxr-xr-x 1 root root 2757 Jul 20 20:57 logmanager.sh* -rwx------ 1 root root 1532 Jul 29 05:11 prepare-dev-tools.py* -rwxr-xr-x 1 root root 3321 Jul 20 21:03 show_version.py* -rwxr-xr-x 1 root root 2479 Jul 20 20:57 testBind.py* root@adris-gluu-dv:/opt/gluu/bin# ./eclipse.sh root@adris-gluu-dv:/opt/gluu/bin# MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized. MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: Eclipse: An error has occurred. See the log file /opt/eclipse-jee/configuration/1596017557159.log. ^C root@adris-gluu-dv:/opt/gluu/bin# ``` Regards, Jeremy

By Michael Schwartz Account Admin 29 Jul 2020 at 10:59 a.m. CDT

Michael Schwartz gravatar
Do you have XWindows running on that server? What happens when you type : `xclock &` ?

By Jeremy Forsyth user 29 Jul 2020 at 8:46 p.m. CDT

Jeremy Forsyth gravatar
I ran the xclock command and the response was to install the X11-Apps which I did. After that, I was able to run xclock, which opened the clock GUI widget. However, when I log into the gluu-server and try to run eclipse.sh I still receive the same error ``` gluu-admin@sissadrisgluuvmaedv:~$ xclock & [1] 108521 gluu-admin@sissadrisgluuvmaedv:~$ Warning: Missing charsets in String to FontSet conversion ^C gluu-admin@sissadrisgluuvmaedv:~$ sudo /sbin/gluu-serverd login Welcome to the Gluu Server! Last login: Thu Jul 30 01:37:18 2020 from 127.0.0.1 root@adris-gluu-dv:~# cd /opt/gluu/bin/ root@adris-gluu-dv:/opt/gluu/bin# ./eclipse.sh root@adris-gluu-dv:/opt/gluu/bin# MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized. MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused MoTTY X11 proxy: Unsupported authorisation protocol Unable to init server: Could not connect: Connection refused Eclipse: Cannot open display: Eclipse: An error has occurred. See the log file /opt/eclipse-jee/configuration/1596073139527.log. ^C root@adris-gluu-dv:/opt/gluu/bin# ```

By Mohit Mali staff 01 Aug 2020 at 2:26 a.m. CDT

Mohit Mali gravatar
Hi Jeremy , From logs its look like gtk issue on your machine. I think this is a problem with gtk. Check what version is installed. ```dpkg -l libgtk[0-9]* | grep ^i``` If it's not installed or is the incorrect version then do a ```sudo apt-get install gtk or do an sudo apt-get update.``` Thanks and Regards Mohit Mali

By Mohib Zico staff 03 Aug 2020 at 2:44 p.m. CDT

Mohib Zico gravatar
Yes, it's more like x11 forwarding issue, not Gluu Server's software. Quick google gave me [this](https://superuser.com/questions/1111900/how-to-fix-mobaxterm-x11-proxy-unsupported-authorisation-protocol) page.

By Jeremy Forsyth user 04 Aug 2020 at 6:04 a.m. CDT

Jeremy Forsyth gravatar
Hi all, Apologies for the late reply, thank you for the suggestions regarding X11. I'll will look into X11 forwarding and post back.