[OpenAFS] OpenAFS 1.6.0pre7 and Mac OS 10.7 (Lion) cannot aklog

Derrick Brashear shadow@gmail.com
Mon, 8 Aug 2011 14:03:18 -0400


On Mon, Aug 8, 2011 at 1:56 PM, Kallback-Rose, Kristy A
<kallbac@indiana.edu> wrote:
> Hello,
>
> I am trying to get OpenAFS client working under Lion. I have tried the tr=
icks listed in other posts such as allow_weak_crypto =3D true and directly =
specifying encryption types in the Kerberos config file. However, I still c=
annot get AFS to startup or aklog to work. Kinit works fine.
>
> I should note that a co-worker upgraded to Lion using this version + the =
weak crypto option and all worked fine. I am trying this on 2 test MacBooks=
 with the same results --so I don't think it's on the OpenAFS server side.
>
> Let me know what other details I should provide that might be useful in t=
roubleshooting this.
>
> When I try to start the client I see in the console:
>
> 8/4/11 3:36:37.178 PM System Preferences: Starting up afs
> 8/4/11 3:36:41.284 PM authexec: executing /Library/OpenAFS/Tools/root.cli=
ent/usr/vice/etc/afs.rc
> 8/4/11 3:36:41.359 PM com.apple.kextd: Failed to load /var/db/openafs/etc=
/afs.kext - (libkern/kext) kext (kmod) start/stop routine failed.

you're already lost once you see this.

>
> I feel confident that the allow_weak_crypto =3D true is recognized becaus=
e when I aklog without that in the file I get:
> ~ kallbac$ aklog -d
> Authenticating to cell iu.edu (server rfs1).
> Trying to authenticate to user's realm ADS.IU.EDU.
> Getting tickets: afs/iu.edu@ADS.IU.EDU
> Kerberos error code returned by get_cred : -1765328234
> aklog: Couldn't get iu.edu AFS tickets:
> aklog: unknown RPC error (-1765328234) while getting AFS tickets
>
> --where =A0-1765328234 is -1765328234 =A0 =A0 KRB5_PROG_ETYPE_NOSUPP =A0P=
rogram lacks support for encryption type
>
> while with allow_weak_crypto =A0I get (the rather strange looking)
> ~ kallbac$ aklog -d
> Authenticating to cell iu.edu (server rfs1).
> Trying to authenticate to user's realm ADS.IU.EDU.
> Getting tickets: afs/iu.edu@ADS.IU.EDU
> Using Kerberos V5 ticket natively
> About to resolve name =A0??d?. ??d? to id in cell iu.edu.
> Id 32766
> Set username to =A0??d?. ??d?
> Setting tokens. =A0??d?. ??d? @ iu.edu
> aklog: a pioctl failed while obtaining tokens for cell iu.edu

afs isn't running, so, aklog can't insert tokens

> By running =A0kextutil -v 6 /var/db/openafs/etc/afs.kext as root I get
>
> Kext user-space log filter changed from 0xff2 to 0xfff.
> Kext kernel-space log filter changed from 0xff2 to 0xfff.
> Kext library architecture set to i386.
> Kext library recording diagnostics for: validation authentication depende=
ncies warnings.
> /var/db/openafs/etc/afs.kext appears to be loadable (not including linkag=
e for on-disk libraries).
> Loading /var/db/openafs/etc/afs.kext.
> Reading load info for 4 kexts.
> Reading loaded kext info from kernel.
> (kernel) User-space log flags changed from 0x0 to 0xfff.
> (kernel) Received 'Get Loaded Kext Info' request from user space.
> (kernel) Returning loaded kext info.
> Loaded kext info:
> {
> "com.apple.kpi.mach" =3D {
> =A0"OSBundleWiredSize" =3D 2032
> =A0"CFBundleIdentifier" =3D "com.apple.kpi.mach"
> =A0"OSBundleUUID" =3D <bac1677f 9cad49e7 abef4d6e 6d42c02e>
> =A0"OSBundleLoadAddress" =3D 9646080
> =A0"OSBundleLoadTag" =3D 5
> =A0"OSBundleStarted" =3D true
> =A0"OSBundleCompatibleVersion" =3D "8.0.0d0"
> =A0"OSKernelResource" =3D true
> =A0"CFBundleVersion" =3D "11.0.0"
> =A0"OSBundlePath" =3D
> =A0 =A0 =A0"//System/Library/Extensions/System.kext/PlugIns/Mach.kext"
> =A0"OSBundleRetainCount" =3D 86
> =A0"OSBundlePrelinked" =3D true
> =A0"OSBundleIsInterface" =3D true
> =A0"OSBundleLoadSize" =3D 2032
> }
> "com.apple.kpi.bsd" =3D {
> =A0"OSBundleWiredSize" =3D 23880
> =A0"CFBundleIdentifier" =3D "com.apple.kpi.bsd"
> =A0"OSBundleUUID" =3D <2c050b25 bab14483 92f4bf45 e21665c5>
> =A0"OSBundleLoadAddress" =3D 9719808
> =A0"OSBundleLoadTag" =3D 1
> =A0"OSBundleStarted" =3D true
> =A0"OSBundleCompatibleVersion" =3D "8.0.0b1"
> =A0"OSKernelResource" =3D true
> =A0"CFBundleVersion" =3D "11.0.0"
> =A0"OSBundlePath" =3D
> =A0 =A0 =A0"//System/Library/Extensions/System.kext/PlugIns/BSDKernel.kex=
t"
> =A0"OSBundleRetainCount" =3D 69
> =A0"OSBundlePrelinked" =3D true
> =A0"OSBundleIsInterface" =3D true
> =A0"OSBundleLoadSize" =3D 23880
> }
> "com.apple.kpi.libkern" =3D {
> =A0"OSBundleWiredSize" =3D 36448
> =A0"CFBundleIdentifier" =3D "com.apple.kpi.libkern"
> =A0"OSBundleUUID" =3D <a9ee657f 1f7b45e9 8a1853a0 c2d00bad>
> =A0"OSBundleLoadAddress" =3D 9682944
> =A0"OSBundleLoadTag" =3D 4
> =A0"OSBundleStarted" =3D true
> =A0"OSBundleCompatibleVersion" =3D "8.0.0d0"
> =A0"OSKernelResource" =3D true
> =A0"CFBundleVersion" =3D "11.0.0"
> =A0"OSBundlePath" =3D
> =A0 =A0 =A0"//System/Library/Extensions/System.kext/PlugIns/Libkern.kext"
> =A0"OSBundleRetainCount" =3D 95
> =A0"OSBundlePrelinked" =3D true
> =A0"OSBundleIsInterface" =3D true
> =A0"OSBundleLoadSize" =3D 36448
> }
> }
>
> /System/Library/Extensions/System.kext/PlugIns/Mach.kext (version 11.0, U=
UID BAC1677F-9CAD-49E7-ABEF-4D6E6D42C02E) is loaded.
> /System/Library/Extensions/System.kext/PlugIns/Mach.kext (version 11.0): =
is started.
> setting load address of /System/Library/Extensions/System.kext/PlugIns/Ma=
ch.kext to 0x933000
> /System/Library/Extensions/System.kext/PlugIns/BSDKernel.kext (version 11=
.0, UUID 2C050B25-BAB1-4483-92F4-BF45E21665C5) is loaded.
> /System/Library/Extensions/System.kext/PlugIns/BSDKernel.kext (version 11=
.0): is started.
> setting load address of /System/Library/Extensions/System.kext/PlugIns/BS=
DKernel.kext to 0x945000
> /System/Library/Extensions/System.kext/PlugIns/Libkern.kext (version 11.0=
, UUID A9EE657F-1F7B-45E9-8A18-53A0C2D00BAD) is loaded.
> /System/Library/Extensions/System.kext/PlugIns/Libkern.kext (version 11.0=
): is started.
> setting load address of /System/Library/Extensions/System.kext/PlugIns/Li=
bkern.kext to 0x93c000
> Omitting loaded kext /System/Library/Extensions/System.kext/PlugIns/Mach.=
kext from mkext for kernel load.
> Omitting loaded kext /System/Library/Extensions/System.kext/PlugIns/BSDKe=
rnel.kext from mkext for kernel load.
> Omitting loaded kext /System/Library/Extensions/System.kext/PlugIns/Libke=
rn.kext from mkext for kernel load.
> Adding /var/db/openafs/etc/afs.kext to mkext.
> /var/db/openafs/etc/afs.kext added 1054644-byte noncompressed executable =
to mkext.
> Created mkext for architecture i386 containing 1 kexts.

i386 tells us 32 bit, which is not the default.

> Loading /var/db/openafs/etc/afs.kext.
> (kernel) User-space log flags changed from 0x0 to 0xfff.
> (kernel) Received kext load request from user space.
> (kernel) Received request from user space to load kext org.openafs.filesy=
stems.afs.
> (kernel) Loading kext org.openafs.filesystems.afs.
> (kernel) Kext com.apple.kpi.mach is already loaded.
> (kernel) Kext com.apple.kpi.bsd is already loaded.
> (kernel) Kext com.apple.kpi.libkern is already loaded.
> (kernel) Allocated link buffer for kext org.openafs.filesystems.afs at 0x=
1562000 (851968 bytes).
> (kernel) Kext org.openafs.filesystems.afs executable loaded; 208 pages at=
 0x1562000 (load tag 117).
> (kernel) Kext org.openafs.filesystems.afs calling module start function.
> (kernel) Kext org.openafs.filesystems.afs did not start (return code 0x5)=
.
> (kernel) Kext org.openafs.filesystems.afs start failed (result 0x5).
> (kernel) Kext org.openafs.filesystems.afs failed to load (0xdc008017).
> (kernel) Failed to load kext org.openafs.filesystems.afs (error 0xdc00801=
7).

which sadly isn't that useful, but is the error.

is there a reason you're booting 32 bit?




--=20
Derrick