/etc/hosts works but gets overwritten every boot
On my system (10.6.8) I can edit /etc/hosts and the changes take effect immediately. The problem is that every time I reboot, my changes are overwritten. Does anyone know what could cause this? BTW this is the exact same unsolved issue found in this dead archived thread.
"servy" is a computer on my lan that uses DHCP and registers its name with my router which serves DNS. If I comment out the line for "servy" in my hosts file, it immediately takes effect and I can successfully ping it, or lookup its address with "dscacheutil -q host -a name servy", but as soon as I reboot, the /etc/hosts file no longer has the comment in that line. It's like there's a "last known good" copy of the hosts file somewhere and OSX or some service is restoring it every boot.
timac:~ tim$ cat /etc/hosts
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
192.168.2.100 servy
timac:~ tim$ ls -la ~/Library/LaunchAgents/
total 32
drwx------ 6 tim staff 204 Nov 13 19:22 .
drwx------+ 42 tim staff 1428 Dec 6 21:21 ..
-rw-r--r-- 1 tim staff 892 Nov 13 2009 [email protected]t.plist
-rw-r--r-- 1 tim staff 425 Nov 13 19:22 com.apple.FolderActions.enabled.plist
-rw-r--r-- 1 tim staff 517 Nov 13 19:22 com.apple.FolderActions.folders.plist
-rw-r--r-- 1 tim staff 677 Oct 22 17:06 org.virtualbox.vboxwebsrv.plist
timac:~ tim$ ls -la /Library/LaunchAgents/
total 16
drwxr-xr-x 4 root wheel 136 Jan 9 12:31 .
drwxrwxr-t+ 56 root admin 1904 Mar 5 2010 ..
-rw-r--r-- 1 root wheel 635 Sep 9 09:04 com.cisco.anyconnect.gui.plist
-rw-r--r-- 1 root wheel 786 Jul 10 2011 com.google.keystone.agent.plist
timac:~ tim$ ls -la /Library/LaunchDaemons/
total 24
drwxr-xr-x 6 root wheel 204 Jan 9 12:31 .
drwxrwxr-t+ 56 root admin 1904 Mar 5 2010 ..
-rw-r--r-- 1 root wheel 485 Aug 31 2009 com.DuetDaemon.plist
-rw-r--r-- 1 root wheel 669 Feb 17 2011 com.apple.third_party_32b_kext_logger.plist
-rw-r--r-- 1 root wheel 562 Sep 9 09:04 com.cisco.anyconnect.vpnagentd.plist
-rw-r--r-- 1 root wheel 790 Jul 10 2011 com.google.keystone.daemon.plist
timac:~ tim$ ls -la /Library/StartupItems/
total 0
drwxr-xr-x 4 root wheel 136 Dec 31 2010 .
drwxrwxr-t+ 56 root admin 1904 Mar 5 2010 ..
drwxr-xr-x 5 root wheel 170 Jan 10 09:23 VirtualBox
drwxr-xr-x 4 root wheel 136 Mar 7 2010 rEFItBlesser
Similar Messages
-
Classic iPod in Dock, suddenly stops playing. Fully charged, blue play button showing. I RESET. Works, but doing this every day...does not seem right. What am I doing wrong?
No problem, sometime the iPod need a Reset to clear the overflowing cache.
So it's good to Reset once a week or after you recharge it.
Here is the Apple support Article on the 5Rs
http://www.apple.com/support/ipod/five_rs/classic/
Have a nice day! -
Motherboard went in my g5 desktop so i go my hard drive extracted with all my data..I now have an ibook g4 laptop running off OSX 10.4.11 and am trying to get Garageband working but get this message: The Instrument Library is invalid. GarageBand expects a valid Instrument Library folder?
Contact Apple Support:
http://www.apple.com/support/contact/
Apple - How to Contact Us:
http://www.apple.com/contact/
Be sure to refer to the repair ticket number.
Sounds like a terrible mixup.
Good luck & happy computing! -
Photoshop works at work but gets stuck everytime i open it at my home?
Photoshop works just fine on my apple mac at work, but whenever I try to open it at home I go to open a file and the loading symbol comes up and gets stuck, causing it to not respond.
Try reseting the preferences. Start PS and immediately hold down the option cmd and shift keys. Should get a reset window.
-
Deployed Files getting overwritten every time when I do a server restart
Hi,
I have deployed a web application in weblogic server. For testing purpose, instead of placing the changed file inside the war our team will change the files directly in the deployed area. Once when we restart the application server, the new files are getting overwritten with the old one. Is there any setting with which we can stop the weblogic server deploying the old war file again?Hi,
I am stopping and restarting the weblogic server through startManagedWeblogic.sh script. I am not using the weblogic console. Some of our application developers directly drag and drop the Units in the Deployed Area for testing Purpose. Even with nostage mode the war file in the upload folder is getting redeployed at the time of server restart. -
I tried recovery at least three times, and it says that it can not complete the activation at this time. I did take my Sim card out and try as well, because I had to use it in my old phone. I reopened the phone and double checked that everything was plugged back in from the screen change. What went wrong??? I restored it before and everything worked fine. It's not hacked or jailbroke, so I don't know what's going on???? Please help!
Yes, i did. I bought a screen repair kit and it was very simple to change. it works, but its stuck in recovery mode...
-
I have an iPad 4 with an Apple lightning to vga adapter. (A1439)
It connects fine to my HDTV and projector for doing presentations and video etc.
But if I do show any video on it, e.g. full screen a video from within Chrome, Safari, the apps for Youtube etc.
or if I do a presentation using Keynote, it locks into working as an extended second screen.
It shows the controls for the video on the iPad and the video on the external screen, which is what I would expect. But then if I exit the video or complete the presentation, the external screen continues to show the last frame of the video or presentation. Even if I close the app.
I can't get back to using it in mirroring mode without shutting it down and restarting.
Surely I am just missing something.
I've tried force closing the apps that I use, switching between them, starting up new ones etc.
But no luck.
There doesn't seem to be a setting anywhere that I can change.
Any suggestions?The same thing happened to me. After the big update, I also experienced exactly what you described. I ended up restoring the ipad a number of times.
The first few times, I restored from a back-up. The last few times I have restored the ipad as new. It would work the next few times I turned the machine on, and around the third time, it would lapse back into the recovery mode, with
the image of the serial cord connecting to an i-tunes logo on its desktop. This morning, I restored the ipad as new, but only allowed the apps manufactured by Apple to be synced back onto the ipad. I have powered it back on about three times, and so far, so good. I am waiting to see what happens the next few times I turn the machine on.
I had a very helpful senior Apple express advisor help me on Sunday to do the restore as a new ipad procedure. He said that if that did not work, the next step was having it serviced. He also mentioned that often the third party apps have problems due to getting corrupt and this often happens after a major update. That is why I thought i'd try and see what would happen if I only synced the Apple apps back onto the ipad.
It is not good though if I can't put third party applications on it without having the problem of lapsing into recovery mode, so I may have to get it serviced. I am wondering how many others have had this problem after the big update last week? Also, has anyone who was an early purchaser and got the flat-rate unlimited data plan subscription from AT&T, had to have their ipad replaced? Was there a problem with AT& T still allowing you to continue your special subscription plan? -
CME Live Recording Working but get a "Live Record has Stopped" message
Hi All,
I've configured Live Recording and its working perfectly.
However, when you press the LiveRcd button, you briefly get a message "Live Record has Stopped". (It does record the conversation and delivers it to my mailbox).
Is this normal?
Many thanks,
Ernesto
Cisco 2821 IOS 12.4(20)T
Cisco Unity Express 7.0.1You might be hitting this bug:
CSCsq79034
Wrong Display while using LiveRcd softkey
Symptom:
If the call is active between phone A and phone B and phone A presses
the softkey LiveRcd , then the call is recorded however the display
says " Live Record has stopped" which is mis-leading to the users as
they feel the call is not recording but it actually is recording and
phone A gets a message after the call is disconnected.
Conditions:
its a cosmetic bug
Workaround:
Now if the call is active beween phone A and phone B and phone A presses
conference softkey and dials 9200 and presses conference softkey again ,
the call is recorded and phone A gets a message
HTH
java
if this helps, please rate -
This is random, fb app will not update newsfeed and comes up with networking error, all other webpages work, except I can not send a photo in Twitter or from my MAIL app on the ipad 2. My husbands I pad is doing the same thing, I have reset the ipad, checked wifi and router settings ( my mac is currently working fine on my wifi) and i have changed the IP address thing to 8.8.8.8 and still it doesn't work!
I'm experiencing a similar problem with a new iPad 2 using iOS 4.3.3 connected to the Internet via Time Machine to a DSL line. The Speedtest X HD App shows the connection speed to be fine (about .6 Mb / s). The problem is only with accessing web pages. I frequently get a "server not responding" msg. There is no problem when I connect the device via USB to an iMac, only through wifi. The iMac itself (Intel with OSX 10.6.7) periodically experiences problems (both Firefox and Safari): I have learned to solve it by cleaning out cache and fixing disk permissions periodically. I've tried cleaning out cache on the iPad, deleting cookies and erasing web history, but that doesn't seem to make any difference. The problem reminds me of an old VNC problem: you had to allocate a large amount of cache or streaming would stall. This is also happening with the iPad 2. Maybe the problem is a DNS channel issue but my impression is that it is somehow related to a memory or cache issue with the iOS device or to Airport. I've occassionally experienced similar slow page loading problems with other Airport connected devices--it varies from device to device. It seems to be a client-side software or caching problem.
-
Setter works but Getter does not
Hi all,
I have had relatively little problems with setting up and running Entity Ejb's as of yet with simple beans (with 2 attributes only). The below problems seems to be implemented in the same way as the smaller been, with the only difference being that this bean has 6 attributes.
Quite simply,
I have no problems setting up the EJB, deployement of EJB, and the running of the server.
I have created a testing program that creates a new instance of the bean, looks up a bean, sets one of the attributes of the bean and then uses a getter method to check to see if the setter works.
Out of all of the above I thought the simplest thing to use would be the getter method. But this is the area that I get the exception.
As I said everything else works, I can even check the database to check if the setter method works, and it does.
The exception that is called is:
<code>
java.rmi.ServerException: RemoteException occurred in the server thread; nested exception is:
java.rmi.RemoteException: Exception is in getAddress: nested Exception is:
javax.ejb.NoSuchEntityException
</code>
The name of the getter method that is called is getAddress, as seen above.
Please could anyone help.
Thanking you
DamianHi all,
I have been working on the problem now for a little more and I have worked something out.
I worked through everything and tried to work out what was out of the ordinary. I realized that I had an attribute in the bean of type java.util.Date. While all other attributes were of type String. When I created the bean with out the Date column, the getter methods for all the other attributes seem to work (unlike before).
Why has this made a difference, what is it about having a setter and a getter method for datatype Date that affects all of the other getter methods.
Of course I want to be able to have fields with datatype of Date, so please people help me on this one.
Damian -
Iphone 4 flash light not working.but getting a click flash only once
my iphone 4 with ios 6.0.1 led is not working even if i turn on in settings but it is working once if a picture is taken and is not working in videos eventhough it is turned on...
and gps navigation is not proper..can u help me
thanks in advanceSorry but I dont have a solution. I do however have a similar problem in that my microphone has stopped working since upgrading. Well at least it doesnt work when making calls, voice memos or skype calls. I have to speak directly into the mic for the person I am talking to, to hear me - and even then it is very feint. I dont think its a hardware problem as when I record video the sound it perfect. Although I have seen that some believe the video recording used the noise cancellation mic. But, I downloaded an app which is used to measure sound power which I confirmed that the bottom mic is working properly.
So this post is to add my voice to your concern really.
The worst part is, I did not save a SHSH blob to be able to downgrade to 5.1.1 so im kinda stuck. -
Get('XML') doesn't work, but get() does in javascript - CASCADING LOVs
I'm trying to get cascading LOVs working in Apex 3.1.0 in Oracle 11g. When I call get.get('XML') it returns null in firefox and empty string in IE6. If I change it to call get.get() then it returns the XML as a string into Javascript.
The Application process is getting called in both scenarios as i've put PL/SQL logging to disk in order to prove it. The XML being returned is very basic so i'm sure it's not a problem with formatting. I'm not getting any exceptions thrown in javascript either.
Is it possible to use get.get() and then convert the text into an XML object which is returned as per get.get('XML') which at least will allow me to get something working ?
thanks
<script language="JavaScript" type="text/javascript">
function getBusinessFieldJS(pThis, pSelect)
alert('getBusinessFieldJS');
try
var l_Return = null;
var l_Select = html_GetElement(pSelect);
var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=GET_DATA_FIELDS_XML', 0);
/*get.add('F120_GETBUSINESSFIELD_ITEM',pThis.value);*/
gReturn = get.get('XML');
alert('gReturn=' + gReturn);
alert('gReturn.value=' + gReturn.value);
if (gReturn == null)
alert('gReturn is null');
if(gReturn && l_Select)
var l_Count = gReturn.getElementsByTagName("option").length;
alert('l_count='+l_Count);
l_Select.length = 0;
for(var i=0;i<l_Count;i++)
var l_Opt_Xml = gReturn.getElementsByTagName("option")+;+
+ appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),+
+ l_Opt_Xml.firstChild.nodeValue)+
+ }+
+ }+
+
get = null;+
+ }+
+ catch (e)+
+ {+
+ alert('Exception : ' + e);+
+
}+
+}+Hi,
I've been trying to replicate your problem here: [http://apex.oracle.com/pls/otn/f?p=37055:1]
My application process is:
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p('Cache-Control: no-cache');
HTP.p('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn('<select>');
HTP.prn('<option value="-1">Please Select</option>');
HTP.prn('</select>');
END;(Just copied from your post and XML changed to xml, otherwise untouched)
And my page has a simple HTML region with the source of:
<div id="XMLOUTPUT" style="border:1px solid blue; width:200px; height:200px;"></div>
<div id="XMLOUTPUT2" style="border:1px solid blue; width:200px; height:200px;"></div>
<script type="text/javascript">
function getMyXML()
var l_Return = null;
var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=RETURN_XML', 0);
gReturn = get.get('XML');
var d = html_GetElement('XMLOUTPUT');
d.innerHTML = gReturn;
var d2 = html_GetElement('XMLOUTPUT2');
d2.innerHTML = get.get();
var s = gReturn.getElementsByTagName("select");
alert(s.length);
</script>
<a href="javascript:getMyXML();">Click</a>Click on Click at the bottom of the page. The first DIV gets the get.get('XML') object and the second one the get.get() and a popup message tells you how many "select" items are in the XML version.
As far as I can see, this works fine.
Andy -
Shuffle not working but getting a blinking light
My shuffle quit working. I turn it off for 5 seconds and then on again as suggested and all I get is a brief green light followed by a yellow light that blinks 3 times and then dies.
Is his something to do with the head phones/contoller?
How can I get my shuffle to work again. It is only 3 months old.Looking at page 21 of this :-
http://manuals.info.apple.com/enUS/iPod_shuffle_3rdGenUG.pdf
It maybe that your volume down button is stuck on. -
Printers working, but getting group policy error (error 513)
Ok great, I'll let you know how it goes.
Hi all,I've got a print server role running on a Server 2012 VM. It was working great until a few days ago until one of the printers went offline. I restarted the print spooler (no effect), then restarted the server (brought the printer back online). Since then, I've been receiving these errors for all three printers we have on this server:Error ID: 513Source: Microsoft-Windows-PrintServiceMessage: Group Policy was unable to add per computer connection \\___\\Copier Konica Minolta C360 PCL. Error code 0x7B. This can occur if the name of the printer connection is incorrect, or if the print spooler cannot contact the print server.The printer names did not change, and since the printers are working, it seems that the spooler is working. I also tried updating the drivers through print management (there is a new version of the driver...
This topic first appeared in the Spiceworks Community -
/etc/hosts overwritten
Hi all.
I noticed that in Lion my /etc/hosts and /private/hosts gets overwritten at boot time. This is rather annoying as I would use said file to store the IP to name translations of some local computers.
Before editining I would always become root and use nano to edit the file.
Question: how do I make the changes to the hosts file permanent?
Thanks,
zidarkoWell you could lock it. But it is better to find out who is clobbering it. I've seen posts about something like this before but it slips my mind exactly what the fix was.
Look in /etc/ and see if there other "hosts" files like host.bac, hosts.ac, etc. If you find them delete them. I'm assuming there might be one that is used to clobbler yours.
Aslo see if this has any connection to your problem:
10.7: Adding entries to the Cisco AnyConnect hosts file
Maybe you are looking for
-
Itunes wont open and quicktime will not install. help?
someone please help. my itunes will not open since i preformed an update (it has not been updated for a few years). i have noticed i no longer have quicktime on my laptop but cant re-install. i get to the 'welcome to quicktime 7 installer' screen, pr
-
have downloaded iTunes 10.5 but after it downloads it vanishes and I can not locate the file anyway on my PC. I have done this a few times now. Any ideas?
-
My G5 has been acting a bit odd lately. it started with me noticing it was running slow. I realized I was filling up the hard drive so I purchased an external and removed about half of the material on the hard drive. THen I noticed it didn't matter i
-
Aperture 3 crashes constantly!
My aperture has all of a sudden started crashing a lot. Even when I make minor manipulations. This makes it for me impossible to work on photos and I would appreciate any help in figuring out the cause and fixing it! Here is the last crash report: Pr
-
Reports 9i R2 Need SQL database connect string
We have set up REports 9i R2 and can connect to Oracle Database but unabel to find correct connect string to connect to a MS SQL database ?