You are not logged in.

#1 2016-08-15 23:10:35

dratos97391
Member
Registered: 2016-08-04
Posts: 8

OSX can't connect to AFS TimeMachine

Hi,

I installed netatalk via AUR, and my arch linux box pops up on my OSX 10.8.5 Lion, but when I want to add my afp://arch.local or afp://10.0.0.74 I get the following message after filling in username and password for the user "osx":
"There are no shares available or you are not allowed to access them on the server. Please contact your system administrator to resolve the problem"

The shares I have are not specialmounted, but just ordinary folders with the following rights:
drwxrwxr-x  2 osxbackup osxbackup  4096 15 aug 23.42 osxbackup

No errors can be found after starting the avahi and netatalk services in the logs or systemd.

my afpd.log on info level shows the following:

Aug 16 00:53:52.319326 afpd[6922] {dsi_tcp.c:241} (info:DSI): AFP/TCP session from 10.0.0.15:50250
Aug 16 00:53:52.320795 afpd[6912] {main.c:149} (info:AFPDaemon): child[6921]: exited 4
Aug 16 00:53:52.321705 afpd[6912] {main.c:151} (info:AFPDaemon): child[6922]: done
Aug 16 00:53:52.343157 afpd[6923] {dsi_tcp.c:241} (info:DSI): AFP/TCP session from 10.0.0.15:50251
Aug 16 00:53:52.344422 afpd[6923] {uams_dhx2_pam.c:329} (info:UAMS): DHX2 login: osxbackup
Aug 16 00:53:57.383016 afpd[6923] {uams_dhx2_pam.c:214} (info:UAMS): PAM DHX2: PAM Success
Aug 16 00:53:57.395062 afpd[6923] {uams_dhx2_pam.c:709} (info:UAMS): DHX2: PAM Auth OK!
Aug 16 00:53:57.395116 afpd[6923] {auth.c:235} (note:AFPDaemon): Login by osxbackup (AFP3.4)
Aug 16 00:54:03.854491 cnid_metad[6913] {cnid_metad.c:138} (note:AFPDaemon): shutting down on SIGTERM
Aug 16 00:54:03.854950 afpd[6912] {main.c:105} (note:AFPDaemon): AFP Server shutting down
Aug 16 00:54:03.855487 netatalk[6911] {netatalk.c:158} (info:AFPDaemon): Exiting on SIGTERM
Aug 16 00:54:03.855529 netatalk[6911] {netatalk.c:220} (info:Default): child[6912]: done
Aug 16 00:54:03.855543 netatalk[6911] {netatalk.c:220} (info:Default): child[6913]: done
Aug 16 00:54:03.855555 netatalk[6911] {netatalk.c:521} (note:AFPDaemon): Netatalk AFP server exiting
Aug 16 00:54:03.856256 afpd[6923] {afp_dsi.c:108} (note:AFPDaemon): AFP statistics: 0.57 KB read, 0.45 KB
 written

$netatalk -V 

                                                                            
netatalk 3.1.9 - Netatalk AFP server service controller daemon

     Spotlight support: No

                  afpd: /usr/bin/afpd
            cnid_metad: /usr/bin/cnid_metad
              afp.conf: /etc/afp.conf
    netatalk lock file: /var/lock/netatalk

$afpd -V

afpd 3.1.9 - Apple Filing Protocol (AFP) daemon of Netatalk
....
          AFP versions: 2.2 3.0 3.1 3.2 3.3 3.4 
         CNID backends: cdb dbd last tdb 
      Zeroconf support: Avahi
  TCP wrappers support: No
         Quota support: Yes
   Admin group support: Yes
    Valid shell checks: Yes
      cracklib support: Yes
            EA support: ad | sys
           ACL support: Yes
          LDAP support: Yes
         D-Bus support: Yes
     Spotlight support: No
         DTrace probes: No

              afp.conf: /etc/afp.conf
           extmap.conf: /etc/extmap.conf
       state directory: /var/state/netatalk/
    afp_signature.conf: /var/state/netatalk/afp_signature.conf
      afp_voluuid.conf: /var/state/netatalk/afp_voluuid.conf
       UAM search path: /usr/lib/netatalk//
  Server messages path: /var/state/netatalk/msg/

/etc/afp.conf

[Global]
; Global server settings
 mimic model = TimeCapsule6,106
 log level = default:info
 log file = /var/log/afpd.log
 hosts allow = 10.0.0.0/16

; [Homes]
basedir regex = /home


; [TimeMachine]
path = /backup/osxbackup
valid users = osxbackup
vol size limit = 50000
time machine = yes

; [Test]
path = /home/osxbackup
valid users = osxbackup

avahi-browse -alr on ANOTHER ubuntu machine on the same network:

+  wlan2 IPv6 xyz                                           _device-info._tcp    local
+  wlan2 IPv4 xyz                                           _device-info._tcp    local
+  wlan2 IPv6 xyz                                           Apple File Sharing   local
+  wlan2 IPv4 xyz                                           Apple File Sharing   local
=  wlan2 IPv4 xyz                                           Apple File Sharing   local
   hostname = [xyz.local]
   address = [10.0.0.74]
   port = [548]
   txt = []
=  wlan2 IPv4 xyz                                           _device-info._tcp    local
   hostname = [xyz.local]
   address = [10.0.0.74]
   port = [0]
   txt = ["model=TimeCapsule6,106"]
=  wlan2 IPv6 xyz                                           Apple File Sharing   local
   hostname = [xyz.local]
   address = [fff::7277:b8f9:41a:ac6b]
   port = [548]
   txt = []
=  wlan2 IPv6 xyz                                           _device-info._tcp    local
   hostname = [xyz.local]
   address = [fff::7277:b8f9:41a:ac6b]
   port = [0]
   txt = ["model=TimeCapsule6,106"]

Last edited by dratos97391 (2016-08-20 18:01:05)

Offline

#2 2016-08-20 18:00:42

dratos97391
Member
Registered: 2016-08-04
Posts: 8

Re: OSX can't connect to AFS TimeMachine

bump!

Offline

#3 2016-08-27 07:38:46

dratos97391
Member
Registered: 2016-08-04
Posts: 8

Re: OSX can't connect to AFS TimeMachine

no one managed to get AFS to work?

Offline

#4 2016-08-27 13:54:23

Morn
Member
Registered: 2012-09-02
Posts: 628

Re: OSX can't connect to AFS TimeMachine

Netatalk did not work for me either when I tried it about a week ago. I could enter a username and password in the OS X Finder but the connection then failed without any error messages.

I simply reversed things and activated AFS file sharing on the Mac and connected from Linux with Nautilus without problems.

Offline

#5 2017-06-27 08:56:01

dratos97391
Member
Registered: 2016-08-04
Posts: 8

Re: OSX can't connect to AFS TimeMachine

Oh I see, but someone must have gotten it working since it is has such an extensive wiki page hmm

Offline

#6 2017-08-25 08:49:14

khouli
Member
Registered: 2014-12-14
Posts: 70

Re: OSX can't connect to AFS TimeMachine

I used to have Netatalk working but recently it broke. Right now my installed netatalk trys to load a version of libevent that isn't on my system (I never did a partial update). If I try to reinstall Netatalk, it fails to link due to what appears to be a problem with Netatalk's own build system.

This doesn't solve your problem but I thought you might want to know that other folks who have had this working in the past currently do not.

Offline

#7 2021-01-06 16:17:37

0andriy
Member
Registered: 2021-01-06
Posts: 1

Re: OSX can't connect to AFS TimeMachine

You need to uncomment section names as well AFAIU the syntax of afp.conf.

Offline

Board footer

Powered by FluxBB