Sir FICO
Posts: 35
Joined: Sat Nov 07, 2015 11:34 pm

netatalk for buster does not connect?

Wed Jun 26, 2019 11:35 pm

ive just created a new sd card with the latest buster for my pi4. (and apt-get update/upgrade). As with my other pi,s and desktop raspians, I installed netatalk with ‘apt-get install netatalk’. Sadly with the buster raspian it does not connect. I can see the pi4 in apple finder and can do a connect login, but mac just says not connected. Netatalk is still working ok on stretch pi’s but it appears busted on buster. Has anyone got it to work on buster?

jcarruthers
Posts: 1
Joined: Fri Oct 18, 2013 8:49 pm

Re: netatalk for buster does not connect?

Thu Jun 27, 2019 1:08 pm

I'm having the same issue on a Pi 3

Andyroo

Re: netatalk for buster does not connect?

Thu Jun 27, 2019 6:59 pm

I had problems on Stretch and moved to Samba in the end :cry:

You may do best to open a ticket https://sourceforge.net/p/netatalk/bugs ... s%3Aclosed with the developers.

Add it to the Buster error log thread here as well.

CliffInAuldReekie
Posts: 4
Joined: Thu Nov 08, 2018 11:26 pm

Re: netatalk for buster does not connect?

Sat Jul 13, 2019 6:50 pm

I have the same issue on Buster and no probs in Stretch.

User avatar
Milliways
Posts: 550
Joined: Fri Apr 25, 2014 12:18 am
Location: Sydney, Australia

Re: netatalk for buster does not connect?

Sun Jul 14, 2019 6:43 am

Sir FICO wrote:
Wed Jun 26, 2019 11:35 pm
ive just created a new sd card with the latest buster for my pi4. (and apt-get update/upgrade). As with my other pi,s and desktop raspians, I installed netatalk with ‘apt-get install netatalk’. Sadly with the buster raspian it does not connect. I can see the pi4 in apple finder and can do a connect login, but mac just says not connected. Netatalk is still working ok on stretch pi’s but it appears busted on buster. Has anyone got it to work on buster?
Netatalk in Buster is v3, and seems quite different from the earlier version.

I edited /etc/netatalk/afp.conf to contain

Code: Select all

[Homes]
    basedir regex = /home
and can connect using

Code: Select all

open afp://MilliwaysPi4.local
This gives access to my Home directory, after logging in.

I haven't figured out how to use variable substitution to give more meaningful names.
The setting above mounts on a Volume "pi's home" and Finder shows /home/pi as "pi's home"

Code: Select all

[Homes]
    basedir regex = /home
    home name = $h
Mounts on a Volume identified by hostname and Finder shows /home/pi as "pi's home" - which is pretty useless when connected to multiple Pi.

Code: Select all

[Pi $h]
    path = /home/pi
    home name = $h
Mounts on a Volume identified by hostname and Finder shows /home/pi as Pi hostname.

Sir FICO
Posts: 35
Joined: Sat Nov 07, 2015 11:34 pm

Re: netatalk for buster does not connect?

Mon Oct 07, 2019 10:26 pm

Hey thanks Milliways - I've just got to read your reply of some months back. All I had to do was to edit the file ( sudo nano /etc/netatalk/afp.conf) as you specified, reboot the pi, and my mac finder can now see the pi as it did in stretch. I'm a happy bunny :P

mikedefieslife
Posts: 30
Joined: Sat May 26, 2018 5:31 pm

Re: netatalk for buster does not connect?

Wed Oct 30, 2019 6:59 pm

Mine refuses to connect also.

I have

Code: Select all

[Homes]
    basedir regex = /home
In my afp.conf but it makes not difference at all.

If I try to open afp://hostname or use the ip address I get an error telling me that no shares are available or I'm not allowed to access them on the server.

Login credentials used are the same as those used to login to the pi, or used for ssh and everything else.

I created a directory in /media and gave it 777 permissions and added it to the apf.conf - still not working though. Instead I just get a message in the top left of the finder window saying 'connection failed'

benkitesurfs
Posts: 1
Joined: Wed Jul 03, 2019 5:52 pm

Re: netatalk for buster does not connect?

Tue Nov 19, 2019 8:03 pm

Has anyone made any progress on this? I'm very much a noob, so I'm sure a lot of this is going over my head. I have tried to create a time machine server per these instructions:

https://www.howtogeek.com/276468/how-to ... -your-mac/

Its a little dated, so I had to make some adjustments, but I almost got it working. My netatalk afp.conf file contains the following lines:

Code: Select all

[Global]
   mimic model = TimeCapsule6,106
 [Time Machine]
    path = /media/tm
    time machine = yes
 
When I try to access the Pi via Mac OS (afp://my-ip-address), I'm asked for my credentials - the Time Machine volume then appears to mount, but its not really available (I can't save anything to it, and it doesn't show up as an available volume in my TM setup screen). In my finder sidebar, the volume has the time machine icon, but the volume is just called raspberrypi, not time machine. I'm not sure what's going on, any insight would be appreciated. Thanks!
Attachments
Screen Shot 2019-11-19 at 11.47.36 AM.png
Screen Shot 2019-11-19 at 11.47.36 AM.png (164.15 KiB) Viewed 3506 times

mikedefieslife
Posts: 30
Joined: Sat May 26, 2018 5:31 pm

Re: netatalk for buster does not connect?

Sun Dec 08, 2019 6:38 pm

Has this been resolved yet? I get the same issues with Buster. My Mac cannot login to access any shares on the Pi.

crisillo
Posts: 1
Joined: Sun Dec 08, 2019 8:12 pm

Re: netatalk for buster does not connect?

Sun Dec 08, 2019 8:15 pm

Hi,

I am also affected by this issue. Is there any news regarding this.

Using this once one of my initial goal for getting a Pi

Thanks in advance for any help you may provide

Cheers!

chicagoedist
Authorised Reseller
Authorised Reseller
Posts: 30
Joined: Fri Jul 20, 2018 5:45 pm
Contact: Website Facebook Twitter

Re: netatalk for buster does not connect?

Thu Dec 12, 2019 10:05 pm

We managed to fix this today!

You need to edit /etc/netatalk/afp.conf

In that file, ";" are used to comment out lines.

so, we changed

Code: Select all

;[Homes]
;basedir regex = /home
to:

Code: Select all

[Homes]
basedir regex = /home
And it now works like a charm! By default, the new version of Netatalk allows you to connect to your Pi but then nothing is shared, which throws an error on the client machine. The above change enables /home/{username} to be shared with the client machine (in most cases, /home/pi).

There are many additional configuration customizations that you can learn about in the Netatalk 3.1 documentation. http://netatalk.sourceforge.net/3.1/htm ... ation.html

PS we did a blog post on our site to go over this in a bit more detail: https://chicagodist.com/blogs/news/usin ... pi-and-mac

cudmore
Posts: 5
Joined: Sun Mar 03, 2013 1:14 am

Re: netatalk for buster does not connect?

Sat Dec 14, 2019 4:16 am

Thanks so much for the help here. I was transitioning from Stretch to Buster and could not figure this out. I have many pi's and when I mount them on macOS, they all need easy to use mount point names (the names that appear on my mac desktop). The default AFP name using an apostrophe and a space in a name like 'Pi's home' was useless for me.

I tweaked the comments here and am now using the following in my /etc/netatalk/afp.conf file

[$h]
path = /home
home name = $h

When I mount a Buster Pi via afp://[ip], it appears as a volume on my desktop using the Pi's hostname. I have hostnames that are simple like pi15, pi4, pi12, etc. etc.

Thanks

Return to “Raspberry Pi OS”