I changed my password, restarted the droplet and I couldnt start tomcat ever since, when I try to start tomcat if get “UnknownHostException”.
WHAT I tried so far:
I have changed my droplet name to beta.mydomainName.com
my /etc/hosts/ looks like;
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 188.226.197.221 beta.mydomainName.com ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
2014-05-19 08:21:02,246 [localhost-startStop-1] ERROR ehcache.Cache - Unable to set localhost. This prevents creation of a GUID. Cause was: betaEgangan: betaEgangan: Name or service not known java.net.UnknownHostException: betaEgangan: betaEgangan: Name or service not known at java.net.InetAddress.getLocalHost(InetAddress.java:1473) at net.sf.ehcache.Cache.<clinit>(Cache.java:200) at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:302) at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:218) at net.sf.ehcache.CacheManager.configure(CacheManager.java:618) at net.sf.ehcache.CacheManager.init(CacheManager.java:361) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:230) at net.sf.ehcache.hibernate.EhCacheRegionFactory.start(EhCacheRegionFactory.java:70) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.net.UnknownHostException: betaEgangan: Name or service not known at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293) at java.net.InetAddress.getLocalHost(InetAddress.java:1469) … 12 more
I can not ping this ip from outside the box
but ofcourse i can from within.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
What’s the output of running <code>hostname -f</code> in the console? What are the contents of your <code>/etc/sysconfig/network</code> file?
even i am facing same error . <br> <br>/etc/sysconfig/network file contains <br> <br>HOSTNAME=myhostname <br> <br>$hostname -f <br>hostname: Unknown host <br> <br>what may be the error ? <br> <br>
Try replacing <pre>HOSTNAME=myhostname</pre> with <pre>HOSTNAME=beta.mydomainName.com</pre> <br>Reboot your droplet, does that fix it?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.