Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Couldn't Resolve Localhost error on OSX Maverick/Java 7 up45

Featured Replies

Posted

I am running OSX Maverick on my iMac with Java 7 update 45 and get the error

 

Couldn't Resolve Localhost. On Mac: fix /private/etc/hosts file

 

I have tried uninstalling Java and re-installing but still have the error when I start the Admin console. This is preventing me from backing up my ISY configuration. I did look at other posts on this and it seems to have come up before. I looked at a post that said to edit the hosts file but it was not clear what it was I was to add. Can anyone help with this error?

post-2720-140474161399_thumb.png

Hi Kentinada-

 

It sounds to me like your hosts file is damaged or has the wrong permissions.

 

Bring up the Terminal program and type:

cat /private/etc/hosts 

 

And see what is returned. You should see a line included that says:

 

127.0.0.1     localhost

 

Have you run a repair permissions since upgrading to Mavericks? If not, launch the DiskUtility and click RepairPermissions - See if that helps.

 

-Xathros

  • Author

I do see that. See the attached screen shot.

post-2720-1404741614_thumb.png

Try typing:

ping localhost 

 

See if it returns:

64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.xxx ms

 

You will have to hit Ctrl-C to stop the ping once started.

 

-Xathros

  • Author

Yes it does. See attached screenshot.

post-2720-140474161402_thumb.png

OK. Thats good. Thje only thing odd that I noticed in your hosts file was a missing entry for your computers name. Mine looks like:

 

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	Xathros-MacBook-Air.local
127.0.0.1	localhost
255.255.255.255	broadcasthost

 

I wonder if that missing entry is the culprit.

 

-Xathros

  • Author

Not sure what my entry would be. Any idea how to figure that out?

go to the System Preferences, Sharing Applet:

 

 

The bottom line there is what should be in the hosts file.

 

Try editing the computer name - change it to something else, save the change then change it back and save again - that may update the file for you.

 

 

-Xathros

post-1437-140474161405_thumb.jpg

  • Author

That resolved that error message. Thanks.

 

Now I can't backup my config. I'll search the forum and enter a new thread if I can't find anything.

  • Author

Thanks but the fix there did help. This is a Safari issue only. The backup works in Firefox so I'm covered till this gets fixed.

You need to go into safari settings and allow the java app for udi to run outside the sandbox. This is new in Mavericks.

 

 

Sent from my iPad using Tapatalk HD

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.