AFP Sharing Problems on Lion

Status
Not open for further replies.
Joined
Jan 19, 2012
Messages
11
I just set up a FreeNAS 8.0.3 server and am trying to use its AFP (Netatalk) service to access it via a Mac OS X Lion system. I created the ZFS volume, set its permissions to include my user in its owner group (and set group write permissions), created an AFP share with AFP3 and told that share to "allow" @uninet (my group). I have a user on the server named tbutler, matching the user on my Mac.

I can see the server, "Beatrice," in Finder. When I try to login in Finder using "Connect As...," the user "tbutler" and the proper password, I am returned to the main Finder window with the black bar now saying "Connection Failed."

Here's the most recent data from /var/messages on the server, which shows me trying to login both as a "Registered User" and a "Guest":

Jul 30 00:29:07 freenas afpd[8972]: AFP3.3 Login by nobody
Jul 30 00:29:08 freenas afpd[8972]: AFP logout by nobody
Jul 30 00:29:08 freenas afpd[8972]: dsi_stream_read: len:0, unexpected EOF
Jul 30 00:29:08 freenas afpd[8972]: afp_over_dsi: client logged out, terminating DSI session
Jul 30 00:29:08 freenas afpd[8972]: AFP statistics: 0.14 KB read, 0.12 KB written
Jul 30 00:29:14 freenas afpd[8975]: AFP3.3 Login by tbutler
Jul 30 00:29:14 freenas afpd[8975]: AFP logout by tbutler
Jul 30 00:29:14 freenas afpd[8975]: dsi_stream_read: len:0, unexpected EOF
Jul 30 00:29:14 freenas afpd[8975]: afp_over_dsi: client logged out, terminating DSI session
Jul 30 00:29:14 freenas afpd[8975]: AFP statistics: 0.62 KB read, 0.48 KB written
Jul 30 00:29:20 freenas afpd[8978]: AFP3.3 Login by tbutler
Jul 30 00:29:20 freenas afpd[8978]: AFP logout by tbutler
Jul 30 00:29:20 freenas afpd[8978]: dsi_stream_read: len:0, unexpected EOF
Jul 30 00:29:20 freenas afpd[8978]: afp_over_dsi: client logged out, terminating DSI session
Jul 30 00:29:20 freenas afpd[8978]: AFP statistics: 0.62 KB read, 0.48 KB written
Jul 30 00:29:27 freenas afpd[8983]: AFP3.3 Login by nobody

(My clock is clearly not properly set, but be that as it may...)

Any suggestions?

Thanks,
Tim
 

BobCochran

Contributor
Joined
Aug 5, 2011
Messages
184
Mayve Your ZFS Volume Needs World Writable Permissions? No AFP 3.x

Hi Tim,
I started experimenting with FreeNAS and AFP at the time Lion was first released, but I have no deep FreeNAS expertise. In fact I'm going to post a couple questions of my own in a few minutes. However, in the "get started" videos I've seen for FreeNAS 8.x, they all showed permissions on ZFS volumes being set to world writable ("other" has write permissions.) Perhaps this is part of your problem. The errors you are showing from /var/log/messages make me think you are hitting permission problems. Do all the passwords for the tbutler user match exactly?

When you say you created an AFP share with AFP3, do you mean that you checked off a box for "use AFP3 permissions"? I'm not a deep AFP expert.

I also think fixing the date and time on your FreeNAS server is very important. I keep all my network boxes at home carefully set up with the correct date and time. I wonder if AFP is getting confused by the time differences between the FreeNAS server and your Mac of the login attempts. Keeping different network nodes/hosts/servers on the same equivalent time is really important.

Take my advice with a grain of salt, I'm no deep expert....and now to post about my own troubles!

Bob
 

BobCochran

Contributor
Joined
Aug 5, 2011
Messages
184
Hi Tim,

I have one more thought. Probably a bit silly but did you turn on the AFP service in FreeNAS?

Bob
 
Status
Not open for further replies.
Top