java.awt.AWTError: Can't connect to X11 window server using 'MY_IP:0.0' as the value of the DISPLAY variable.

Support for Ubuntu and other Desktop Linux distributions
Post Reply
BlayZin
Posts: 5
Joined: 28 Jul 2018, 15:25

java.awt.AWTError: Can't connect to X11 window server using 'MY_IP:0.0' as the value of the DISPLAY variable.

Post by BlayZin »

Heyho

I am trying for some days to get Filebot working and came to quite many issues but figured them all out but now I am at a point where I just don't know what to do anymore.

When I just type

Code: Select all

filebot
I will get this error after like 3 minutes:

Code: Select all

java.awt.AWTError: Can't connect to X11 window server using 'MY_IP:0.0' as the value of the DISPLAY variable.
        at net.filebot.Main.main(Main.java:142)
Where "MY_IP" is my actual IP.

when I change my DISPLAY with

Code: Select all

export DISPLAY=:0.0
it comes instantly.

my sysinfo says:

Code: Select all

 filebot -script fn:sysinfo
FileBot 4.8.2 (r5768)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.2.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-07-15 (r530)
Groovy: 2.5.0
JRE: OpenJDK Runtime Environment 1.8.0_171
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 33 MB Used Memory
OS: Linux (amd64)
HW: Linux blayz.in 4.15.0-24-generic #26~16.04.1-Ubuntu SMP Fri Jun 15 14:35:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
DATA: /root/filebot-portable/data/root
Package: TAR
License: UNREGISTERED
Done ヾ(@⌒ー⌒@)ノ
I'm trying to install my license by the way and it is not possible because of that. When I use

Code: Select all

sudo -H -u root filebot --license ~/filebot-portable/filebot-license.psm
the same error comes up.

I'm running Ubuntu 16.04:

Code: Select all

FileBot 4.8.2 (r5768) / OpenJDK Runtime Environment 1.8.0_171 / Linux 4.15.0-24-generic (amd64)
$ filebot -script fn:sysenv gives me:
# Environment Variables #
LESS_TERMCAP_md:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sb in:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/hom e/quickbox/.bin/:/usr/local/bin/quickbox/:/usr/local/bin/quickbox/package/:/usr/ local/bin/quickbox/package/install/:/usr/local/bin/quickbox/package/remove/:/usr /local/bin/quickbox/plugin/:/usr/local/bin/quickbox/plugin/install/:/usr/local/b in/quickbox/plugin/remove/:/usr/local/bin/quickbox/system/:/usr/local/bin/quickb ox/system/lang/
LESS_TERMCAP_me:

LESS_TERMCAP_mb:
HISTCONTROL: ignoredups
LESS_TERMCAP_se:

LESSCHARSET: latin1
TERM: xterm
LESS_TERMCAP_us:
LANG: en_US.UTF-8
LESS_TERMCAP_so:

PS1: \[\e[m\n\e[1;30m\][$$:$PPID \j:\!\[\e[1;30m\]]\[\e[0;36m\] \T \d \[\e[1;30m \][\[\e[1;34m\]\u@\H\[\e[1;30m\]\[\e[1;30m\]] \[\e[1;37m\]\w\[\e[0;37m\] \n($SHL VL:\!)\$
DISPLAY: localhost:0.0
MAIL: /var/mail/root
LS_OPTIONS: --color=auto
LESS_TERMCAP_ue:

LOGNAME: root
PROMPT_COMMAND: history -a;(($SECONDS % 10==0 ))&&eval "$AA_P";echo -en "$PVE";
TIMEFORMAT:
real %3R user %3U sys %3S pcpu %P

PWD: /root
HISTTIMEFORMAT: [%d/%m %H:%M:%S]
_: /usr/local/bin/filebot
SHELL: /bin/bash
NVM_DIR: /root/.nvm
HISTIGNORE: &:bg:fg:ll:h
LESSOPEN: |/usr/bin/lesspipe.sh %s 2>&-
PAGER: less
HOSTFILE: /root/.hosts
SSH_TTY: /dev/pts/2
SSH_CLIENT: MY_IP 53653 4747
USER: root
AA_P: export PVE="\033[m\033[38;5;2m"$(( `sed -n "s/MemFree:[\t ]\+\([0-9]\+\) k B/\1/p" /proc/meminfo` / 1024 ))"\033[38;5;22m/"$((`sed -n "s/MemTotal:[\t ]\+\( [0-9]\+\) kB/\1/p" /proc/meminfo`/ 1024 ))MB"\t\033[m\033[38;5;55m$(< /proc/load avg)\033[m";echo -en ""
EDITOR: nano
SSH_CONNECTION: MY_IP 53653 SERVER_IP 4747
LC_ALL: en_US.UTF-8
LESS: -i -N -w -z-4 -g -e -M -X -F -R -P%t?f%f \
:stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-...
LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:c d=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37; 44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01 ;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t 7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz= 01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.t z=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31: *.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01; 31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pg m=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35 :*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg= 01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35: *.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01 ;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl =01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*. ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;3 6:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav= 00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
PVE: \033[m\033[38;5;2m184\033[38;5;22m/15971MB\t\033[m\033[38;5;55m0.26 0.33 0. 35 1/458 5972\033[m
HOME: /root
SHLVL: 1


# Java System Properties #
java.vendor: Oracle Corporation
sun.java.launcher: SUN_STANDARD
sun.management.compiler: HotSpot 64-Bit Tiered Compilers
os.name: Linux
sun.boot.class.path: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/us r/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/ jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/l ib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jr e/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jv m/java-8-openjdk-amd64/jre/classes
net.filebot.util.prefs.file: /root/filebot-portable/data/root/prefs.properties
grape.root: /root/filebot-portable/data/root/grape
java.vm.specification.vendor: Oracle Corporation
java.runtime.version: 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11
useExtendedFileAttributes: true
user.name: root
user.language: en
sun.boot.library.path: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
jna.nosys: true
application.deployment: tar
net.filebot.license: /root/filebot-portable/data/.license
java.version: 1.8.0_171
user.timezone:
sun.arch.data.model: 64
java.endorsed.dirs: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed
sun.cpu.isalist:
sun.net.client.defaultConnectTimeout: 10000
sun.jnu.encoding: UTF-8
file.encoding.pkg: sun.io
unixfs: false
file.separator: /
java.specification.name: Java Platform API Specification
java.class.version: 52.0
user.country: US
jna.boot.library.path: /root/filebot-portable/lib/Linux-x86_64:
java.home: /usr/lib/jvm/java-8-openjdk-amd64/jre
useCreationDate: false
java.vm.info: mixed mode
os.version: 4.15.0-24-generic
path.separator: :
java.vm.version: 25.171-b11
java.util.prefs.PreferencesFactory: net.filebot.util.prefs.FilePreferencesFactor y
java.awt.printerjob: sun.print.PSPrinterJob
sun.io.unicode.encoding: UnicodeLittle
awt.toolkit: sun.awt.X11.XToolkit
application.dir: /root/filebot-portable/data/root
jna.library.path: /root/filebot-portable/lib/Linux-x86_64:
net.filebot.media.parser: libmediainfo
http.agent: FileBot/4.8.2
user.home: /root/filebot-portable/data/root
java.specification.vendor: Oracle Corporation
java.library.path: /root/filebot-portable/lib/Linux-x86_64:
java.vendor.url: http://java.oracle.com/
java.vm.vendor: Oracle Corporation
net.filebot.Archive.extractor: SevenZipNativeBindings
java.runtime.name: OpenJDK Runtime Environment
sun.java.command: /root/filebot-portable/jar/filebot.jar -script fn:sysenv
java.class.path: /root/filebot-portable/jar/filebot.jar
java.vm.specification.name: Java Virtual Machine Specification
java.vm.specification.version: 1.8
sun.cpu.endian: little
sun.os.patch.level: unknown
java.io.tmpdir: /root/filebot-portable/data/root/tmp
java.vendor.url.bug: http://bugreport.sun.com/bugreport/
swing.crossplatformlaf: javax.swing.plaf.nimbus.NimbusLookAndFeel
os.arch: amd64
java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
java.ext.dirs: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/ lib/ext
user.dir: /root
line.separator:

java.vm.name: OpenJDK 64-Bit Server VM
java.net.useSystemProxies: true
org.apache.commons.logging.Log: org.apache.commons.logging.impl.NoOpLog
file.encoding: UTF-8
sun.net.client.defaultReadTimeout: 60000
jna.nounpack: true
java.specification.version: 1.8
application.cache: /root/filebot-portable/data/root/cache


# Arguments #
args[0] = -script
args[1] = fn:sysenv


Done ヾ(@⌒ー⌒@)ノ

Is someone able to figure out my problem? :|
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error during startup

Post by rednoah »

1.
If setting DISPLAY correctly fixes the problem, then what problem yet unsolved?

Code: Select all

export DISPLAY=:0.0
Just set DISPLAY before running FileBot. You could add it to your system environment variables.


2.
Using the latest version of Ubuntu might also be a solution.


3.
The DEB package might be more suitable for Ubuntu:
viewtopic.php?f=11&t=6028
:idea: Please read the FAQ and How to Request Help.
BlayZin
Posts: 5
Joined: 28 Jul 2018, 15:25

Re: java.awt.AWTError: Can't connect to X11 window server using 'MY_IP:0.0' as the value of the DISPLAY variable.

Post by BlayZin »

Thanks for answering.

no setting DISPLAY did not fix the problem but just decrease the delay for the error to happen.

1. I feel stupid because I just fixed it by using

Code: Select all

unset DISPLAY
now it is working and I could install my license :D

2. I cannot upgrade to 18.04 yet because Quickbox doesn't support it yet.

3. I guess I'll do a clean install with the DEB package seems wiser thanks for the info :D
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.awt.AWTError: Can't connect to X11 window server using 'MY_IP:0.0' as the value of the DISPLAY variable.

Post by rednoah »

Nice. Seems like an easy fix then. Unfortunately not something I dare to pre-configure in the launcher script right now, since it'll probably break things for other setups. It's good to have a solution here though.
:idea: Please read the FAQ and How to Request Help.
Post Reply