Upcoming Maintenance Alert:

The UBNT Community will be upgraded at 5pm MDT on April 25th. During this time the community forums will be set to read-only status.

Learn more

×
Reply
Highlighted
New Member
Posts: 8
Registered: ‎05-19-2017

Can't connect to server on archlinux, windows and mac

At server side:

installed: aircontrol-v2.0.2245.161128.1046-unix64.bin

ubuntu 16.04.2 x64 updated

openjdk version "1.8.0_131"

running on port: 9081

port allowed to connect

 

At client side:

installed: 2.0.Beta18.1416.151204.1451-1

archlinux x64

openjdk version "1.8.0_131"

 

 

When I try to connect I receive "Can't connect to server" error. 

 

I used iptables to log every connection in 9081 port and I saw no problem with TCP protocol.

 

At client side I can see the problem:

2017.05.19-17:38:52 [LIB] DEBUG: Connecting to xxxx:9081 ...
2017.05.19-17:38:52 [LIB] DEBUG: Connected to xxxx:9081 OK
2017.05.19-17:38:52 [LIB] DEBUG: RPC-Client WRITER started
2017.05.19-17:38:52 [LIB] DEBUG: closing the remote-party's socket
2017.05.19-17:38:52 [CLNT] ERROR: error while logging in java.lang.RuntimeException: RPC-PROTOCOL-ERROR: unsupported protocol version 72
	at II.b(SourceFile:637)
	at II.a(SourceFile:247)
	at IE.b(SourceFile:1389)
	at qP.run(SourceFile:1568)
	at java.lang.Thread.run(Thread.java:748)
2017.05.19-17:38:52 [LIB] DEBUG: Exiting RPC party RPC-Client due to socket error
2017.05.19-17:38:52 [LIB] DEBUG: Exiting RPC-Client WRITER

I googled that error

RPC-PROTOCOL-ERROR: unsupported protocol version 72

but until now no answers.

 

I tested windows and Mac version too and we receive same error.

Senior Member
Posts: 2,525
Registered: ‎03-02-2015
Kudos: 347
Solutions: 104

Re: Can't connect to server on archlinux, windows and mac

basically: aircontrol2 server and client have to match
( v2.0.2245 != 2.0.Beta18.141 )

Upgrade AC2 server to AC2.0.1 and use full installer also for your client.
===================================================
We all work for KUDOs here.
Thx
New Member
Posts: 8
Registered: ‎05-19-2017

Re: Can't connect to server on archlinux, windows and mac

./aircontrol-v2.0.2245.161128.1046-unix64.bin binary need root access to install. That is ok, but when I try to install using root user:

 

[root@apterix Downloads]# ./aircontrol-v2.0.2245.161128.1046-unix64.bin 
Starting Installer ...
No protocol specified
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
	at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.awt.Toolkit$2.run(Toolkit.java:860)
	at java.awt.Toolkit$2.run(Toolkit.java:855)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
	at sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2020)
	at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1158)
	at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:431)
	at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:148)
	at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1577)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:539)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:579)
	at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1349)
	at javax.swing.UIManager.initialize(UIManager.java:1459)
	at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
	at javax.swing.UIManager.getUI(UIManager.java:1006)
	at javax.swing.JPanel.updateUI(JPanel.java:126)
	at javax.swing.JPanel.<init>(JPanel.java:86)
	at javax.swing.JPanel.<init>(JPanel.java:109)
	at javax.swing.JPanel.<init>(JPanel.java:117)
	at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:49)
	at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
	at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
	at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
	at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
	at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
	at com.install4j.runtime.installer.Installer.main(Installer.java:46)
	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 com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
	at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
An error occurred:
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
Error log: /tmp/install4jError5823616580971823969.log
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
	at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.awt.Toolkit$2.run(Toolkit.java:860)
	at java.awt.Toolkit$2.run(Toolkit.java:855)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
	at sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2020)
	at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1158)
	at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:431)
	at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:148)
	at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1577)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:539)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:579)
	at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1349)
	at javax.swing.UIManager.initialize(UIManager.java:1459)
	at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
	at javax.swing.UIManager.getUI(UIManager.java:1006)
	at javax.swing.JPanel.updateUI(JPanel.java:126)
	at javax.swing.JPanel.<init>(JPanel.java:86)
	at javax.swing.JPanel.<init>(JPanel.java:109)
	at javax.swing.JPanel.<init>(JPanel.java:117)
	at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:49)
	at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
	at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
	at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
	at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
	at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
	at com.install4j.runtime.installer.Installer.main(Installer.java:46)
	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 com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
	at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

Why that binary try to use x11 libraries if it will only extract a lot of binaries to /opt.

New Member
Posts: 8
Registered: ‎05-19-2017

Re: Can't connect to server on archlinux, windows and mac

Using bash verbose, I saw the problem in this line:

 

+ return_code=0
+ /usr/lib/jvm/default-runtime/bin/java -Dinstall4j.jvmDir=/usr/lib/jvm/default-runtime -Dexe4j.moduleName=/home/apterix/Downloads/aircontrol-v2.0.2245.161128.1046-unix64.bin -Dexe4j.totalDataLength=49692783 -Dinstall4j.cwd=/home/apterix/Downloads -Dinstall4j.keepLog=true '-Dinstall4j.alternativeLogfile=${installer:sys.userHome}/.AirControl2/installation.log' -Dsun.java2d.noddraw=true -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4j.vpt=true -classpath i4jruntime.jar com.install4j.runtime.launcher.UnixLauncher launch 0 '' '' com.install4j.runtime.installer.Installer
No protocol specified
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment

I will try extract manually the content and execute installer with -Djava.awt.headless=true parameter.

 

Please ubnt to no use setup files with binary code. We can not edit the script. If use convert to ASCII using uuencode you can do the same thing and we can edit setup file...

Senior Member
Posts: 2,525
Registered: ‎03-02-2015
Kudos: 347
Solutions: 104

Re: Can't connect to server on archlinux, windows and mac

Installer tries to open ssh X11 session for graphical GUI like mac or windows.
Which ssh client you're using?
===================================================
We all work for KUDOs here.
Thx
New Member
Posts: 8
Registered: ‎05-19-2017

Re: Can't connect to server on archlinux, windows and mac

In server I installed using OpenSSH and bash with no graphical context. In my laptop i have X11, but I am trying to install using terminal. I do not know why it tries do launch GUI interface here and not in the server.

Senior Member
Posts: 2,525
Registered: ‎03-02-2015
Kudos: 347
Solutions: 104

Re: Can't connect to server on archlinux, windows and mac

what would be the use of GUI on server? it's just a service running, but installer GUI on ssh client is for you as help.
I would suggest either temporarily to disable X11 on ssh client/terminal or setup it right.
disabled ssh session (works for SSH1, SSH2, oepnSSH):
'ssh -x AC2_server_IP'

I've used both of them and each does his job.
You're just accepting EULA and several proceed 'Yes/No' questions.
===================================================
We all work for KUDOs here.
Thx
Senior Member
Posts: 2,525
Registered: ‎03-02-2015
Kudos: 347
Solutions: 104

Re: Can't connect to server on archlinux, windows and mac

btw: Update to 2.0.1... for charts with gaps/spikes issue etc.
===================================================
We all work for KUDOs here.
Thx
Senior Member
Posts: 2,525
Registered: ‎03-02-2015
Kudos: 347
Solutions: 104

Re: Can't connect to server on archlinux, windows and mac

https://community.ubnt.com/t5/airControl-v2/airControl-2-0-1-released/m-p/1817215
===================================================
We all work for KUDOs here.
Thx
New Member
Posts: 8
Registered: ‎05-19-2017

Re: Can't connect to server on archlinux, windows and mac

Folks, I do not need GUI at server side. I can install in server side normally.

 

The problem is to install in client side. I do not need GUI interface to intall airserver control, so why installer needs to load X11 lbiraries to do that? Before I get asked about client or server option ot install I get that X11 error. I only need install aircontrol client. The GUI to use client is another history...

 

Because I have no option (like --quiet or --nographics or something like that) I can not start installer in my local machine (archlinux x64).

 

 

New Member
Posts: 8
Registered: ‎05-19-2017

Re: Can't connect to server on archlinux, windows and mac

I will try with that option and version and I will return feedback.

Senior Member
Posts: 2,525
Registered: ‎03-02-2015
Kudos: 347
Solutions: 104

Re: Can't connect to server on archlinux, windows and mac

sorry... I assumed you were trying to upgrade server first.
===================================================
We all work for KUDOs here.
Thx
New Member
Posts: 8
Registered: ‎05-19-2017

Re: Can't connect to server on archlinux, windows and mac

With aircontrol-v2.0.1.2325.170130.0936-unix64.bin in server and client side worked.

 

In my archlinux I getting java error because it try to load X11 library (local installation, to install client). With Windows and Mac worked.

Senior Member
Posts: 2,525
Registered: ‎03-02-2015
Kudos: 347
Solutions: 104

Re: Can't connect to server on archlinux, windows and mac

I'm not experienced with archlinux... but how should the client later run, if not with X11?
===================================================
We all work for KUDOs here.
Thx
New Member
Posts: 8
Registered: ‎05-19-2017

Re: Can't connect to server on archlinux, windows and mac

To run that is ok, but we really need gui to install? But the question is not that.

 

The problem is the setup does not start, so I can not even choose server or client. When I execute the binary as a root I saw that error.

 

I think archlinux is not the problem. Maybe is relationated with my X11 library version.

Reply