Error hostname: No address associated with hostname

Hello everyone,
I am having an error at launching my java program related with the hostname. I have verified whether the raspberry pi 2 was connected to the network and I also looked for further errors related with this issue. If someone could help me to understand a bit more about the issue I will be gratefull. This is the log of my program:

05.10.20 15:31:10 (+0000) main hostname: No address associated with hostname
05.10.20 15:31:10 (+0000) main xauth: (stdin):1: bad display name “462fa2b:0” in “add” command
05.10.20 15:31:10 (+0000) main
05.10.20 15:31:10 (+0000) main
05.10.20 15:31:10 (+0000) main X.Org X Server 1.18.4
05.10.20 15:31:10 (+0000) main Release Date: 2016-07-19
05.10.20 15:31:10 (+0000) main X Protocol Version 11, Revision 0
05.10.20 15:31:10 (+0000) main Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
05.10.20 15:31:10 (+0000) main Current Operating System: Linux 462fa2b 4.9.59 #2 SMP Mon May 7 05:11:10 UTC 2018 armv7l
05.10.20 15:31:10 (+0000) main Kernel command line: bcm2708_fb.fbwidth=1600 bcm2708_fb.fbheight=900 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 dwc_otg.lpm_enable=0 console=null root=LABEL=resin-rootA rootfstype=ext4 rootwait vt.global_cursor_default=0
05.10.20 15:31:10 (+0000) main Build Date: 11 November 2016 11:59:59AM
05.10.20 15:31:10 (+0000) main xorg-server 2:1.18.4-2+rpi1 (
05.10.20 15:31:10 (+0000) main Current version of pixman: 0.33.3
05.10.20 15:31:10 (+0000) main Before reporting problems, check
05.10.20 15:31:10 (+0000) main to make sure that you have the latest version.
05.10.20 15:31:10 (+0000) main Markers: (–) probed, (**) from config file, (==) default setting,
05.10.20 15:31:10 (+0000) main (++) from command line, (!!) notice, (II) informational,
05.10.20 15:31:10 (+0000) main (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
05.10.20 15:31:10 (+0000) main (==) Log file: “/var/log/Xorg.0.log”, Time: Mon Oct 5 10:31:10 2020

Hi @AndresOlaya,

It looks like you’re attempting to run a desktop with Xorg, and I suspect the hostname for the X server is not available. Can you tell us a little more about what you’re trying to accomplish? It appears you’re running Raspbian OS. Perhaps you could build a container for your Java app and do away with the need for launching a full desktop/X-server?


Hi, @jtonello mi java application runs an X server in order to show some swing frames in a screen, connected directly to the rpi 2.

Hi there,

Can you explain a bit more about this setup? Are you running the X server on a different machine that is somehow connected to the RPi2, or something else? The more information you can provide about your setup and what you are trying to accomplish the better!