Array

Unsupported authorisation protocol

Avatar

By Bluscream 10 Dec 2016 09:19

Banned · 7 comments
blu@homeserver:/opt/spruml$ java -jar Sprummlbot.jar
[10.12.2016 10:11:28 | INFO][Config] Loading Config...
MobaXterm X11 proxy: Unsupported authorisation protocol
[10.12.2016 10:11:28 | ERROR] An error occurred in thread main More information in /opt/spruml/logs/error_10_12_2016__10_11_28.log
blu@homeserver:/opt/spruml$ cat /opt/spruml/logs/error_10_12_2016__10_11_28.log
Error Log from 10_12_2016__10_11_28.
Custom message: An error occurred in thread main
java.awt.AWTError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(java.desktop@9-internal/Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(java.desktop@9-internal/X11GraphicsEnvironment.java:53)
        at sun.awt.X11GraphicsEnvironment$1.run(java.desktop@9-internal/X11GraphicsEnvironment.java:102)
        at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(java.desktop@9-internal/X11GraphicsEnvironment.java:61)
        at java.lang.Class.forName0(java.base@9-internal/Native Method)
        at java.lang.Class.forName(java.base@9-internal/Class.java:294)
        at java.awt.GraphicsEnvironment.createGE(java.desktop@9-internal/GraphicsEnvironment.java:104)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(java.desktop@9-internal/GraphicsEnvironment.java:82)
        at net.scrumplex.sprummlbot.config.Configuration.load(Configuration.java:55)
        at net.scrumplex.sprummlbot.Startup.start(Startup.java:32)
        at net.scrumplex.sprummlbot.Main.main(Main.java:37)
Avatar

By Scrumplex 10 Dec 2016 09:57

Admin · 2,147,483,647 comments

I had this bug with MobaXTerm sometimes, too. A temporary fix is executing export DISPLAY=0 in your shell.


The Developer of the Sprummlbot and the Admin of this forum.

Avatar

By Bluscream 10 Dec 2016 11:00

Banned · 7 comments

That answer came way faster then i expected xD Thanks, will try that 🙂

Avatar

By Bluscream 10 Dec 2016 11:01

Banned · 7 comments
blu@homeserver:/opt/spruml$ export DISPLAY=0
blu@homeserver:/opt/spruml$ java -jar Sprummlbot.jar
[10.12.2016 12:00:52 | INFO][Config] Loading Config...
[10.12.2016 12:00:53 | ERROR] An error occurred in thread main More information in /opt/spruml/logs/error_10_12_2016__12_00_53.log
blu@homeserver:/opt/spruml$ cat /opt/spruml/logs/error_10_12_2016__12_00_53.log
Error Log from 10_12_2016__12_00_53.
Custom message: An error occurred in thread main
java.awt.AWTError: Can't connect to X11 window server using '0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(java.desktop@9-internal/Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(java.desktop@9-internal/X11GraphicsEnvironment.java:53)
        at sun.awt.X11GraphicsEnvironment$1.run(java.desktop@9-internal/X11GraphicsEnvironment.java:102)
        at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(java.desktop@9-internal/X11GraphicsEnvironment.java:61)
        at java.lang.Class.forName0(java.base@9-internal/Native Method)
        at java.lang.Class.forName(java.base@9-internal/Class.java:294)
        at java.awt.GraphicsEnvironment.createGE(java.desktop@9-internal/GraphicsEnvironment.java:104)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(java.desktop@9-internal/GraphicsEnvironment.java:82)
        at net.scrumplex.sprummlbot.config.Configuration.load(Configuration.java:55)
        at net.scrumplex.sprummlbot.Startup.start(Startup.java:32)
        at net.scrumplex.sprummlbot.Main.main(Main.java:37)


Please contact support!

In case it matters:
5AlQQxk.png
Yutk9sL.png

Last edited by Bluscream (10 Dec 2016 11:05)

Avatar

By Bluscream 10 Dec 2016 11:18

Banned · 7 comments

I disabled X11 support for the session and came this far:

blu@homeserver:/opt/spruml$ java -jar Sprummlbot.jar
[10.12.2016 12:16:45 | INFO][Config] Loading Config...
[10.12.2016 12:16:52 | INFO][Config] messages.ini has been updated.
[10.12.2016 12:16:52 | INFO][Config] permissions.ini has been updated.
[10.12.2016 12:16:52 | INFO][Config] Config loaded!
[10.12.2016 12:16:52 | INFO][Updater] Checking for updates...
[10.12.2016 12:16:52 | INFO][VPN Checker] Loading saved ip addresses...
[10.12.2016 12:16:52 | INFO][Internal] Public IP is 79.225.48.191
[10.12.2016 12:16:52 | INFO][Internal] Hello! Sprummlbot v0.5.1 is starting...
[10.12.2016 12:16:52 | INFO][Internal] This Bot is powered by https://github.com/TheHolyWaffle/TeamSpeak-3-Java-API
[10.12.2016 12:16:53 | INFO][Internal] Debug Mode: 0
[10.12.2016 12:16:53 | INFO][Dynamic Banner] Initializing Dynamic Banner...
[10.12.2016 12:16:53 | INFO][Core] Connected to TeamSpeak 3 Server!
[10.12.2016 12:16:53 | INFO][Core] Initializing Sprummlbot...
[10.12.2016 12:16:54 | INFO][Core] Selecting virtual server with ID 35...
[10.12.2016 12:16:56 | INFO][VPN Checker] Enabling VPN Checker...
[10.12.2016 12:16:57 | INFO][Modules] Starting modules...
[10.12.2016 12:16:57 | INFO][Web Server] Initializing webinterface...
[10.12.2016 12:16:57 | INFO][Web Server] Starting webinterface...
[10.12.2016 12:16:57 | INFO][Web Server] Webinterface started! Try "!login" with Admin permissions or "login" in the console
[10.12.2016 12:16:57 | INFO][Core] Loading defaults...
[10.12.2016 12:16:57 | INFO][Plugins] Loading plugins...
[10.12.2016 12:16:57 | INFO][Modules] Initializing modules...
[10.12.2016 12:16:57 | INFO][Modules] Starting modules...
[10.12.2016 12:16:57 | INFO][Core] Done! It took 11.77 seconds.
[10.12.2016 12:16:57 | INFO] Available Console Commands: login, reloadplugins
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb6b59e48, pid=2514, tid=2573
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195526.buildd.src)
# Java VM: OpenJDK Client VM (9-internal+0-2016-04-14-195526.buildd.src, mixed mode, serial gc, linux-x86)
# Problematic frame:
# C  [libjava.so+0x18e48]  JNU_GetEnv+0x18
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /opt/spruml/hs_err_pid2514.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted

/opt/spruml/hs_err_pid2514.log: https://pastebin.com/SdxiacAR

Last edited by Bluscream (10 Dec 2016 11:19)

Avatar

By Scrumplex 10 Dec 2016 11:31

Admin · 2,147,483,647 comments

Looks like you are trying to start the bot with java 9. Try installing java 8 or 7 and execute it with it


The Developer of the Sprummlbot and the Admin of this forum.

Avatar

By Bluscream 10 Dec 2016 11:33

Banned · 7 comments

Can i specifiy which java version to use?

blu@homeserver:/opt/spruml$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195526.buildd.src)
OpenJDK Client VM (build 9-internal+0-2016-04-14-195526.buildd.src, mixed mode)
blu@homeserver:/opt/spruml$ apt-cache search openjdk
openjdk-8-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-8-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-8-doc - OpenJDK Development Kit (JDK) documentation
openjdk-8-jdk - OpenJDK Development Kit (JDK)
openjdk-8-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-8-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-8-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-8-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
openjdk-8-source - OpenJDK Development Kit (JDK) source files
default-jdk - Standard Java or Java compatible Development Kit
default-jdk-doc - Standard Java or Java compatible Development Kit (documentation)
default-jdk-headless - Standard Java or Java compatible Development Kit (headless)
default-jre - Standard Java or Java compatible Runtime
default-jre-headless - Standard Java or Java compatible Runtime (headless)
icedtea-8-plugin - web browser plugin based on OpenJDK and IcedTea to execute Java applets
jtreg - Regression Test Harness for the OpenJDK platform
libhsdis0-fcml - HotSpot disassembler plugin using FCML
libreoffice - office productivity suite (metapackage)
openjdk-8-jre-dcevm - Alternative VM for OpenJDK 8 with enhanced class redefinition
openjdk-8-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark
openjdk-9-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-9-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-9-doc - OpenJDK Development Kit (JDK) documentation
openjdk-9-jdk - OpenJDK Development Kit (JDK)
openjdk-9-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-9-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-9-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-9-source - OpenJDK Development Kit (JDK) source files
uwsgi-app-integration-plugins - plugins for integration of uWSGI and application
uwsgi-plugin-jvm-openjdk-8 - Java plugin for uWSGI (OpenJDK 7)
uwsgi-plugin-jwsgi-openjdk-8 - JWSGI plugin for uWSGI (OpenJDK 7)
uwsgi-plugin-ring-openjdk-8 - Closure/Ring plugin for uWSGI (OpenJDK 7)
uwsgi-plugin-servlet-openjdk-8 - JWSGI plugin for uWSGI (OpenJDK 7)
java-package - Utility for creating Java Debian packages

Last edited by Bluscream (10 Dec 2016 11:41)

Avatar

By Scrumplex 10 Dec 2016 11:34

Admin · 2,147,483,647 comments

You could remove Java 9 xD. I don't use OpenJDK so I don't know how to do it with OpenJDK.


The Developer of the Sprummlbot and the Admin of this forum.

Avatar

By Scrumplex 10 Dec 2016 11:35

Admin · 2,147,483,647 comments

you could do /usr/lib/jvm/YOURJAVA8FOLDERHERE/bin/java -jar Sprummlbot


The Developer of the Sprummlbot and the Admin of this forum.

Avatar

By Bluscream 10 Dec 2016 11:45

Banned · 7 comments
[10.12.2016 12:44:52 | INFO][Config] Loading Config...
[10.12.2016 12:44:52 | INFO][Config] Config loaded!
[10.12.2016 12:44:52 | INFO][Updater] Checking for updates...
[10.12.2016 12:44:52 | INFO][VPN Checker] Loading saved ip addresses...
[10.12.2016 12:44:53 | INFO][Internal] Public IP is 79.225.48.191
[10.12.2016 12:44:53 | INFO][Internal] Hello! Sprummlbot v0.5.1 is starting...
[10.12.2016 12:44:53 | INFO][Internal] This Bot is powered by https://github.com/TheHolyWaffle/TeamSpeak-3-Java-API
[10.12.2016 12:44:53 | INFO][Internal] Debug Mode: 0
[10.12.2016 12:44:53 | INFO][Dynamic Banner] Initializing Dynamic Banner...
[10.12.2016 12:44:53 | INFO][Core] Connected to TeamSpeak 3 Server!
[10.12.2016 12:44:53 | INFO][Core] Initializing Sprummlbot...
[10.12.2016 12:44:53 | INFO][Core] Selecting virtual server with ID 35...
[10.12.2016 12:44:56 | INFO][VPN Checker] Enabling VPN Checker...
[10.12.2016 12:44:57 | INFO][Modules] Starting modules...
[10.12.2016 12:44:57 | INFO][Web Server] Initializing webinterface...
[10.12.2016 12:44:57 | INFO][Web Server] Starting webinterface...
[10.12.2016 12:44:57 | INFO][Web Server] Webinterface started! Try "!login" with Admin permissions or "login" in the console
[10.12.2016 12:44:57 | INFO][Core] Loading defaults...
[10.12.2016 12:44:57 | INFO][Plugins] Loading plugins...
[10.12.2016 12:44:57 | INFO][Modules] Initializing modules...
[10.12.2016 12:44:57 | INFO][Modules] Starting modules...
[10.12.2016 12:44:57 | INFO][Core] Done! It took 5.29 seconds.
[10.12.2016 12:44:57 | INFO] Available Console Commands: login, reloadplugins

Awesome, thanks ♥

Array