Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 03-12-2007, 02:00 AM   #1
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
AFP Mounting Breaks After Updates

I updated my 10.4.8 MacBook Pro with a bunch of the latest Apple OS updates. A lot of them concerned wireless networking; others were the new QuickTime and iTunes.

After updating, I connect remotely mount AFP servers. Another Mac can remotely mount them, so the server itself is not the problem (I could connect to this server before the update).

Also, I tried creating a new user account locally and logging in. That produced the same error, no it is not a userspace problem.

When I use the Finder to mount the AFP volume, I get Error code -35, "The operation cannot be completed because one or more required items cannot be found."

Using the terminal:

sudo mkdir /Volumes/user
sudo mount afp afp://user@machine/user /Volume/user

mount_afp: the mount flags are 0000 the altflags are 0020
mount: /Volumes/user: Segmentation fault

I have pasted in the AFP crash log below from mount_afp.crash.log , but I have no idea how to read it. Can anyone help?



**********

Host Name: jeremy-foxs-computer
Date/Time: 2007-03-12 00:57:34.431 -0500
OS Version: 10.4.8 (Build 8N1037)
Report Version: 4

Command: mount_afp
Path: /sbin/mount_afp
Parent: mount [341]

Version: ??? (???)

PID: 342
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0xb1deab44

Thread 0 Crashed:
0 libstdc++.6.dylib 0x90b3fd2a __cxa_get_globals + 324
1 libstdc++.6.dylib 0x90b4042a __gxx_personality_v0 + 658
2 libgcc_s.1.dylib 0x90bd4acb _Unwind_RaiseException + 147
3 libstdc++.6.dylib 0x90b40747 __cxa_throw + 87
4 edu.mit.Kerberos 0x94b611f4 CCIContextDataMachIPCStub::OpenCCache(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 314
5 edu.mit.Kerberos 0x94b60f9a CCEContext::OpenCCache(cc_context_d*, char const*, cc_ccache_d**) + 160
6 edu.mit.Kerberos 0x94b60d1a cc_open + 64
7 edu.mit.Kerberos 0x94b60bb2 krb5_stdcc_resolve + 182
8 edu.mit.Kerberos 0x94b607bd krb5_cc_default + 49
9 edu.mit.Kerberos 0x94b60611 __KLGetSystemDefaultCCache + 202
10 edu.mit.Kerberos 0x94b5f9ed KLCacheHasValidTickets + 173
11 com.apple.AppleShareClientCore 0x973d957a KerberosTGTPresent() + 86
12 com.apple.AppleShareClientCore 0x973d8f84 SharedVolumeEnumerator::FetchVolumeList() + 298
13 com.apple.AppleShareClientCore 0x973d8e09 SharedVolumeEnumerator::Count(unsigned char*, unsigned long*) + 111
14 com.apple.AppleShareClientCore 0x973ecf27 AFPMountURL + 831
15 mount_afp 0x00002b61 0x1000 + 7009
16 mount_afp 0x0000238e 0x1000 + 5006
17 mount_afp 0x000022b5 0x1000 + 4789

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x90b406fd ecx: 0xbfffe5cc edx: 0xa4b595a0
edi: 0xb1deab44 esi: 0xa4b595a0 ebp: 0xbfffe538 esp: 0xbfffe500
ss: 0x0000001f efl: 0x00010246 eip: 0x90b3fd2a cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037

Binary Images Description:
0x1000 - 0x2fff mount_afp /sbin/mount_afp
0x8fe00000 - 0x8fe49fff dyld 46.9 /usr/lib/dyld
0x90000000 - 0x9016ffff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x901bf000 - 0x901c1fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x90809000 - 0x908d1fff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x9090f000 - 0x9090ffff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90911000 - 0x90a04fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a54000 - 0x90ad3fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90afc000 - 0x90b60fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x90bcf000 - 0x90bd6fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x90bdb000 - 0x90c4efff com.apple.framework.IOKit 1.4.6 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c63000 - 0x90c75fff libauto.dylib /usr/lib/libauto.dylib
0x90c7b000 - 0x90f21fff com.apple.CoreServices.CarbonCore 682.16 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90f64000 - 0x90fccfff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x91005000 - 0x91043fff com.apple.CFNetwork 129.19 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x91056000 - 0x91066fff com.apple.WebServices 1.1.3 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x91071000 - 0x910f0fff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x9112a000 - 0x91148fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x91154000 - 0x91162fff libz.1.dylib /usr/lib/libz.1.dylib
0x91165000 - 0x91304fff com.apple.security 4.5.2 (29774) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x91402000 - 0x9140afff com.apple.DiskArbitration 2.1.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x91411000 - 0x91437fff com.apple.SystemConfiguration 1.8.6 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x92b01000 - 0x92b0bfff com.apple.framework.AppleTalk 1.2.0 (???) /System/Library/Frameworks/AppleTalk.framework/Versions/A/AppleTalk
0x94987000 - 0x949a4fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
0x94b4f000 - 0x94c27fff edu.mit.Kerberos 5.5.23 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x9601f000 - 0x96035fff libJapaneseConverter.dylib /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
0x973d2000 - 0x97411fff com.apple.AppleShareClientCore 1.5.1 /System/Library/Frameworks/AppleShareClientCore.framework/Versions/A/AppleShareClientCore
talkitron is offline   Reply With Quote
Old 03-12-2007, 02:39 PM   #2
giskard22
Moderator
 
Join Date: May 2003
Posts: 4,272
Download and install the 10.4.8 Combo updater for Intel. It's somewhere at http://www.apple.com/support/downloads/
giskard22 is offline   Reply With Quote
Old 03-13-2007, 02:05 AM   #3
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
Quote:
Originally Posted by giskard22
Download and install the 10.4.8 Combo updater for Intel. It's somewhere at http://www.apple.com/support/downloads/

Unfortunately, I have a new Mac Book Pro Core 2 Duo, and the 10.4.8 Intel combo updater will not install on my machine.
talkitron is offline   Reply With Quote
Old 03-13-2007, 09:21 AM   #4
mpmoray
Prospect
 
Join Date: Mar 2007
Posts: 2
I have the same problem as talkitron.

The SMB protocol won't let me connect to the external drives of my mac mini from my laptop. It does let me mount one volume. It is really uncool without AFP.

I don't have the talent to figure this out on my own; I looked in the System Preferences and was unable to come up with any ideas. I'm sure willing to try a manual solution (learned the unix that i do know from trying to configure gentoo stage one installs).

Thanks all!

mp
mpmoray is offline   Reply With Quote
Old 03-13-2007, 09:40 AM   #5
mpmoray
Prospect
 
Join Date: Mar 2007
Posts: 2
Unhappy

I downloaded and installed the 10.4.8 combo update (all 290 megs) and, sadly, there's no AFP.

Is there a way to uninstall updates?

mp
mpmoray is offline   Reply With Quote
Old 03-13-2007, 09:40 AM   #6
tlarkin
League Commissioner
 
Join Date: Mar 2003
Location: Bay Area, CA
Posts: 11,352
well there are a few things you can try here....

1) If you have another macbook pro lying around you can target mode boot the problematic one with the other and use the cp command to copy over some of those frame works and what not and over write them with known good copies. Though it looks like the problem is the kernel can't access things in memory, or it is erroring out when doing so...

2) Run fsck -fy in single user mode or in disk utility and see if it can not fix anything.

3) Try third party apps like diskwarrior.


You can also look through your system log for anything relating to afp under /var/log/system.log. You may want to search through that stuff and try maybe something like this

Code:
cat /var/log/system.log | grep afp
See all the specific errors that come up with AFP, you can also try to browse through the logs for the other things in your AFP error log to see if anything may be causing the problem.

Go into your ~/Library/Preferences and delete all the com.apple.Appleshareclient.plist or any plist that may refer to the afp client.

Does this problem persist in a brand new user account?
tlarkin is offline   Reply With Quote
Old 03-13-2007, 12:44 PM   #7
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
OP Poster Here

I'm the original poster. I did repair the disk using Disk Utility, but the changes were so minor I didn't feel, technically, that they were likely to get AFP working again.

I ended up reinstalling the OS from the 10.4.8 disks that came with my MacBook Pro. When I was creating the first account as part of startup, I used my old user name and password. Somewhat amazingly, after the reinstall my account was exactly as before and all of the applications I had installed just worked, and even the Apple software updates (iTunes 7.1 for example) were still installed.

Amazing.
talkitron is offline   Reply With Quote
Old 03-13-2007, 01:19 PM   #8
tlarkin
League Commissioner
 
Join Date: Mar 2003
Location: Bay Area, CA
Posts: 11,352
Quote:
Originally Posted by talkitron
I'm the original poster. I did repair the disk using Disk Utility, but the changes were so minor I didn't feel, technically, that they were likely to get AFP working again.

I ended up reinstalling the OS from the 10.4.8 disks that came with my MacBook Pro. When I was creating the first account as part of startup, I used my old user name and password. Somewhat amazingly, after the reinstall my account was exactly as before and all of the applications I had installed just worked, and even the Apple software updates (iTunes 7.1 for example) were still installed.

Amazing.

sounds like you did an archive and install off the OS X install disc
tlarkin is offline   Reply With Quote
Old 03-17-2007, 07:31 PM   #9
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
Uggh, the problem is back. After upgrading to 10.4.9, I could not hold a wireless connection because of a problem with the System Keychain.

I followed a hint on MacOS X Hints to junk and recreate the system keychain. That allowed me to resolve the wireless problem.

But now the AFP problem is back, and more importantly now the old error code -35: "...one or more required items cannot be found" is reappearing when I try to mount an AFP drive that worked a few hours ago before the update.

Reapplying the combo updater does not fix the AFP issue. I cannot upgrade my old OS back to 10.4.8. I guess I will have to do an archive and install, again if I did it the first time.

Updates, damn you.
talkitron is offline   Reply With Quote
Old 03-17-2007, 09:47 PM   #10
giskard22
Moderator
 
Join Date: May 2003
Posts: 4,272
How are you trying to mount the volume? By double-clicking an alias? Try using the Connect To Server dialog to explicitly enter the server address. If that works, delete your existing alias and make a new one.
giskard22 is offline   Reply With Quote
Old 03-17-2007, 11:07 PM   #11
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
I was using the "Connect to Server" dialog box in the Finder.
talkitron is offline   Reply With Quote
Old 03-18-2007, 02:10 AM   #12
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
I spent about six hours to fix this. After installing 10.4.8 from disk, I reinstalled the 10.4.9 combo updater, only to find the wireless problems and AFP issues.

I reinstalled Mac OS 10.4.8, then reinstalled the patches other than 10.4.9. As before, patching the 10.4.8 causes AFP issues. Again as the first time, I reinstalled 10.4.8 from disk (the third time today!) and now everything works well, just like I had it before the application of the 10.4.9.

Not surprisingly, in the absence of a technical answer as to what is going wrong, I am really gunshy about applying the 10.4.9 patch. One thought is to skip more patches until 10.5 is released, then to wipe the computer and start over.
talkitron is offline   Reply With Quote
Old 03-20-2007, 03:36 PM   #13
hz_mac
Prospect
 
Join Date: Mar 2007
Posts: 2
The afp protocol has been broken in the last two Apple updates, at least on Intel machines. The problem is in the kerberos framework, which is a library of code used not only in afp but also in ssh if you use the default level 2 instead of specifying level 1. It is annoying that Apple hasn't apparently dealt with this.

Anyway, the fix is to replace the kerberos framework with one that is old enough to not have the broken code. I downloaded the 10.4.8 Intel combo updater file from Apple- this version works.

Then you need a program that can extract and replace individual modules from the updater package. A good shareware tool for this is Pacifist, which you can find by googling the name. Run Pacifist, extract the zipped file called Archive.pax.gz, and un-gzip it. You can find the acrhive in the updater file because it is so large, and will be obvious in the Pacifist window.

Then use Pacifist to select and reinstall just the Kerberos.framework (see Pacifist instructions, but it's just point and click stuff). This will replace the library and afp and ssh will both come back to life.

Incidentally, save both Pacifist and the combo updater archive file as I have had to do exactly the same thing for two updates now. It will likely happen next time too.

Last edited by hz_mac; 03-21-2007 at 12:58 PM.
hz_mac is offline   Reply With Quote
Old 03-21-2007, 12:17 AM   #14
giskard22
Moderator
 
Join Date: May 2003
Posts: 4,272
Maybe it's because I don't use secure AFP connections, but I'm using 10.4.8 on a Mac Pro and Kerberos is working great for me.
giskard22 is offline   Reply With Quote
Old 03-21-2007, 12:57 PM   #15
hz_mac
Prospect
 
Join Date: Mar 2007
Posts: 2
afp error -35 on intel macs

The original 10.4.8 update seems to have the working code in it, that's why I used the combo updater file. That's probably why your machine works. I first noticed the problem in a security update to this package, and had to fix it with Pacifist. All was well until the 10.4.9 update, which broke it again.

If you have access to a machine that allows ssh connections, you can test your system by typing "ssh machine.ip.address.orname" in a terminal window. To make sure you are using ssh level 2, try "ssh -2 machine.ip.address.orname." ssh will generate a segmentation fault if you have the broken kerberos library.

If not, connecting to an apple server using afp will give a -35 error after a timeout if your software is hosed.

Anyway, the problem is fixable but it's a pain to have to do this each time. And if Apple makes more modifications to its networking software then replacing the kerberos framework with the older version could really break the networking setup.
hz_mac is offline   Reply With Quote
Old 03-23-2007, 07:01 PM   #16
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
Thanks for the detailed explanation about the Kerberos problems, hz_mac. When I get a block of time where I could reinstall everything if Kerberos is not the issue, I will try your solution.

Thanks a bunch!
talkitron is offline   Reply With Quote
Old 04-03-2007, 11:34 PM   #17
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
OP here, the problem has returned without me knowingly installing any updates. I am still on 10.4.8; the problem showed up after waking the computer from sleep.

I am going to try the Kerberos fix. I will keep everyone updated.

Arghh!
talkitron is offline   Reply With Quote
Old 04-03-2007, 11:38 PM   #18
talkitron
Prospect
 
Join Date: Mar 2007
Posts: 15
Now that I think about it, my Kerberos works fine in ssh. If I type

ssh -2 machinename

I can remotely log in fine. Same goes for version 1 of ssh.
talkitron is offline   Reply With Quote
Old 04-04-2007, 07:31 AM   #19
AgentsSka
Prospect
 
Join Date: Aug 2004
Posts: 28
I have a similar problem.

Mine occurred when we updated to 10.4.9. I am using an ethernet connection.

I, also, can SSH into the machines fine... simply can't connect via AFP.
AgentsSka is offline   Reply With Quote
Old 04-04-2007, 09:03 AM   #20
tlarkin
League Commissioner
 
Join Date: Mar 2003
Location: Bay Area, CA
Posts: 11,352
is the error over wireless? The 2007-02 airport update botched lots of third party support as well with wifi connections.
tlarkin is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.