Help with Apple filesharing protocol for Time Machine

Hi after going through some documentation on how to set up AFP so I can run a simple timemachine on my WNDR4700
I have found that the guide is very technical.

Can someone help me go through the steps.
I have SSH access.

I hope someone can help me set it up because LEDE is not worth much without being able to easily use it.

Hey @teglgaard

Have you setup your AFP Time Machine server yet? I just finished writing a user guide on the subject. Check-it-out and let us know if you have questions, freeback or constructive criticism.

https://lede-project.org/docs/user-guide/netatalk_configuration

-Mrengles

Hi I have tried with several guides. I am able to mount the filesystems and create the users. When I then try to login it accepts the password but fails the connection. So it states connecting and then right afterwards connection failed. I have never gotten further. I made a vanilla install of LEDE to test it but no luck there.

I followed you while you were writing the guide because the device is useless without. Thanks for spending some time on it, I am sure you help a lot!

Have you tried connecting to the Backup share manually not via Time Machine in System Preferences?

  • command + K ( Finder > Go > Connect to Server...)
  • connected to afp://YOUR-LEDE-IP-ADDRESS
  • select your Time Machine share (the guide ueses "Backups")

Let me know if that works. If it does try the new samba.service code under the Zerconf Advertising section. I had the text records wrong in the first couple revisions.

Keep us posted. Good luck!

Now I have - Connecting through "Connect to Server..." leaves me with a message

"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."

I have run through the guide today on a vanilla install so the zeroconf has been updated. I can confirm that my the Backups directory is set to Users and my created user is a part of that group.

With block info I can confirm the mounting point used in "/etc/afp.conf"

The AFP show up under "Shared" in finder too.

What posix permissions does your /etc/afp.conf file have? Should have the following:

-rw-r--r-- 1 root root 158 Apr 25 20:40 afp.conf

I might need to add step for coorecting from 600 to 644 depending on what you come back with. If the package issues the wrong permissions. I'll need to file a bug and add workaround like:

chmod 644 /etc/afp.conf
chmod 644 /etc/extmap.conf

Hi again! And boom it works! Posix permissions were 600 for both files and as soon as I changed it to 644 for both it started working.

Really great work! Do you need some help from me in versions and so on if you should file a bug?

Please post output of cat /etc/openwrt_release and the netaralk package infro from opkg list-installed.

Off course I can do that! Again, thanks for the help!!!

root@LEDE:/mnt/sdb2# cat /etc/openwrt_release
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r4053-21c2e93'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='apm821xx/nand'
DISTRIB_ARCH='powerpc_464fp'
DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r4053-21c2e93'
DISTRIB_TAINTS='no-all'

AND

root@LEDE:/mnt/sdb2# opkg list-installed
avahi-dbus-daemon - 0.6.32-2
avahi-utils - 0.6.32-2
badblocks - 1.43.4-1
base-files - 172-r4053-21c2e93
block-mount - 2017-03-29-20c16fc5-1
busybox - 1.26.2-4
dbus - 1.10.4-1
ddns-scripts - 2.7.6-14
dnsmasq - 2.77test4-1
dropbear - 2016.74-2
e2fsprogs - 1.43.4-1
firewall - 2017-02-07-1949e0cc-2
fstools - 2017-03-29-20c16fc5-1
fuse-utils - 2.9.7-1
fwtool - 1
glib2 - 2.50.3-1
hostapd-common - 2016-12-19-ad02e79d-2
ip6tables - 1.6.1-1
iptables - 1.6.1-1
iw - 4.9-1
iwinfo - 2016-09-21-fd9e17be-1
jshn - 2017-02-24-96305a3c-1
jsonfilter - 2016-07-02-dea067ad-1
kernel - 4.9.20-1-d4e732577ab4fcd7b8fd9eb602624637
kmod-ath - 4.9.20+2017-01-31-1
kmod-ath9k - 4.9.20+2017-01-31-1
kmod-ath9k-common - 4.9.20+2017-01-31-1
kmod-cfg80211 - 4.9.20+2017-01-31-1
kmod-crypto-aead - 4.9.20-1
kmod-crypto-crc32c - 4.9.20-1
kmod-crypto-hash - 4.9.20-1
kmod-crypto-manager - 4.9.20-1
kmod-crypto-null - 4.9.20-1
kmod-crypto-pcompress - 4.9.20-1
kmod-dm - 4.9.20-1
kmod-fs-ext4 - 4.9.20-1
kmod-fs-hfsplus - 4.9.20-1
kmod-fs-vfat - 4.9.20-1
kmod-fuse - 4.9.20-1
kmod-gpio-button-hotplug - 4.9.20-2
kmod-i2c-core - 4.9.20-1
kmod-ip6tables - 4.9.20-1
kmod-ipt-conntrack - 4.9.20-1
kmod-ipt-core - 4.9.20-1
kmod-ipt-nat - 4.9.20-1
kmod-leds-gpio - 4.9.20-1
kmod-lib-crc-ccitt - 4.9.20-1
kmod-lib-crc16 - 4.9.20-1
kmod-mac80211 - 4.9.20+2017-01-31-1
kmod-md-mod - 4.9.20-1
kmod-nf-conntrack - 4.9.20-1
kmod-nf-conntrack6 - 4.9.20-1
kmod-nf-ipt - 4.9.20-1
kmod-nf-ipt6 - 4.9.20-1
kmod-nf-nat - 4.9.20-1
kmod-nls-base - 4.9.20-1
kmod-nls-cp437 - 4.9.20-1
kmod-nls-iso8859-1 - 4.9.20-1
kmod-nls-iso8859-15 - 4.9.20-1
kmod-nls-utf8 - 4.9.20-1
kmod-ppp - 4.9.20-1
kmod-pppoe - 4.9.20-1
kmod-pppox - 4.9.20-1
kmod-scsi-core - 4.9.20-1
kmod-slhc - 4.9.20-1
kmod-usb-core - 4.9.20-1
kmod-usb-dwc2 - 4.9.20-1
kmod-usb-ledtrig-usbport - 4.9.20-1
kmod-usb-storage - 4.9.20-1
kmod-usb3 - 4.9.20-1
lede-keyring - 2017-01-20-a50b7529-1
libattr - 20160302-1
libavahi-client - 0.6.32-2
libavahi-dbus-support - 0.6.32-2
libblkid - 2.29.2-1
libblobmsg-json - 2017-02-24-96305a3c-1
libc - 1.1.16-1
libdaemon - 0.14-5
libdb47 - 4.7.25.4.NC-5
libdbus - 1.10.4-1
libexpat - 2.2.0-1
libext2fs - 1.43.4-1
libffi - 3.2.1-2
libfuse - 2.9.7-1
libgcc - 5.4.0-1
libgcrypt - 1.6.6-1
libgdbm - 1.11-1
libgpg-error - 1.12-1
libip4tc - 1.6.1-1
libip6tc - 1.6.1-1
libiwinfo - 2016-09-21-fd9e17be-1
libiwinfo-lua - 2016-09-21-fd9e17be-1
libjson-c - 0.12.1-1
libjson-script - 2017-02-24-96305a3c-1
liblua - 5.1.5-1
libncurses - 6.0-1
libnl-tiny - 0.1-5
libopenssl - 1.0.2k-1
libpthread - 1.1.16-1
librpc - 2015-11-04-a921e3de-1
librt - 1.1.16-1
libsmartcols - 2.29.2-1
libubox - 2017-02-24-96305a3c-1
libubus - 2017-02-18-34c6e818-1
libubus-lua - 2017-02-18-34c6e818-1
libuci - 2016-07-04-e1bf4356-1
libuci-lua - 2016-07-04-e1bf4356-1
libuclient - 2016-12-09-52d955fd-1
libuuid - 2.29.2-1
libxml2 - 2.9.4-1
libxtables - 1.6.1-1
logd - 2017-03-03-21a4bd04-1
lua - 5.1.5-1
luci - git-17.119.62808-1497d4a-1
luci-app-ddns - 2.4.8-2
luci-app-firewall - git-17.119.62808-1497d4a-1
luci-base - git-17.119.62808-1497d4a-1
luci-lib-ip - git-17.119.62808-1497d4a-1
luci-lib-jsonc - git-17.119.62808-1497d4a-1
luci-lib-nixio - git-17.119.62808-1497d4a-1
luci-mod-admin-full - git-17.119.62808-1497d4a-1
luci-proto-ipv6 - git-17.119.62808-1497d4a-1
luci-proto-ppp - git-17.119.62808-1497d4a-1
luci-proto-relay - git-17.119.62808-1497d4a-1
luci-theme-bootstrap - git-17.119.62808-1497d4a-1
mtd - 21
nano - 2.7.5-1
netatalk - 3.1.10-1
netifd - 2017-04-12-11cb9cfb-1
odhcp6c - 2017-03-22-0463b057-1
odhcpd - 2017-04-28-9268ca65-1
openssh-sftp-server - 7.5p1-1
opkg - 2017-03-23-1d0263bb-1
partx-utils - 2.29.2-1
ppp - 2.4.7-11
ppp-mod-pppoe - 2.4.7-11
procd - 2017-03-05-8f218f56-1
procd-nand - 2017-03-05-8f218f56-1
relayd - 2016-02-07-ad0b25ad-2
rpcd - 2016-12-03-0577cfc1-1
samba36-server - 3.6.25-5
shadow-common - 4.2.1-6
shadow-groupadd - 4.2.1-6
shadow-groupmod - 4.2.1-6
shadow-useradd - 4.2.1-6
shadow-usermod - 4.2.1-6
sshfs - 2.8-1
swconfig - 11
terminfo - 6.0-1
ubi-utils - 1.5.2-1
ubox - 2017-03-03-21a4bd04-1
ubus - 2017-02-18-34c6e818-1
ubusd - 2017-02-18-34c6e818-1
uci - 2016-07-04-e1bf4356-1
uclient-fetch - 2016-12-09-52d955fd-1
uhttpd - 2016-10-25-1628fa4b-1
uhttpd-mod-ubus - 2016-10-25-1628fa4b-1
usign - 2015-07-04-ef641914-1
wpad-mini - 2016-12-19-ad02e79d-2
zlib - 1.2.11-1

BTW I just switched from ext4 to HFSPlus non-journaled and it also works fine. I did it to be able to mount the drive later on directly.

i know this is a bit old topic but i am having exactly the same issue, and my permissions are correct. here my system:

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r6614-1ef0be3'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r6614-1ef0be3'
DISTRIB_TAINTS=''

and my netatalk version is netatalk - 3.1.11-2. I've followed Mrengles guide twice already on clean installs but still with no luck - i am unable to login to time machine. Is there anything that i am missing?

Thanks!