Debugging netatalk message "file locked or insufficient rights"

Hey all,

after the rockstor is running for a couple weeks now I run into some Issues with afpd/netatalk.

How can I debug this? I guess it’s something about permissions since my error messages are all about “either file is locked or you have not sufficient rights” etc. (I get the error message on german so not sure how this would translate to english.)

german error message 1:

Die Datei konnte nicht unter "Filename.psd" gespeichert werden, da die Datei gesperrt ist, Sie nicht über die entsprechenden Zugriffsrechte verfügen bzw. ein anderes Programm auf die Datei zugreift. Heben Sie den Schutz der Datei mit Hilfe des Befehls 'Information' im Finder auf, damit Sie die entsprechenden Zugriffsrechte erhalten. Sollte das problem weiterhin bestehen, speichern Sie das Dokument als andere Datei ab bzw. duplizieren Sie es im Finder.

german error message 2:

"filename.indd" kann nicht unter einem neuen Namen gespeichert werden. Die Datei "filename.indd" ist beschädigt (Fehlercode: 1).
```

So far I can do `cat /var/log/messages | grep afpd` and I get f.e. thig (I tried to only paste the relevant stuff):
```
Apr 28 16:22:00 rockstor afpd[12007]: ad_header_read(/mnt2/Gemeinsam/._Anleitungen.txt): malformed AppleDouble

Apr 28 18:03:52 rockstor dbus[2248]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.149" (uid=1001 pid=11907 comm="/usr/sbin/afpd -d -F /etc/netatalk//afp.conf ") interface="org.freedesktop.login1.Manager" member="ReleaseSession" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=2264 comm="/usr/lib/systemd/systemd-logind ")
Apr 28 18:03:52 rockstor dbus-daemon: dbus[2248]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.149" (uid=1001 pid=11907 comm="/usr/sbin/afpd -d -F /etc/netatalk//afp.conf ") interface="org.freedesktop.login1.Manager" member="ReleaseSession" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=2264 comm="/usr/lib/systemd/systemd-logind ")

Apr 29 12:32:57 rockstor afpd[12007]: parse_entries: bogus eid: 9, off: 50, len: 3760
Apr 29 12:32:57 rockstor afpd[12007]: parse_entries: bogus eid: 2, off: 3810, len: 286
```

The rights for the share are set Owner rwx Group rwx All r_x.

Maybe the above log entries aren't related to my issue, anyways and hints on my Error Messages are appreciated :slight_smile:

Thx,
elmcrest

@Flyer Have you seen this before? I’m experiencing something similar on Time Machine Backups

[root@chipnas netatalk]# tail -f /var/log/messages | grep afpd
Oct 18 22:22:13 chipnas afpd[17061]: Login by cpuchip (AFP3.4)
Oct 18 22:22:13 chipnas afpd[2791]: Terminated disconnected child[13545], client rebooted.
Oct 18 22:22:13 chipnas afpd[13545]: Disconnected session terminating

Oct 18 22:25:18 chipnas afpd[17061]: AFP logout by cpuchip
Oct 18 22:25:18 chipnas dbus-daemon: dbus[2487]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.214" (uid=1001 pid=17061 comm="/usr/sbin/afpd -d -F /etc/netatalk//afp.conf ") interface="org.freedesktop.login1.Manager" member="ReleaseSession" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=2473 comm="/usr/lib/systemd/systemd-logind ")
Oct 18 22:25:18 chipnas dbus[2487]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.214" (uid=1001 pid=17061 comm="/usr/sbin/afpd -d -F /etc/netatalk//afp.conf ") interface="org.freedesktop.login1.Manager" member="ReleaseSession" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=2473 comm="/usr/lib/systemd/systemd-logind ")
Oct 18 22:25:18 chipnas afpd[17061]: AFP statistics: 1288.38 KB read, 169040.01 KB written
Oct 18 22:25:18 chipnas afpd[17061]: done

I’m trying to figure out what is going run, I’m running macOS 10.12 I’ve also tracked down that we’re running netatalk 3.1.7 which is almost 2 years old and 3 versions behind. I remember reading update problems · Issue #1053 · rockstor/rockstor-core · GitHub and that some release notes for 3.8-10 that we have to build netatalk and put it in a repo to use for installing netatalk with RockStor. I would love to do the work to get netatalk updated to 3.1.10 but I don’t know quite what all that entails.

:open_mouth:
Hi @Michael_Stufflebeam you’re right about old netatalk version and I think we need @suman - maybe adding it to Rockstor repo

M.