68kMLA Classic Interface

This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.

Click here to select a new forum.
Netatalk 2.3.0 available
Posted by: slipperygrey on 2024-02-28 05:04:12
Thank you for letting us know! I’m pleased that it worked out for you in the end.

I went ahead and deleted the “test” image tag. The same docker image is now available as “latest”.
Posted by: Udo.Keller on 2024-02-28 08:52:14
@ironborn65 by popular demand, here it is now on Docker Hub:

https://hub.docker.com/r/netatalk/netatalk2

Please read through the instructions carefully. There are a number of conditions and caveats for getting everything fully working in the container. Give it a whirl and let me know how it goes.
Great news, @slipperygrey.

Maybe some of you experts can help me getting the docker container running un UNRAID? That would be really, really great.

Here is the startup command. Besides the important environment variables, there are some UNRAID-specific ones which can be safely ignored.
Screenshot 2024-02-28 at 17.19.45.png

But the container does not start up successfully. Here is the log:
Screenshot 2024-02-28 at 17.20.17.png

From what I have read, the famous
Address family not supported by protocol
messages indicates the host kernel does not support DDP. Correct?
The reason I'm asking is because @ironborn65 managed to get the docker container running on his Synology, and the Synology kernel seems to have no DDP support either.

Any idea what I did wrong?
Posted by: NJRoadfan on 2024-02-28 11:45:05
"Address Family Not Supported by protocol" means there is no AppleTalk support in the kernel.
Posted by: robin-fo on 2024-02-28 12:07:53
Is there an error in the man page?
-D
    Use DDP (AppleTalk) as transport protocol. (Equivalent to -ddp in afpd.cond.)
But the code appears to disable DDP instead:
case 'D':
    options->transports &= ~AFPTRANS_DDP;
    break;
Posted by: slipperygrey on 2024-02-28 14:44:07
@ironborn65 What makes you say that the Synology NAS doesn’t have AppleTalk support in kernel? The evidence suggests that it does.
Posted by: slipperygrey on 2024-02-28 14:50:52
Is there an error in the man page?
-D
    Use DDP (AppleTalk) as transport protocol. (Equivalent to -ddp in afpd.cond.)
But the code appears to disable DDP instead:
case 'D':
    options->transports &= ~AFPTRANS_DDP;
    break;

@robin-fo Did you confirm how the AFPTRANS_DDP flag is used in the code? Maybe the logic is awkwardly flipped later… In either case, please file an issue ticket. Some kind of improvement is needed here, I agree.
Posted by: robin-fo on 2024-02-28 14:56:01
@robin-fo Did you confirm how the AFPTRANS_DDP flag is used in the code? Maybe the logic is awkwardly flipped later… In either case, please file an issue ticket. Some kind of improvement is needed here, I agree.
I's used as a flag in a bitfield and is not negated:
#ifndef NO_DDP
    /* handle asp transports */
    if ((options->transports & AFPTRANS_DDP) &&
            (config = ASPConfigInit(options, refcount)))
        config->defoptions = defoptions;
#endif /* NO_DDP */
So if the AFPTRANS_DDP bit is set, ASP is initialized and therefore DDP is required.

I'll look that I can open a ticket tomorrow 🙂
Posted by: ironborn65 on 2024-02-29 04:52:56
@ironborn65 What makes you say that the Synology NAS doesn’t have AppleTalk support in kernel? The evidence suggests that it does.

DSM uses Netatalk-3.1.12.
AFP protocol version supported: 2.2 3.0 3.1 3.2 3.3 3.4
Open-source Netatalk removed AppleTalk since Netatalk-3.0, therefore, DSM does not support DDP.

I have the need to install netatalk 2.1

still there is no support for autodiscovery, I have to type in the IP of the server in my macs, not too bad, I can survive with it 😉 .
@slipperygrey I'd be glad to know if there is chance to add autodiscovery, thanks
Posted by: slipperygrey on 2024-02-29 04:59:49
DSM uses Netatalk-3.1.12.
AFP protocol version supported: 2.2 3.0 3.1 3.2 3.3 3.4
Open-source Netatalk removed AppleTalk since Netatalk-3.0, therefore, DSM does not support DDP.

I had to need to install netatalk 2.1

still there is no support for autodiscovery, I have to type in the IP of the server in my macs, not too bad, I can survive with it 😉 .
@slipperygrey I'd be glad to know "how" or "if" to enable the autodiscovery, thanks
We're talking about the capabilities of the Linux kernel itself. You wouldn't haven't been able to launch Netatalk 2 if your NAS didn't have AppleTalk / DDP support in the kernel.
Posted by: ironborn65 on 2024-02-29 05:10:47
I'm not a networking expert, I can only paste the response of a Synology support ticket I opened a while ago

"Thank you for your patience.
DSM uses Netatalk-3.1.12.
AFP protocol version supported: 2.2 3.0 3.1 3.2 3.3 3.4
Open-source Netatalk removed AppleTalk since Netatalk-3.0. Therefore, DSM does not support DDP.
I hope this information helps, and I remain at your disposal for any further questions you may have.
Best regards,"
Posted by: Udo.Keller on 2024-02-29 08:45:21
Therefore, DSM does not support DDP.
This is exactly the information Synology gave to me as well, and therefore I assumed the Synology kernel would not support DDP.
Posted by: davewongillies on 2024-02-29 13:20:59
I'm not a networking expert, I can only paste the response of a Synology support ticket I opened a while ago

"Thank you for your patience.
DSM uses Netatalk-3.1.12.
AFP protocol version supported: 2.2 3.0 3.1 3.2 3.3 3.4
Open-source Netatalk removed AppleTalk since Netatalk-3.0. Therefore, DSM does not support DDP.
I hope this information helps, and I remain at your disposal for any further questions you may have.
Best regards,"

Does synology store the linux kernel in the same place as regular linux distros? If so, if you can get onto the terminal there's two ways to check if appletalk is compiled into the kernel or not.

1. Run grep TALK /boot/config* it might yield something like this:
$ grep -i talk /boot/config-*
/boot/config-5.13.0-39-generic:CONFIG_ATALK=m
/boot/config-5.13.0-39-generic:CONFIG_DEV_APPLETALK=m

2. Run modinfo appletalk and see if it gives you any information
Posted by: slipperygrey on 2024-02-29 21:11:44
This is exactly the information Synology gave to me as well, and therefore I assumed the Synology kernel would not support DDP.
AppleTalk support in kernel has nothing to do with what version of Netatalk the vendor chose to use. You have actually query the kernel for its capabilities like @davewongillies describes.

See also this page on the topic: https://netatalk.io/docs/AppleTalk-Kernel-Module

Or the README in the netatalk source tree: https://github.com/Netatalk/netatalk/blob/branch-netatalk-2-3/doc/README.AppleTalk
Posted by: ironborn65 on 2024-03-01 06:59:24
copy & paste

1709305086235.png

my contribution:

pierino23@nas2:/$ uname -srm
Linux 4.4.180+ x86_64

for Synology DSM 7.1.1-42962 Update 6

dont' ask me what it means 🙂
Posted by: slipperygrey on 2024-03-01 17:16:11
@robin-fo Earlier today I merged a (documentation) fix for the issue that you reported: https://github.com/Netatalk/netatalk/issues/725

Since the default behavior of afpd is "-transall" now (i.e. enable both DDP and TCP) I think it makes sense that the -D and -T switches negate that and act as "-noddp" and "-notcp" respectively. Ergo: no code change, and update the docs.

What do you think?
Posted by: eharmon on 2024-03-01 19:08:39
copy & paste

View attachment 70579

my contribution:

pierino23@nas2:/$ uname -srm
Linux 4.4.180+ x86_64

for Synology DSM 7.1.1-42962 Update 6

dont' ask me what it means 🙂
Yep, when you see "appletalk" in lsmod, it definitely supports DDP for netatalk.
Posted by: robin-fo on 2024-03-02 01:03:10
@robin-fo Earlier today I merged a (documentation) fix for the issue that you reported: https://github.com/Netatalk/netatalk/issues/725

Since the default behavior of afpd is "-transall" now (i.e. enable both DDP and TCP) I think it makes sense that the -D and -T switches negate that and act as "-noddp" and "-notcp" respectively. Ergo: no code change, and update the docs.

What do you think?
Sounds good! Thanks 😃
Posted by: ironborn65 on 2024-03-02 10:17:32
Yep, when you see "appletalk" in lsmod, it definitely supports DDP for netatalk.

good, so does it mean that autodiscovery of afp servers is supposed to work in my Synology? because it does not
Posted by: slipperygrey on 2024-03-03 01:35:28
good, so does it mean that autodiscovery of afp servers is supposed to work in my Synology? because it does not
I wrote a few words on troubleshooting AppleTalk in this article: https://netatalk.io/docs/Connect-to-AFP-Server-from-Mac-clients

Please have a look and see if this can provide any leads.
Posted by: robin-fo on 2024-03-22 10:59:31
Can I log into netatalk-2.3 running on macOS Sonoma using a cleartext password?
< 4 >