Rysz Posted September 1, 2023 Share Posted September 1, 2023 (edited) netatalk - AFP for UNRAID (6.10.0 - 7.0.0-beta.2) A plugin that integrates the legacy AFP file sharing protocol into newer UNRAID versions. The Apple Filing Protocol (AFP), formerly AppleTalk Filing Protocol, is a proprietary network protocol, and part of the Apple File Service (AFS), that offers file services for macOS, classic Mac OS, and Apple IIs. In OS X 10.8 Mountain Lion and earlier, AFP was the primary protocol for file services. Netatalk is a freely-available Open Source AFP fileserver, this plugin provides an integration of such a server into UNRAID. How does it work? After installation AFP is disabled by default and waiting for your configuration. All necessary steps to configure and use the plugin are explained in the GUI (Settings ➔ AFP). Please note that this plugin is no longer being maintained and the last supported OS version will be 7.0.0-beta.2. Edited July 21 by Rysz 1 Quote Link to comment
symptomatic-beating8996 Posted September 2, 2023 Share Posted September 2, 2023 Hey There! This is a (in theory) godsend for some stuff I'm working on! That said, when I launch the plugin and configure the share per instructions, and restart the array, I run into issues on the client side. This is both in OS 9 and OS 10.0. Specifically, it asks which volumes I want to mount, and provides no options. My afp.conf file looks like as follows (share name is DerperThought). Quote ; START OF DO NOT CHANGE SECTION [Global] log level = default:warn zeroconf = no vol preset = doNotChange vol dbpath = /mnt/user/system/nafp [doNotChange] cnid scheme = dbd cnid dev = no search db = no unix priv = yes umask = 000 file perm = 666 directory perm = 777 ; END OF DO NOT CHANGE SECTION ; START OF DEFINE USER SHARES HERE SECTION ; [share] ; path = /mnt/user/DerperThought ; time machine = no ; END OF DEFINE USER SHARES HERE SECTION Quote Link to comment
Rysz Posted September 2, 2023 Author Share Posted September 2, 2023 (edited) 9 hours ago, symptomatic-beating8996 said: Hey There! This is a (in theory) godsend for some stuff I'm working on! That said, when I launch the plugin and configure the share per instructions, and restart the array, I run into issues on the client side. This is both in OS 9 and OS 10.0. Specifically, it asks which volumes I want to mount, and provides no options. My afp.conf file looks like as follows (share name is DerperThought). Hey - thanks for testing and writing here! 🙂 You need to remove the ; and space at the beginning of the line, that's only for commenting in the configuration files. So for your share to become enabled the share section needs to look like this: ; START OF DEFINE USER SHARES HERE SECTION [share] path = /mnt/user/DerperThought time machine = no ; END OF DEFINE USER SHARES HERE SECTION The above example would create a share called share linking to /mnt/user/DerperThought You could also (probably easier) name the share DerperThought too, then it'd look like this: ; START OF DEFINE USER SHARES HERE SECTION [DerperThought] path = /mnt/user/DerperThought time machine = no ; END OF DEFINE USER SHARES HERE SECTION Please let me know if it works now, you'll need to restart AFP or better your array for the changes to become active. Edited September 2, 2023 by Rysz Quote Link to comment
symptomatic-beating8996 Posted September 2, 2023 Share Posted September 2, 2023 *facepalm* It's always the obvious thing isnt it You're amazing! Everything is working -swimmingly- and you have no idea how many problems you just solved! 1 Quote Link to comment
FredrikJL Posted September 28, 2023 Share Posted September 28, 2023 Hi! Love this plugin, since the timemachine support for SMB is not really great, depending on how old/new your MacBook is. I'm getting a lot of these in my syslog. facility: daemon appname: afpd level: error ad_header_read_ea("/mnt/user/timemachine-schibsted/{hostname}.sparsebundle/."): invalid metadata EA this is now being treated as a fatal error. if you see this log entry, please file a bug ticket with your upstream vendor and attach the generated core file. They don't seem to intervene with the functionality when running TM-backups, but they sure are annoying as they're level: ERROR and I sometimes get hundreds of them. Ideas? This github issue is potentially provides some clarity on the subject. Invalid metadata EA errors #236 Tl;dr There is one suggestion HERE Quote Site note: One potential workaround is to disable the ad to ea on-the-fly conversion in netatalk3. The afp.conf option is: convert appledouble = no This option worked perfectly for me, I was having issues with my time machine share. Thank you! I have yet to try this suggestion myself, but will update in this thread as I learn more. Quote Link to comment
FredrikJL Posted September 28, 2023 Share Posted September 28, 2023 (edited) 16 minutes ago, FredrikJL said: Hi! Love this plugin, since the timemachine support for SMB is not really great, depending on how old/new your MacBook is. I'm getting a lot of these in my syslog. facility: daemon appname: afpd level: error ad_header_read_ea("/mnt/user/timemachine-schibsted/{hostname}.sparsebundle/."): invalid metadata EA this is now being treated as a fatal error. if you see this log entry, please file a bug ticket with your upstream vendor and attach the generated core file. They don't seem to intervene with the functionality when running TM-backups, but they sure are annoying as they're level: ERROR and I sometimes get hundreds of them. Ideas? This github issue is potentially provides some clarity on the subject. Invalid metadata EA errors #236 Tl;dr There is one suggestion HERE I have yet to try this suggestion myself, but will update in this thread as I learn more. And a quick update on this. Setting the parameter as suggested solved the problem above. [sharename] path = /mnt/user/path time machine = yes valid users = username # THIS IS THE THING! convert appledouble = no Edited September 28, 2023 by FredrikJL 1 Quote Link to comment
Rysz Posted September 28, 2023 Author Share Posted September 28, 2023 55 minutes ago, FredrikJL said: And a quick update on this. Setting the parameter as suggested solved the problem above. [sharename] path = /mnt/user/path time machine = yes valid users = username # THIS IS THE THING! convert appledouble = no Thanks for the information, this is useful and interesting. I'll see if it's worth including in the default configuration and if so if there could be negative consequences. Quote Link to comment
FredrikJL Posted September 29, 2023 Share Posted September 29, 2023 Problem seems to be now that it solves the issue for my older (2016) Macbook, but the problem seems to persist for the new M1 MacBook, for some reason. I'll keep track of it for a bit and tinker a bit more as well. Quote Link to comment
Rysz Posted October 1, 2023 Author Share Posted October 1, 2023 (edited) On 9/29/2023 at 12:20 PM, FredrikJL said: Problem seems to be now that it solves the issue for my older (2016) Macbook, but the problem seems to persist for the new M1 MacBook, for some reason. I'll keep track of it for a bit and tinker a bit more as well. I've just compiled a new package and updated the plugin to use that, which includes the latest netatalk version (3.1.17) where this issue should be fixed regardless of the "convert appledouble" workaround (I suggest attemping to remove that workaround from the configuration now). Please update and let me know if the problem is now resolved for you either with or without the workaround. Edited October 1, 2023 by Rysz 1 Quote Link to comment
FredrikJL Posted October 7, 2023 Share Posted October 7, 2023 On 10/1/2023 at 11:41 AM, Rysz said: I've just compiled a new package and updated the plugin to use that, which includes the latest netatalk version (3.1.17) where this issue should be fixed regardless of the "convert appledouble" workaround (I suggest attemping to remove that workaround from the configuration now). Please update and let me know if the problem is now resolved for you either with or without the workaround. Checking in on this one again. The problem seems to be gone now and haven't appeared for more than a week. Thanks for the update! 1 Quote Link to comment
Flyinace2000 Posted December 8, 2023 Share Posted December 8, 2023 Thanks for the plug in. This makes it WAY easier to get software onto my iBook G3 Clamshell. 1 Quote Link to comment
QuestForTori Posted March 22 Share Posted March 22 Has anyone successfully gotten this working with classic (Pre-OS X) versions of MacOS? I'm trying to get the share to appear on System 7.5.3 but the shares don't appear in Chooser. Quote Link to comment
Rysz Posted March 22 Author Share Posted March 22 Just now, QuestForTori said: Has anyone successfully gotten this working with classic (Pre-OS X) versions of MacOS? I'm trying to get the share to appear on System 7.5.3 but the shares don't appear in Chooser. Can you post a screenshot of your configuration? Quote Link to comment
QuestForTori Posted March 22 Share Posted March 22 (edited) 2 minutes ago, Rysz said: Can you post a screenshot of your configuration? Sure, thank you for the help! When looking in the Chooser, I don't see any servers appear. Edited March 22 by QuestForTori Quote Link to comment
Rysz Posted March 22 Author Share Posted March 22 5 minutes ago, QuestForTori said: Sure, thank you for the help! When looking in the Chooser, I don't see any servers appear. Configuration looks good, I read up a bit on this just now and it looks like there's two versions of the netatalk backend v2 and v3 which offer different compatibility with older OSes. We're currently using the newer v3 which your OS might be too old for. I'll code in a backend switch setting so you can switch between v2 and v3 backends within the plugin in the future, so hopefully that'll work for your OS as well then. I hope to have the update ready this weekend. Quote Link to comment
QuestForTori Posted March 22 Share Posted March 22 Thank you so much, I look forward to it! Quote Link to comment
Rysz Posted March 22 Author Share Posted March 22 (edited) After compiling the package and running some further tests, it's unfortunately not possible to integrate the older backend. The netatalk v2 backend, and in particular the AppleTalk protocol which your OS might theoretically require to communicate, both depend on a legacy kernel module that's not or no longer present in Unraid. Sorry I couldn't be of more help there. 😞 But it does list Mac OS 7.5. as compatible for the newer v3 backend as well, so perhaps just not the automatic service (server) discovery. Is there any option you can connect directly via IP in the "Chooser"? Also check out this guide for your OS version: https://forum.vcfed.org/index.php?threads/accessing-os-x-shares-from-system-7-5-3.5886/ which seems to include the necessary client software for the newer v3 protocol to connect over IP. https://www.macintoshrepository.org/44248-open-transport-1-1-2 Please let me know if that worked for you! Edited March 22 by Rysz Quote Link to comment
iso2024 Posted April 12 Share Posted April 12 I try to set up AFP on an unraid 6.12.8 When I try to save the AFP configuration file I keep getting the message "Configuration Error: /usr/local/emhttp There was an error saving the configuration file." Thanks for your support. Quote Link to comment
Rysz Posted April 12 Author Share Posted April 12 1 hour ago, iso2024 said: I try to set up AFP on an unraid 6.12.8 When I try to save the AFP configuration file I keep getting the message "Configuration Error: /usr/local/emhttp There was an error saving the configuration file." Thanks for your support. Hello, you need to click into this field to pick the configuration file to edit first: Quote Link to comment
iso2024 Posted April 18 Share Posted April 18 Sometimes it’s as simple as that. Thanks for your support. 1 Quote Link to comment
PicPoc Posted June 12 Share Posted June 12 (edited) Thanks you for your App ! To change the name of this AFP server (AFP-NameOfYourUnraidServer), you have to edit : # vi /etc/avahi/services/netatalk.service And change the line : <name replace-wildcards="yes">AFP-%s</name> %s : is the name of your server. Edited June 12 by PicPoc 1 Quote Link to comment
PicPoc Posted August 1 Share Posted August 1 Ootch !!!!!! Damn... I need AFP May be another person will continue this plugin ? I hope... I don't know how this works Quote Link to comment
Rysz Posted 10 hours ago Author Share Posted 10 hours ago Since there seems to be a continued interest in this plugin, I have given this some more thought and will not be deprecating it. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.