Cannot get AFP to work at all...

  • root@tubby:~# netatalk -V
    netatalk 3.1.9 - Netatalk AFP server service controller daemon


    This program is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software
    Foundation; either version 2 of the License, or (at your option) any later
    version. Please see the file COPYING for further information and details.


    netatalk has been compiled with support for these features:


    Spotlight support: No


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



    root@tubby:~# cat /lib/systemd/system/netatalk.service
    # This file is part of netatalk 3.1.9.


    [Unit]
    Description=Netatalk AFP fileserver for Macintosh clients
    Documentation=man:afp.conf(5) man:netatalk(8) man:afpd(8) man:cnid_metad(8) man:cnid_dbd(8)
    Documentation=http://netatalk.sourceforge.net/
    After=syslog.target network.target avahi-daemon.service


    [Service]
    Type=forking
    GuessMainPID=no
    ExecStart=/usr/sbin/netatalk
    PIDFile=/var/lock/netatalk
    ExecReload=/bin/kill -HUP $MAINPID
    Restart=always
    RestartSec=1


    [Install]
    WantedBy=multi-user.target

  • The share I created isn't listed in here. It shows in the UI, but does not appear anywhere.


    root@tubby:~# systemctl status netatalk
    netatalk.service - Netatalk AFP fileserver for Macintosh clients
    Loaded: loaded (/lib/systemd/system/netatalk.service; enabled)
    Active: active (running) since Thu 2017-02-09 02:28:51 CST; 1min 14s ago
    Docs: man:afp.conf(5)
    man:netatalk(8)
    man:afpd(8)
    man:cnid_metad(8)
    man:cnid_dbd(8)
    http://netatalk.sourceforge.net/
    Process: 3451 ExecStart=/usr/sbin/netatalk (code=exited, status=0/SUCCESS)
    Main PID: 3453 (netatalk)
    CGroup: /system.slice/netatalk.service
    ├─3453 /usr/sbin/netatalk
    ├─3454 /usr/sbin/afpd -d -F /usr/local/etc/afp.conf
    ├─3455 /usr/sbin/cnid_metad -d -F /usr/local/etc/afp.conf
    ├─3477 /usr/sbin/afpd -d -F /usr/local/etc/afp.conf
    └─3478 /usr/sbin/cnid_dbd -F /usr/local/etc/afp.conf -p /media/e36426e7-0f67-4ca6-91b3-49161bed08f5/TubbyTimeMach...


    Feb 09 02:28:51 tubby systemd[1]: PID file /var/lock/netatalk not readable (yet?) after start.
    Feb 09 02:28:51 tubby systemd[1]: Started Netatalk AFP fileserver for Macintosh clients.
    Feb 09 02:28:51 tubby netatalk[3453]: Netatalk AFP server starting
    Feb 09 02:28:51 tubby netatalk[3453]: Registered with Zeroconf
    Feb 09 02:28:51 tubby cnid_metad[3455]: CNID Server listening on localhost:4700
    Feb 09 02:28:51 tubby afpd[3454]: Netatalk AFP/TCP listening on 192.168.0.5:548
    Feb 09 02:29:20 tubby afpd[3477]: pam_unix(netatalk:session): session opened for user backupuser by (uid=0)
    Feb 09 02:29:20 tubby afpd[3477]: Login by backupuser (AFP3.4)

    • Offizieller Beitrag

    At this point i have no idea how to fix this. I've proved you that you had two versions of netatalk installed. Your colleague that install the binary he probably did it using "make install" leaving no possibility of removal. In general you remove self compiled binaries using "make uninstall" in the source directory. You probably don't know where this src is located.
    My recommendation now is to reinstall from scratch. Otherwise use locate (apt-get install mlocate) to recognize very netatalk file in the rootfs that does not belong to the default netatalk package. The list of files by the package is mentioned above.

  • Okay, I appreciate all your help. I've been wanting to change the RAID level of the array anyway, and this is a good opportunity to do so. I will have to copy the contents somewhere else temporarily as the data is important.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!