|
* TinkerDifferent *
Retro Computing Community |
| Home | Forums | What's New | Search | Settings |
| Netatalk 4.0 - Future-proofing Apple File Sharing |
|
scj312 Tinkerer -------- Joined: Oct 29, 2021 Posts: 74 Likes: 87 |
Mar 2, 2025 - #101
Liked by rdmark |
|
scj312 Tinkerer -------- Joined: Oct 29, 2021 Posts: 74 Likes: 87 |
Mar 3, 2025 - #102
1. The container still has network access (I can ping both inside and outside of the network via docker exec) 2. In this state, I cannot see Netatalk via AppleTalk 3. My modern Mac which has an AFP share already mounted is not interrupted. I can continue to browse and open files on the share. However, I can't see the listing of shares in the Finder to open a new one. 4. I see multiple instances of afpd when running ps aux in the container:
FWIW, the only change I have made to my Netatalk setup recently has been to add some additional shares, but I haven't made any other changes (well, other than upgrading the container the other day). Here is my config: https://gist.github.com/dremin/5deaffb336828b0e9283ca7aa5fe90e3 |
|
rdmark Moderator -------- Joined: Oct 3, 2021 Posts: 196 Likes: 260 |
Mar 4, 2025 - #103
Could you try ejecting the connected AFP mount from the modern Mac, and then try connecting again to netatalk in the container through the Connect to Server dialog: Press Cmd+K in Finder and connect to "afp://ip-address-of-docker-host"
It would also be interesting if you could run "nbplkup" inside the container, while an old Mac is also running and connected to the network. This would tell us to what extent AppleTalk routing is working. Do you remember which netatalk version you were running before, which was stable? What host OS are you running this container on? |
|
scj312 Tinkerer -------- Joined: Oct 29, 2021 Posts: 74 Likes: 87 |
Mar 6, 2025 - #104
Connecting via IP address did not work in the failed state. nbplkup in the failed state can still see my jrouter instance running on another host, I forgot to go turn on a Mac: For versions, 4.0.4 was stable until it wasn't--that's the version I was on when I originally posted about the issue. However, it had been very stable for me until recently. The docker host is running Ubuntu Server 20.04.3 and Docker 20.10.21.
|
|
scj312 Tinkerer -------- Joined: Oct 29, 2021 Posts: 74 Likes: 87 |
Mar 12, 2025 - #105
Alright, it failed again and this time I remembered to turn on some more Macs! Here is the nbplkup result within the container. I also ran some pings to IPs both on and off the subnet. It looks like everything is fine from a network perspective, so the errors from Netatalk are a bit puzzling.
|
|
rdmark Moderator -------- Joined: Oct 3, 2021 Posts: 196 Likes: 260 |
Mar 16, 2025 - #106
@scj312 Agreed that this is highly puzzling. Have you tried to do what the logs earlier suggested: define an explicit "afp listen" or "afp interfaces" in afp.conf (override with MANUAL_CONFIG plus a bind mount with a custom afp.conf)
Beyond that, what I'd suggest is to enable debug logging for netatalk and see if that gives us a hint exactly what's going on internally. |
|
rdmark Moderator -------- Joined: Oct 3, 2021 Posts: 196 Likes: 260 |
Mar 16, 2025 - #107
quick poll: of you netatalk users here, is anyone relying on the "include = /path/to/extra_afp.conf" directive in afp.conf?
For context, this is a directive that allows you to dynamically load and nest a secondary afp.conf file. However this relied on local hacks to the iniparser library. I am on the fence whether to discard this feature, or reimplement it. |
|
scj312 Tinkerer -------- Joined: Oct 29, 2021 Posts: 74 Likes: 87 |
Mar 23, 2025 - #108
Liked by rdmark |
|
scj312 Tinkerer -------- Joined: Oct 29, 2021 Posts: 74 Likes: 87 |
Apr 4, 2025 - #109
@rdmark I went to update my Docker container to 4.2.0, but noticed that version is not available on Docker Hub; the latest is 4.1.2. Thought you might like to know in case something broke :)
|
|
rdmark Moderator -------- Joined: Oct 3, 2021 Posts: 196 Likes: 260 |
Apr 4, 2025 - #110
@scj312 Yeah, I've been too busy with my day job to properly test 4.2.0 running in the Docker container. I don't want to inadvertently destroy anyone's deployment. [grimacing-face]
In 4.2.0, I completely rewrote the entry point script in POSIX compliant shell script to remove the bash dependency (for size and security.) Plus all the other potentially breaking changes that we made to 4.2.0. Anyways, thanks for your interest and attention! I promise to get to it soon. Liked by scj312 |
|
rdmark Moderator -------- Joined: Oct 3, 2021 Posts: 196 Likes: 260 |
Apr 4, 2025 - #111
@scj312 a 4.2.0 container image has been pushed to Docker Hub. Please check it out and let me know if it works out for you!
Liked by scj312 |
|
scj312 Tinkerer -------- Joined: Oct 29, 2021 Posts: 74 Likes: 87 |
Apr 4, 2025 - #112
Liked by rdmark |
|
bribri New Tinkerer -------- Joined: Jun 28, 2024 Posts: 22 Likes: 9 |
Apr 7, 2025 - #113
I've got an issue maybe someone here can help with!
I'm trying to set up an AFP share in modern macOS that I connect to from Mac OS 7.5, and I want the contents of this share to be able to be added to a git repo. Since git doesn't handle extended attributes at all, I'm trying to set up the share to use AppleDouble metadata files for resource forks and such. However, if I specify "ea = ad" for the volume in afp.conf, it doesn't have any effect. No matter what I put there, it always uses extended attributes. Is there any way to force it to use AppleDouble files? |
|
rdmark Moderator -------- Joined: Oct 3, 2021 Posts: 196 Likes: 260 |
Apr 7, 2025 - #114
@bribri What version of netatalk are you running? Would you be able to share the rest of your afp.conf?
You are using the correct option for forcing appledouble dot files so there must be an error elsewhere. |
|
joevt Tinkerer -------- Joined: Mar 5, 2023 Posts: 218 Likes: 85 |
Apr 7, 2025 - #115
- Conversion between Mac Roman and UTF-8. Git doesn't like Mac Roman and CodeWarrior doesn't like UTF-8. - Conversion between CR and LF. Git requires LF for proper diffs and merging. CodeWarrior can handle LF but SimpleText and MPW maybe not? - Conversion between extended attributes and Apple double. CodeWarrior needs type/creator codes for default compilers. Also, they make opening files in classic macOS easier. |
|
bribri New Tinkerer -------- Joined: Jun 28, 2024 Posts: 22 Likes: 9 |
Apr 7, 2025 - #116
I'm using netatalk 4.2.0. Here's my afp.conf file:
The code is being edited with VSCode and compiled with Retro68, so it's already got LF line endings. All the files are ASCII too, so currently I'm side-stepping the encoding issue. I want to see if I can track a CodeWarrior project in the repo just because I like the idea of keeping the codebase compatible with at least one classic mac compiler, even if I'm mainly targeting retro68. And yes, CodeWarrior can deal with LF line endings. At this time I'm not planning on targeting MPW or anything else that might require CR. My goal is to be able to mount my codebase into a classic mac using AFP so that it can directly access the actual files on my modern mac that I'm working with, but still have a functional CodeWarrior project (along with any other classic mac files) that has its mac metadata and resource fork preserved in a way that git can track. (Not a big deal if they're opaque binary files. I'm never going to merge these.) I thought about doing a conversion, perhaps using git hooks, but I just think it'd be much cleaner and easier if the files could be read and written in a way git can handle straight from the get go. |
|
bribri New Tinkerer -------- Joined: Jun 28, 2024 Posts: 22 Likes: 9 |
Apr 7, 2025 - #117
I just noticed some more unusual or buggy behavior. These are all happening on an emulated system in BasiliskII running System 7.5.3 with AppleShare 3.7.2 and Open Transport 1.1.2.
1. The AFP volumes I'm mounting list all files as being 27.9 MB. 2. The first time I mount a volume the extension mapping works and files have a correct type and creator code. However, when I close the Finder window containing these files and reopen it, their type and creator codes get reset to blank. If I examine the files on the host OS, I can see that they now have a "com.apple.FinderInfo" xattr. If I remove that xattr, then the extension mapping starts working again. edit: The bug affects a real mac running System 7.5.5 as well. |
|
scj312 Tinkerer -------- Joined: Oct 29, 2021 Posts: 74 Likes: 87 |
Apr 8, 2025 - #118
@rdmark Unfortunately, I seem to be stuck in a restart loop once again:
I'll increase log levels so that next time we have something more useful to work with.
Liked by rdmark |
|
rdmark Moderator -------- Joined: Oct 3, 2021 Posts: 196 Likes: 260 |
Apr 8, 2025 - #119
For number 1, enabling "legacy volume size" in afp.conf should make file size calculations work on older clients. Number 2 is a bug I haven't encountered myself, so some more context would be needed to reproduce & debug. Can I ask you to file a bug ticket in GitHub? |
|
bribri New Tinkerer -------- Joined: Jun 28, 2024 Posts: 22 Likes: 9 |
Apr 8, 2025 - #120
I tried adding "legacy volume size = yes" to my volume, and it had no effect. :cry: Could there be a broader issue with certain settings not being used? I created a GitHub issue for #2, and I think I found a way to consistently trigger it which I describe in the report. |
| << First | < Prev | Page 6 of 8 | Next > | Last >> |
| Home | Forums | What's New | Search | Bookmarks | RSS | Original | Settings |
| XenForo Retro Proxy by TinkerDifferent.com |