Solved Timings error (UnknownHostException)

Discussion in 'Spigot Help' started by ChiefMoneyBags, Mar 10, 2017.

  1. Timings was working fine on my server then all of the sudden stopped working and now gives this error when i try to paste, if anyone has a solution for me it would be great. thanks.

    [01:19:53] [Timings paste thread/ERROR]: Could not paste timings
    java.net.UnknownHostException: hosted-by.vpsfast.us: hosted-by.vpsfast.us: Name or service not known
    at java.net.InetAddress.getLocalHost(Unknown Source) ~[?:1.8.0_121]
    at co.aikar.timings.TimingsExport.run(TimingsExport.java:309) [spigot.jar:git-PaperSpigot-"8b18730"]
    Caused by: java.net.UnknownHostException: hosted-by.vpsfast.us: Name or service not known
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[?:1.8.0_121]
    at java.net.InetAddress$2.lookupAllHostAddr(Unknown Source) ~[?:1.8.0_121]
    at java.net.InetAddress.getAddressesFromNameService(Unknown Source) ~[?:1.8.0_121]
    ... 2 more

    SOLUTION:
    i was able to fix this issue by changing the hostname of the server in the file "/etc/hostname" to 127.0.0.1
    i use centos7
    The issue began when i restarted the dedicated server, the hostname was changed to be incorrect when this happened.
     
    #1 ChiefMoneyBags, Mar 10, 2017
    Last edited: Apr 18, 2017
    • Like Like x 1
    • Friendly Friendly x 1
  2. Make sure the host still exists. Otherwise I'd contact the host