root@tubby:~# which netatalk
/usr/local/sbin/netatalk
root@tubby:~# which afpd
/usr/local/sbin/afpd
root@tubby:~# which netatalk
/usr/local/sbin/netatalk
root@tubby:~# which afpd
/usr/local/sbin/afpd
Ok what I suspected.
We can try deleting the binaries that are not from the package
I think they are local sbin post here
also
rm /usr/local/sbin/cnid_metad
rm /usr/local/sbin/afpd
rm /usr/local/sbin/netatalk
Reboot
No change.
See if this time netatalk from Omv takes precedence
netatalk -V
Also let's make sure the systemd unit is also correct
cat /lib/systemd/system/netatalk.service
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
Ok. Go to the ui, delete the share add a new one restart the service. See how it goes. Use manual connect cmd+k
If it doesn't work post.
systemctl status netatalk
I suspect there might be more files from the non netatalk package
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)
The problem is somehow netatalk is still loading old conf files. I'll take a look later see if there is a default file that controls the conf locations
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.
Just a follow-up to this thread, re-installing OMV from scratch fixed the netatalk issues I was having. Time Machine volumes and AFP shares are now announced in the OSX sidebar as expected.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!