Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Question:

Question: AFP automount - returned error -5019, errno is 89

Hi guys,

For the last couple of hrs. I'm trying to understand what's going on but I've to admit I've completely failed here. Basically, I'm trying to mount a share from CentOS server, running netatalk/afpd, on one of my Macs running Snow Leopard. I can mount the share from the Finder sidebar (the server appears under SHARED) but I can't using terminal (hence, /etc/fstab as well) issuing mount_afp command. This is what I get if I run the command:

+babyface:~ sans$ mount_afp afp://databank:passWord@10.0.1.220/media/exPort/mMusic /Volumes/exMedia/mMusic+
+*mount_afp: AFPMountURL returned error -5019, errno is 89*+

Looking in the /var/log/messages on the \[CentOS] server, I just get this during the mount attempt:

+Aug 20 02:19:21 baba afpd\[23207]: ASIP session:548(5) from 10.0.1.110:49971(7)+
+Aug 20 02:19:21 baba afpd\[22956]: server_child[1] 23207 done+
+Aug 20 02:19:21 baba afpd\[23208]: ASIP session:548(5) from 10.0.1.110:49972(7)+
+Aug 20 02:19:21 baba afpd\[23208]: DHX2 login: databank+
+Aug 20 02:19:22 baba afpd\[23208]: DHX2: logincont2 alive!+
+Aug 20 02:19:22 baba afpd\[23208]: PAM DHX2: PAM Success+
+Aug 20 02:19:22 baba afpd\[23208]: DHX2: PAM Auth OK!+
+Aug 20 02:19:22 baba afpd\[23208]: login databank (uid 999, gid 999) AFP3.1+
+Aug 20 02:19:22 baba afpd\[23208]: logout databank+
+Aug 20 02:19:23 baba afpd\[23208]: 0.60KB read, 0.45KB written+
+Aug 20 02:19:23 baba afpd\[22956]: server_child[1] 23208 done+

The strange thing is: Mounting from TimeCapsule the very same way (even with the same username/password) works but not from the CentOS server.

Does any one know what exactly that error message mean or what I'm missing here? Didn't find any reference to the error number, which can explain the problem I'm having. I really appreciate any help of any kind. Thanks in advance. Cheers!!

Mac OS X (10.6.4)

Posted on

Reply

Page content loaded

Aug 19, 2010 10:45 PM in response to santanu In response to santanu

santanu wrote:
$ mount_afp afp://databank:passWord@10.0.1.220/media/exPort/mMusic /Volumes/exMedia/mMusic


You must use the volume name here, not the path, ie
$ mount_afp afp://databank:passWord@10.0.1.220/mMusic /Volume/exMedia/mMusic

Also the path where you mount must exit before.

Cheers!

Aug 19, 2010 10:45 PM

Reply Helpful

Aug 20, 2010 12:32 AM in response to slowfranklin In response to slowfranklin

Thanks slowfranklin, for the reply. but unfortunately it's still not working.
$ pwd
/Volumes/exMedia/mMusic
$ mount_afp afp://databank:passWord@10.0.1.220/mMusic /Volumes/exMedia/mMusic
mount_afp: AFPMountURL returned error -5019, errno is 89


Also, is it only natatalk specific? I can use the full path when I mount the share from the TimeCapsule without any problem.
This is what I have in the AppleVolumes.default on the server:
+/media/exPort/mMusic mMusic allow:databank cnidscheme:cdb options:usedots,upriv rwlist:databank+


but looks like it's only being used when I mount the share from finder sidebar, in which case it just works fine. Any more ideas? Cheers!!

Message was edited by: santanu

Aug 20, 2010 12:32 AM

Reply Helpful

Aug 20, 2010 12:41 AM in response to santanu In response to santanu

santanu wrote:
Thanks slowfranklin, for the reply. but unfortunately it's still not working.
$ pwd
/Volumes/exMedia/mMusic
$ mount_afp afp://databank:passWord@10.0.1.220/mMusic /Volumes/exMedia/mMusic
mount_afp: AFPMountURL returned error -5019, errno is 89


Also, is it only natatalk specific? I can use the full path when I mount the share from the TimeCapsule without any problem.


No. cf man mount_afp. Eventually mount_afp does some magic in case you specify a path instead of just the volume name and silently drops all path components but the last one.

This is what I have in the AppleVolumes.default on the server:
+/media/exPort/mMusic mMusic allow:databank cnidscheme:cdb options:usedots,upriv rwlist:databank+


but looks like it's only being used when I mount the share from finder sidebar, in which case it just works fine. Any more ideas? Cheers!!


I'd setup Netatalk debug logging and/or look into a network trace.

Cheers!

Aug 20, 2010 12:41 AM

Reply Helpful

Aug 20, 2010 2:02 AM in response to slowfranklin In response to slowfranklin

slowfranklin wrote:

I'd setup Netatalk debug logging and/or look into a network trace.


I don't seem to setup the debug log; I have this in the afpd.conf
- -tcp -uamlist uams clrtxt.so,uams_dhx.so,uamsdhx2.so -nosavepassword -advertise_ssh -setuplog "logger log_maxdebug /var/log/netatalk-logger.log"

But I don't see the log after restarting. I'm using Netatalk v2.0.5 - I've no other option to use any thing higer that that on CentOS. Cheers!!

Aug 20, 2010 2:02 AM

Reply Helpful

Aug 20, 2010 2:30 AM in response to santanu In response to santanu

santanu wrote:
slowfranklin wrote:

I'd setup Netatalk debug logging and/or look into a network trace.


I don't seem to setup the debug log; I have this in the afpd.conf
- -tcp -uamlist uams clrtxt.so,uams_dhx.so,uamsdhx2.so -nosavepassword -advertise_ssh -setuplog "logger log_maxdebug /var/log/netatalk-logger.log"


2.0.x required special compilation in order to be able to log to a seperate file instead of syslog. Afair in order to get the debug logging to syslog working specify -setuplog "logger log_maxdebug" in afpd.conf and adjust the syslog deamon facility loglevel accordingly (in syslog.conf).

But I don't see the log after restarting. I'm using Netatalk v2.0.5 - I've no other option to use any thing higer that that on CentOS.


You can compile 2.13 from source. On CentOS this will require compiling BerkeleyDB from source as well (which is a nobrainer), because 2.1.x depend on dbd >= 4.6 and CentOS only has ridiculously old db versions in its repos.

Cheers!

Aug 20, 2010 2:30 AM

Reply Helpful

Aug 20, 2010 3:47 PM in response to slowfranklin In response to slowfranklin

slowfranklin wrote:
You can compile 2.13 from source. On CentOS this will require compiling BerkeleyDB from source as well (which is a nobrainer), because 2.1.x depend on dbd >= 4.6 and CentOS only has ridiculously old db versions in its repos.

I tried that too but that didn't make it any better than worse. First of all, "source installation" is not a very idea for Package based systems and even if installs (after installing the latest db4) authentication part never works. All the the time I get "invalid username/password" error on the Mac. Cheers!!

Aug 20, 2010 3:47 PM

Reply Helpful

Aug 21, 2010 2:20 AM in response to santanu In response to santanu

santanu wrote:
slowfranklin wrote:
You can compile 2.13 from source. On CentOS this will require compiling BerkeleyDB from source as well (which is a nobrainer), because 2.1.x depend on dbd >= 4.6 and CentOS only has ridiculously old db versions in its repos.

I tried that too but that didn't make it any better than worse. First of all, "source installation" is not a very idea for Package based systems ...


Duh! Sell that to the FreeBSD or Gentoo guys.

and even if installs (after installing the latest db4) authentication part never works. All the the time I get "invalid username/password" error on the Mac.


You need to pay attention to what configure has to say. You very likely missed to compile the neccessary UAMs due to missing OpenSSL and/or libgcrypt header files.

Cheers!

Aug 21, 2010 2:20 AM

Reply Helpful

Aug 21, 2010 6:45 AM in response to slowfranklin In response to slowfranklin

slowfranklin wrote:
You need to pay attention to what configure has to say. You very likely missed to compile the neccessary UAMs due to missing OpenSSL and/or libgcrypt header files.


http://netatalk.sourceforge.net/2.1/htmldocs/installation.html#id2213811
http://netatalk.sourceforge.net/2.1/htmldocs/configuration.html#authentication

Cheers!

Aug 21, 2010 6:45 AM

Reply Helpful
User profile for user: santanu

Question: AFP automount - returned error -5019, errno is 89