Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Temporary NFS mount keep being mounted while server is powered off

I was doing some performance testing using different file protocols (NFS, SMB mainly).


The last test was with NFS, I mounted on the command line the nfs exported directory, did my test, forgot about the moment and shutdown the NFS server. Since then OS X is bugging me every 2 minutes with a popup (which has the focus!) which states "There was a problem connecting to the server 192.168.1.250". The mount is not visible via 'df' so I decided to reboot the machine... But even after rebooting it, the popup keep on poping up!


User uploaded file


The setup was: OS X 10.8 as NFS client; FreeBSD 9.1 as NFS server (in a virtual machine hosted by a Linux machine on the same network). The command was:


mount -t nfs 192.168.1.250:/mnt/test ~/mnt/


I restarted the FreeBSD VM, suddenly the NFS export was mounted, this time as /Volumes/test. I unmounted it this time using:


sudo umount /Volumes/test


It did work successfully. I shutdown and deleted my VM, and some hours later the popup reappeared!!


How to get rid of it? Or more explicitely where is the configuration file where the mount is still explicitely present?

(it is not in /etc/fstab, nor /etc/auto_master) I did a huge grep using the IP address on the disk, and I got only log errors in /var/log.

MacBook Pro with Retina display, OS X Mountain Lion (10.8.2)

Posted on Feb 12, 2013 8:59 AM

Reply
39 replies

Feb 15, 2013 11:36 AM in response to Huygens-25

This is made very difficult by the fact that you can't run in safe mode.

When you uninstalled "CrashPlan," are you sure it was completely removed, and did you reboot and test after removing it?


If so, I suggest you boot in safe mode anyway. You wont be able to log in, but the system should reboot automatically after some system caches are removed. The next boot will be slower than usual.

Feb 16, 2013 1:30 AM in response to Linc Davis

Hi Linc, thanks again for your support!


So I have removed FileVault, I have removed again crashplan and even CloudStation. They are both properly removed, I have followed the online instructions for the uninstall and there is nothing left (CrashPlan keeps a config file in the user directory which help re-setup the tool upon reinstallation).


I have rebooted in safe mode as you instructed (shutdown, wait 30s, boot in safe mode using Shift, and then login without loading extra program by pressing Shift) and I did NOT get the message!

I have opened a terminal though and checked the running processes, the NetAuthSysAgent was running but was not trying to call any NFS mount. I have waited several minutes just in case but no message and no mount_nfs process.


So I guess NetAuthSysAgent is instructed by another process to mount the NFS share, it is perhaps the parent but not the one who initiate the request.


I rebooted in normal mode, but upon login I used the Shift trick too. So none of the usual extra process (like Dropbox got loaded), but I did get the popup message!


I have repeated all 5 steps you mentionned also previsouly (I forgot to do that in safe mode). Synology is nowhere to be found, however CrashPlan is still found in the login items (step 5), although I don't think it is a culprit as when I logged in in normal mode using th Shift trick, it should not have been loaded but I did get the message.

Feb 16, 2013 2:22 AM in response to Linc Davis

I did a lot of clean-up, removed thoroughly any third party application I did not need or that are easy to reinstall. By thorough I mean I follow uninstall instructions and I investigate all Library folders for any trace of remnant data which I deleted (particularly under Application Support, Preferences, Caches, LaunchDaemons, LaunchAgents).


When I was in safe mode I saved the ouput of 'ps -aef'. I did so in normal mode too after the above clean-up.


You can find this gist where I have put a filtered and sorted alphabetically output for easier comparison: https://gist.github.com/jcberthon/4966338


There are a few extra processes in normal mode, but nothing fancy...

Feb 16, 2013 5:37 AM in response to Huygens-25

NO more popup! Thank you so much Linc for your patience and guidance! It helped me a lot. 🙂


You told me to try safe mode, and I was not bother anymore by the popup, so a third-party application was bugging I deinstalled the following applications thoroughly (like mentionned in my previous message):


  • CrashPlan
  • Dropbox
  • Cyberduck
  • FileZilla
  • KeePass2.18
  • Skype
  • TrueCrypt


I have found traces remaining of Plex Media Server which I manually deleted.


Since then no more popup. Now I have no clue which of the app was the culprit.


But I will reinstall those I need one by one (with a reboot after each) just to see if any I need were the culprit.


Now issueing 'ps -aef | egrep -i "NetAuth|mount"' does not yeld anything, whereas before I had always at least the NetAuthSysAgent!

Feb 16, 2013 7:09 AM in response to Huygens-25

I am not sure how to REMOVE the accepted answer because the problem is not solve 😠


I thought it was, but then I reinstalled CrashPlan, reconfigured it. It was working, the NetAuth*Agent were nowhere to be seen, everything was alright. After awhile of seeing CrashPlan synchronised and working, I restarted the Mac to see if it was not restarting new process.


All was fine, 'sudo ps -aef | egrep -i "NetAuth|mount"' returned nothing. I waited several minutes and checked again, all was correct.


So I installed Dropbox. As soon as it was installed - but I cannot tell if it was mere coincidence - I got the infamous popup again! And the NetAuth*Agent processes were back!


So I thouroughly uninstalled Dropbox, like I did before. Rebooted, but was still greated by the popup! The NetAuth*Agent were there too! However, I got the popup once when I login and then it does not seem to come back and after awhile (during the same session) the NetAuth*Agent processes vanish too.


Then I again thoroughly uninstall CrashPlan, rebooted but I still have the popup and the NetAuth*Agent processses. They do disappear after awhile and are not as persistent as when I first opened this thread.


So was I lucky before after my first complete and thorough clean-up? I don't know. The behaviour is rather non predictable and not easily reproducible. But that's already 4 reboots I am doing since the last step, and each time I had this popup.


Knowing the NetAuth*Agent configuration files, architecture, API would really help at cornering the problem. Apple, where is the documentation or man page? The only reference to those are in the tmdiagnose manual page. That is a bit scarse 😉

Feb 16, 2013 8:06 AM in response to Huygens-25

NetAuthSysAgent is merely the process that produces the authentication dialog. It doesn't have any configuration files that I know of.


If I understand what you've reported, you booted in safe mode and didn't get the dialog. You then removed some third-party system modifications and booted as usual. Still no dialog. You put back some of the modifications, and the dialog came back. Beyond that, the story isn't very clear.


One or more of the modifications is causing the problem. I don't use those modifications and I don't have any more insight than you do into what they do. You'd have to refer to the developers for support or figure it out yourself. Good luck.

Feb 17, 2013 1:11 AM in response to Linc Davis

I am sorry it was confusing, but it reflects exactly my state of mind regarding this problem.


I am not a non-techy guy, not at all, I was compiling my own Linux kernel in the mid of the 90's to be able to have my mouse and video card working on Kheops Linux. My job is to engineer and develop software, mostly on Unix and Linux platforms. I know pretty well those OS, did some system programming and administration even, read man pages or header/source files (aka .h or .c) to understand an API. I usually know what I am doing. But here, I get confused.


My best guess is that these NetAuth*Agent services get triggered on demand by other applications or services. Since I completely removed Dropbox and CrashPlan, I am still greated upon boot/login by the infamous popup, usually it appears twice and then it is gone, also the NetAuth*Agent services disappear after some time. But periodically during my use of the Mac, the popup is triggered again, when this happen, often TimeMachine is running (not always but usually).


My wild guess is: those NetAuth*Agent services are triggered on demand by various applications, I suspect TimeMachine, CrashPlan and maybe DropBox, at least could also be SpotLight, although its activity is more difficult to track.

Maybe none of these applications are actually explicitely calling for these services, but they are calling File System specific monitoring feature that indirectly trigger the services.

Then I don't exactly know, but either they are state-less and another process is monitoring those services to request the NFS mount, or those services are stateful and they got once requested to mount the NFS share and stubbornly keep on trying to mount it.

This is pure speculation, but this is the only logical explanation I can find that could support the irrational behaviour with which this popup seems to be triggered!


As you advised, I am going to "cross-post" my problem to the CrashPlan and DropBox teams, but I am not convinced they are the culprit, rather an indirect and innocent trigger of a misconfiguration somewhere else.

Feb 17, 2013 1:56 AM in response to Huygens-25

I restarted my VM and waited ... boom ... the NFS share was automagically mounted as /Volumes/test.


I then run 'lsof' which is a handy Unix/Linux tool that tell you which process is actually having opened file descriptor on a particular path. And the result is:


mds 67 root 21r DIR 26,34 7 4 /Volumes/test


!! mds is SpotLight, so is it the culprit? I am not sure as:


$ mdutil -sav

/:

Indexing enabled.

/.MobileBackups:

No index.

/Volumes/test:

Indexing and searching disabled.

Feb 18, 2013 12:16 AM in response to Linc Davis

This morning I started the Mac, I got once after login the popup. Then for 1h30 no popup. Then it appeared, I closed it, 2 minutes later it was there again, I check the status of TimeMachine, it is running... 2 minutes later I get the popup, again and again. Then it is quiet, no more popup, TimeMachine has finished working in the background.


As said, I don't know if TimeMachine is directly the one requesting the NFS share to be mounted or just triggering another service which does that as soon as it is alive because it was instructed so by another process. But the popup appearance is at least related with TimeMachine activities!

Feb 23, 2013 8:15 AM in response to Huygens-25

Hello Linc,


As said the popup appearance, or more technically the triggering of the NFS mount activity is related to some of TimeMachine activities, probably indirectly but still there is a strong timing correlation between TimeMachine activities and NFS mount activities. But I understand that disabling TimeMachine won't solve my problem, because other processes which I haven't identified yet trigger the same service stack which end up calling the NFS mount.


I tried to get deeper to what is really happening. I've used DTrace for that purpose. A first simple command displaying all file that are opened and by which process did not hint much, but I have found out that before a series of mount_nfs starts, there was a file opened by NetAuthSysAgent /Volumes/test/.autodiskmounted


I did further profiling of NetAuthSysAgent which anyway was already pointed out by "ps -aef" as the parent process of the mount_nfs. The result is the following: https://gist.github.com/jcberthon/93413bee23fbb83698c3

You can find the "interesting part" below with some highlighted terms which shows related actions.


1509/0x1149e: mkdir("/Volumes\0", 0x1FF, 0x0) = -1 Err#17
1509/0x1149e: getattrlist("/Volumes\0", 0x1088C2510, 0x10F0A9D50) = 0 0
1509/0x1149e: mkdir("/Volumes/timemachine\0", 0x1FF, 0x7FF7C3E10089) = 0 0
1509/0x1149e: open("/Volumes/timemachine/.autodiskmounted\0", 0x200, 0x1B6) = 7 0
1509/0x1149e: close(0x7) = 0 0

(...)

1509/0x114b8: stat64("/Library/Preferences/com.apple.security.plist\0", 0x10F12D318, 0x10F12D2D0) = 0 0
1509/0x114b8: open("/Library/Preferences/com.apple.security.plist\0", 0x0, 0x0) = 7 0
1509/0x114b8: lseek(0x7, 0x0, 0x2) = 684 0
1509/0x114b8: lseek(0x7, 0x0, 0x0) = 0 0
1509/0x114b8: read(0x7, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>DLDBSearchList</key>\n\t<array>\n\t\t<dict>\n\ t\t\t<key>DbName</key>\n\t\t\t<string>/Library", 0x2AC) = 684 0
1509/0x114b8: close(0x7) = 0 0

(...)

1509/0x11481: stat64("/System/Library/Frameworks/SystemConfiguration.framework/SystemConfigur ation\0", 0x10F1A3410, 0x3AC) = 0 0
1509/0x11481: stat64("/System/Library/Frameworks/SystemConfiguration.framework/SystemConfigur ation\0", 0x10F1A2460, 0x10F1A3370) = 0 0
1509/0x11481: geteuid(0x7FF7C5903750, 0xA0, 0x7) = 0 0
1509/0x11481: open("/Library/Preferences/SystemConfiguration/preferences.plist\0", 0x0, 0x1A4) = 7 0
1509/0x11481: close(0x7) = 0 0
1509/0x11481: open("/Library/Preferences/SystemConfiguration/preferences.plist\0", 0x0, 0x1A4) = 7 0
1509/0x11481: fstat64(0x7, 0x10F1A3750, 0x0) = 0 0
1509/0x11481: read(0x7, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CurrentSet</key>\n\t<string>/Sets/166D5218-9D0 0-46ED-8A51-AE81D37E8914</string>\n\t", 0x1CDF) = 7391 0
1509/0x11481: close(0x7) = 0 0

(...)

1509/0x114b8: statfs64(0x7FF7C5904708, 0x10F12C0F8, 0xF7A60) = 0 0
1509/0x114b8: __mac_syscall(0x108A008CC, 0x2, 0x10F12C1A8) = 0 0
1509/0x114b8: open("/Library/Keychains/apsd.keychain\0", 0x0, 0x0) = 7 0
1509/0x114b8: fstat64(0x7, 0x10F12C258, 0x0) = 0 0
1509/0x114b8: mmap(0x0, 0xB620, 0x1, 0x2, 0x7, 0x0) = 0xF142000 0
1509/0x114b8: close(0x7) = 0 0
1509/0x114b8: munmap(0x10F142000, 0xB620) = 0 0
1509/0x114b8: geteuid(0x1097D1600, 0x6, 0xF7D80) = 0 0
1509/0x114b8: stat64("/Library/Preferences/com.apple.security.plist\0", 0x10F12D318, 0x10F12D2D0) = 0 0
1509/0x114b8: open("/Library/Preferences/com.apple.security.plist\0", 0x0, 0x0) = 7 0
1509/0x114b8: lseek(0x7, 0x0, 0x2) = 684 0
1509/0x114b8: lseek(0x7, 0x0, 0x0) = 0 0
1509/0x114b8: read(0x7, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>DLDBSearchList</key>\n\t<array>\n\t\t<dict>\n\ t\t\t<key>DbName</key>\n\t\t\t<string>/Library", 0x2AC) = 684 0
1509/0x114b8: close(0x7) = 0 0
1509/0x114b8: statfs64(0x7FF7C5905CF8, 0x10F12C0F8, 0xF6470) = 0 0
1509/0x114b8: __mac_syscall(0x108A008CC, 0x2, 0x10F12C1A8) = 0 0
1509/0x114b8: open("/Library/Keychains/System.keychain\0", 0x0, 0x0) = 7 0
1509/0x114b8: fstat64(0x7, 0x10F12C258, 0x0) = 0 0
1509/0x114b8: mmap(0x0, 0x10AB0, 0x1, 0x2, 0x7, 0x0) = 0xF131000 0
1509/0x114b8: close(0x7) = 0 0
1509/0x114b8: statfs64(0x7FF7C590F138, 0x10F12C0F8, 0xE9A70) = 0 0
1509/0x114b8: __mac_syscall(0x108A008CC, 0x2, 0x10F12C1A8) = 0 0
1509/0x114b8: open("/Library/Keychains/apsd.keychain\0", 0x0, 0x0) = 7 0
1509/0x114b8: fstat64(0x7, 0x10F12C258, 0x0) = 0 0
1509/0x114b8: mmap(0x0, 0xB620, 0x1, 0x2, 0x7, 0x0) = 0xF142000 0
1509/0x114b8: close(0x7) = 0 0
1509/0x114b8: munmap(0x10F131000, 0x10AB0) = 0 0
1509/0x114b8: munmap(0x10F142000, 0xB620) = 0 0
1509/0x114b8: __disable_threadsignal(0x1, 0x0, 0x1073655E0) = 0 0
1509/0x114ba: thread_selfid(0x1088C7278, 0x0, 0xFFFFFFFF) = 70842 0
1509/0x114ba: __disable_threadsignal(0x1, 0x0, 0x1073655E0) = 0 0
1514/0x114bc: issetugid(0x10F0AE000, 0x83000, 0x361B) = 0 0
1509/0x1149e: mount(0x10AD12CBF, 0x10F0A97B0, 0x100000) = 0 0
1509/0x1149e: getfsstat64(0x0, 0x0, 0x2) = 4 0
1509/0x1149e: getfsstat64(0x7FF7C401EC00, 0x21E0, 0x2) = 4 0
1509/0x114b6: thread_selfid(0x1088C7278, 0x0, 0xFFFFFFFF) = 70838 0
1509/0x114b6: __disable_threadsignal(0x1, 0x0, 0x1073655E0) = 0 0
1509/0x11410: bsdthread_create(0x106FE90D1, 0x7FFF58CDFFD8, 0x80000) = 253435904 0
1509/0x11410: bsdthread_create(0x106FE90D1, 0x7FFF58CDFFB8, 0x80000) = 252899328 0
1509/0x114bb: thread_selfid(0x1088C7278, 0x0, 0xFFFFFFFF) = 70843 0
1509/0x114bb: geteuid(0x0, 0x106F37435, 0x8) = 0 0
1509/0x114bb: mkdir("/Volumes\0", 0x1FF, 0x0) = -1 Err#17
1509/0x114bb: getattrlist("/Volumes\0", 0x1088C2510, 0x10F1AFD50) = 0 0
1509/0x114bb: mkdir("/Volumes/test\0", 0x1FF, 0x7FF7C3C16799) = 0 0
1509/0x114bb: open("/Volumes/test/.autodiskmounted\0", 0x200, 0x1B6) = 7 0
1509/0x114bb: close(0x7) = 0 0
1509/0x114bb: posix_spawn(0x10F1B10DC, 0x109720CB8, 0x0) = 0 0
1509/0x11422: kevent(0x3, 0x0, 0x0) = 1 0
1509/0x11410: getuid(0x0, 0x7FFF58CDFC94, 0x0) = 0 0
1509/0x11410: __mac_syscall(0x108A008CC, 0x2, 0x7FFF58CDFB78) = 0 0
1509/0x11410: audit_session_self(0x1103, 0x186A0, 0x7FF7C7002BC0) = 4355 0
1509/0x11410: kevent(0x3, 0x7FFF58CDF948, 0x1) = 1 0
1509/0x11410: kevent(0x3, 0x7FFF58CDFAB8, 0x1) = 1 0
1509/0x11410: proc_info(0x8, 0x5E5, 0x2) = 0 0
1509/0x11410: kevent(0x3, 0x7FFF58CDFFB8, 0x1) = 1 0
1509/0x11410: getuid(0x7FF7C5A05BA0, 0x7FFF58CDFAE0, 0x9) = 0 0
1509/0x11410: lstat64("/System/Library/Filesystems/NetFSPlugins/nfs.bundle\0", 0x7FFF58CDF4D0, 0x1) = 0 0
1509/0x11410: open_nocancel("/System/Library/Filesystems/NetFSPlugins/nfs.bundle\0", 0x1100004, 0x0) = 7 0


One can see that once Time Machine is kicked-in it obviously instruct NetAuthSysAgent to mount the TimeMachine backup volume (see at the beginning the mounting of /Volumes/timemachine). This is maybe not a direct call, it could be automounted because TM tries to access a particular location. But there is a causality relation anyway.

Then several seconds (I forgot to trace the time sorry) after NetAuthSysAgent automount the /Volumes/test which is the NFS share, it forks a new process for the NFS mount (My guess is the posix_spawn call or the open_nocancel call of the nfs.bundle).


I am still far away to find the real root of the problem, but if anyone with DTrace or NetAuthSysAgent knowledge could help me out to see how the latter is instructed to automount the NFS share, I would be extremely greatful!

Temporary NFS mount keep being mounted while server is powered off

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.