Name resolution error

Support for Ubuntu and other Desktop Linux distributions
Post Reply
sioban
Posts: 4
Joined: 15 Apr 2016, 08:28

Name resolution error

Post by sioban »

Hi,

I have a strange bug using filebot : java.net.UnknownHostException: shax: unknown error

Shax is the name of my server and DNS resolution is working :

Code: Select all

# ping shax
PING shax (127.0.0.1) 56(84) bytes of data.
64 bytes from shax (127.0.0.1): icmp_seq=1 ttl=64 time=0.019 ms
64 bytes from shax (127.0.0.1): icmp_seq=2 ttl=64 time=0.020 ms
64 bytes from shax (127.0.0.1): icmp_seq=3 ttl=64 time=0.022 ms
Any idea ?

Debugging code :

Code: Select all

filebot -script fn:sysinfo
avr. 15, 2016 8:35:06 AM net.sf.ehcache.Cache <clinit>
GRAVE: Unable to set localhost. This prevents creation of a GUID. Cause was: shax: shax: unknown error
java.net.UnknownHostException: shax: shax: unknown error
        at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
        at net.sf.ehcache.Cache.<clinit>(Cache.java:222)
        at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:305)
        at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:223)
        at net.sf.ehcache.CacheManager.configure(CacheManager.java:796)
        at net.sf.ehcache.CacheManager.doInit(CacheManager.java:471)
        at net.sf.ehcache.CacheManager.init(CacheManager.java:395)
        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:270)
        at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:1116)
        at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:892)
        at net.sf.ehcache.CacheManager.create(CacheManager.java:873)
        at net.sf.ehcache.CacheManager.getInstance(CacheManager.java:907)
        at net.filebot.web.CachedResource.getCache(CachedResource.java:23)
        at net.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:51)
        at net.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:210)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
        at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
        at net.filebot.Main.main(Main.java:169)
Caused by: java.net.UnknownHostException: shax: unknown error
        at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
        ... 17 more

FileBot 4.6.1 (r3315)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.5
JRE: OpenJDK Runtime Environment 1.8.0_72-internal (headless)
JVM: 32-bit OpenJDK Server VM
CPU/MEM: 4 Core / 910 MB Max Memory / 67 MB Used Memory
OS: Linux (i386)
Package: DEB
Data: /root/.filebot
uname: Linux shax 4.3.0-0.bpo.1-686-pae #1 SMP Debian 4.3.5-1~bpo8+1 (2016-02-23) i686 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Name resolution error

Post by rednoah »

1.
If the error message isn't about filebot specifically, but a generic Java / Linux configuration issue, then it's best to just try Google:
http://stackoverflow.com/a/7601052/1514467


2.
Never ever run filebot as root.
:idea: Please read the FAQ and How to Request Help.
sioban
Posts: 4
Joined: 15 Apr 2016, 08:28

Re: Name resolution error

Post by sioban »

I've google it before but the solution does not work.

What's the problem with running filebot as root ?
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Name resolution error

Post by rednoah »

Are you using non-stable releases of Debian and OpenJDK? I recommend using a standard Oracle JDK build.
:idea: Please read the FAQ and How to Request Help.
sioban
Posts: 4
Joined: 15 Apr 2016, 08:28

Re: Name resolution error

Post by sioban »

Debian is Jessie in stable releases
JRE is a backport of OpenJDK-8-JRE 8u72-b15-1~bpo8+1

Code: Select all

openjdk-8-jre:
  Installé : 8u72-b15-1~bpo8+1
  Candidat : 8u72-b15-1~bpo8+1
 Table de version :
     8u77-b03-3+b1 0
        300 ftp://debian.mirrors.ovh.net/debian/ testing/main i386 Packages
        101 ftp://debian.mirrors.ovh.net/debian/ unstable/main i386 Packages
 *** 8u72-b15-1~bpo8+1 0
        400 http://http.debian.net/debian/ jessie-backports/main i386 Packages
        100 /var/lib/dpkg/status

Code: Select all

 dpkg -l|grep jre
ii  openjdk-8-jre:i386                           8u72-b15-1~bpo8+1                    i386         OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-8-jre-headless:i386                  8u72-b15-1~bpo8+1                    i386         OpenJDK Java runtime, using Hotspot JIT (headless)
I needed openjdk 8 for some other projects.
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Name resolution error

Post by rednoah »

No idea. There's something about your platform that Java doesn't like, or Java somehow being misconfigured. I'd try the oracle jdk just to see if the issue persists.
:idea: Please read the FAQ and How to Request Help.
sioban
Posts: 4
Joined: 15 Apr 2016, 08:28

Re: Name resolution error

Post by sioban »

hum ok...
Post Reply