[netatalk 3.0] Anybody using this version?

This forum is for all other ARMv5 devices

Re: [netatalk 3.0] Anybody using this version?

Postby chat1410 » Tue Dec 18, 2012 9:02 pm

I installed python2-dbus and upgraded to netatalk 3.0.1-4. No dice, Time Machine still couldn't locate my backup drive. I created /etc/avahi/services/afpd.service and put the below in it.

$this->bbcode_second_pass_code('', '?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=MacBook</txt-record>
</service>
</service-group>
')

After restarting avahi-daemon and netatalk, my Lion installation was able to do a backup. If one makes afpd.service before upgrading you'll get a message asking you to remove it. I suspect installation is supposed to create afpd.service but doesn't for some reason.

To anyone still having issues with netatalk 3.0.1-4, make the above file and you should be all set.
chat1410
 
Posts: 28
Joined: Thu Nov 01, 2012 5:55 pm

Re: [netatalk 3.0] Anybody using this version?

Postby yeehaa » Mon Jan 07, 2013 2:13 am

could you please share your /etc/afp.conf file too? i cannot get my mountain lion to connect to afp share with afp://x.x.x.x .. this is a fresh install.. new timemachine share.. thanks in advance
yeehaa
 
Posts: 43
Joined: Mon May 21, 2012 7:54 pm

Re: [netatalk 3.0] Anybody using this version?

Postby chat1410 » Mon Jan 07, 2013 5:12 am

$this->bbcode_second_pass_quote('yeehaa', 'c')ould you please share your /etc/afp.conf file too? i cannot get my mountain lion to connect to afp share with afp://x.x.x.x .. this is a fresh install.. new timemachine share.. thanks in advance


$this->bbcode_second_pass_code('', ';
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
hostname = PogoPlug
mimic model = TimeCapsule6,106
log level = default:info
log file = /var/log/afpd.log

[Homes]
basedir regex = /home

; [My AFP Volume]
; path = /path/to/volume

[Sam's Time Machine]
path = /media/WD_HDD/Time_Machine
valid users = sam
time machine = yes
vol size limit = 500000
ea = ad

[Matt's HDD]
valid users = matt
path = /media/WD_HDD

[Matt's Time Machine]
path = /media/WD_HDD/Time_Machine
valid users = matt
time machine = yes
vol size limit = 500000
ea = ad

[Movies]
path = /media/Movies
valid users = matt sam
ea = ad

[TV Shows]
path = /media/TV_Shows
valid users = matt sam
ea = ad')
I *think* the mimic model line is back when I was testing things as my Mac sees the PogoPlug as a MacBook, not a Time Capsule. If that's all you need and it works, let us know. Remember, [ man afp.conf ] will pull up the manual that explains all possible configuration options.
chat1410
 
Posts: 28
Joined: Thu Nov 01, 2012 5:55 pm

Re: [netatalk 3.0] Anybody using this version?

Postby yeehaa » Tue Jan 08, 2013 1:50 am

thanks for posting that.. i've cross checked against my settings and cannot figure out why mine wouldn work.

$this->bbcode_second_pass_code('', '[root@alarm ~]# pacman -Ss netatalk
aur/netatalk 3.0.1-4 [installed]
A kernel-level implementation of AFP services
')

$this->bbcode_second_pass_code('', 'Jan 07 20:30:15.496860 netatalk[776] {netatalk.c:280} (N:Default): Netatalk AFP server starting
Jan 07 20:30:32.401444 afpd[777] {status.c:791} (I:AFPDaemon): signature is 18A5A662A2BD9BD5340FA3B7D34150CD
Jan 07 20:30:33.001601 afpd[777] {dsi_tcp.c:400} (I:DSI): dsi_tcp_init: getaddrinfo 'TimeMachine': Name or service not known

Jan 07 20:30:33.008743 afpd[777] {dsi_tcp.c:269} (I:DSI): dsi_tcp: '192.168.1.110:548' on interface 'eth0' will be used instead.
Jan 07 20:30:33.014812 afpd[777] {auth.c:108} (I:AFPDaemon): uam: "DHX2" available
Jan 07 20:30:33.014947 afpd[777] {auth.c:108} (I:AFPDaemon): uam: "DHCAST128" available
Jan 07 20:30:33.015048 afpd[777] {status.c:510} (I:AFPDaemon): servername: TimeMachine
Jan 07 20:30:33.015198 afpd[777] {afp_config.c:109} (N:AFPDaemon): Netatalk AFP/TCP listening on 192.168.1.110:548
Jan 07 20:30:33.021539 afpd[777] {ldap_config.c:90} (I:AFPDaemon): LDAP: not used
')

$this->bbcode_second_pass_code('', '[root@alarm ~]# cat /etc/passwd
...
me:x:1000:100::/home/me:/bin/bash
...')

$this->bbcode_second_pass_code('', '[root@alarm ~]# cat /etc/afp.conf
;
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
mimic model = TimeCapsule6,106
hostname = TimeMachine
log level = default:info
log file = /var/log/afpd.log
hosts allow = 192.168.1.0/24
uam list = uams_dhx.so,uams_dhx2.so
save password = no

; [Homes]
; basedir regex = /xxxx

; [My AFP Volume]
; path = /path/to/volume

[TimeMachine]
path = /mnt/timemachine
valid users = me
time machine = yes
ea = auto
')

$this->bbcode_second_pass_code('', '[root@alarm ~]# cat /etc/avahi/services/afpd.service
?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=MacBook</txt-record>
</service>
</service-group>
')


everything should be working. but mountain lion doesnt have the server in the finder sidebar. Finder>go>connect to the server returns with a server does not exist error. any ideas?
yeehaa
 
Posts: 43
Joined: Mon May 21, 2012 7:54 pm

Re: [netatalk 3.0] Anybody using this version?

Postby chat1410 » Tue Jan 08, 2013 5:59 pm

My log of netatalk starting up:
$this->bbcode_second_pass_code('', 'Jan 08 12:47:56.422226 netatalk[14175] {netatalk.c:280} (N:Default): Netatalk AFP server starting
Jan 08 12:48:03.995420 cnid_metad[14177] {cnid_metad.c:518} (N:AFPDaemon): CNID Server listening on loc
alhost:4700
Jan 08 12:48:09.093854 afpd[14176] {status.c:791} (I:AFPDaemon): signature is 867D0E0F16543A201D302638F
5ED7C59
Jan 08 12:48:09.103984 afpd[14176] {auth.c:108} (I:AFPDaemon): uam: "DHX2" available
Jan 08 12:48:09.104322 afpd[14176] {auth.c:108} (I:AFPDaemon): uam: "DHCAST128" available
Jan 08 12:48:09.104614 afpd[14176] {status.c:510} (I:AFPDaemon): servername: PogoPlug
Jan 08 12:48:09.105064 afpd[14176] {afp_config.c:109} (N:AFPDaemon): Netatalk AFP/TCP listening on 192.
168.1.77:548
Jan 08 12:48:09.105604 afpd[14176] {ldap_config.c:90} (I:AFPDaemon): LDAP: not used
Jan 08 12:48:09.113021 afpd[14176] {cnid.c:54} (I:AFPDaemon): Registering CNID module [last]
Jan 08 12:48:09.113359 afpd[14176] {cnid.c:54} (I:AFPDaemon): Registering CNID module [cdb]
Jan 08 12:48:09.113635 afpd[14176] {cnid.c:54} (I:AFPDaemon): Registering CNID module [dbd]
Jan 08 12:48:09.113899 afpd[14176] {cnid.c:54} (I:AFPDaemon): Registering CNID module [tdb]')
I would guess those dsi_tcp.c errors in your log may mean something (although it seems like it goes into a successful fall-back).

As a strange aside, I migrated my LAN IPs to a different block, 192.168.123.xxx. I thought I caught and corrected all relevant conf files in my PogoPlug, I guess I missed one. Despite apparently listening on 192.168.1.77, Time Machine has been working without issue for me (I use a subnet mask of 255.255.255.0 and ifconfig reports the correct address).
chat1410
 
Posts: 28
Joined: Thu Nov 01, 2012 5:55 pm

Re: [netatalk 3.0] Anybody using this version?

Postby yeehaa » Tue Jan 08, 2013 8:34 pm

from the looks of it the cnid server didnt start up?! i dont know wht to do to get that started up.. since this is a new install its not anything database related. maybe i will wait for 3.0.1-15 which should be out in the next few days as it is up on arch aur already.. thanks for all your help!
yeehaa
 
Posts: 43
Joined: Mon May 21, 2012 7:54 pm

Re: [netatalk 3.0] Anybody using this version?

Postby chat1410 » Sun Jan 13, 2013 1:12 am

I just updated my netatalk to netatalk-3.0.1-15. Ignoring the message about removing the old afpd.service configuration, I restarted netatalk. My Lion installation was unable to perform a Time Machine backup again.

Renaming (or removing) the /etc/avahi/services/afpd.service file and restarting netatalk allowed my Lion installation to perform a Time Machine backup.
Last edited by chat1410 on Mon Jan 14, 2013 1:33 am, edited 1 time in total.
chat1410
 
Posts: 28
Joined: Thu Nov 01, 2012 5:55 pm

Re: [netatalk 3.0] Anybody using this version?

Postby yeehaa » Sun Jan 13, 2013 8:14 am

i renamed the afpd.service file which i had created for "14" and rebooted my goflex home.. now the avahi errors are gone and starts up fine.. but i still cannot connect thro afp to the plug.. i have the exact same settings as before.. everything is loaded and active.. no errors in log.. i'm stumped!
yeehaa
 
Posts: 43
Joined: Mon May 21, 2012 7:54 pm

Re: [netatalk 3.0] Anybody using this version?

Postby apowell656 » Sun Jan 27, 2013 6:55 pm

I was wondering if anyone of you had seen these errors when using netatalk (latest version from the repos and a PogoPlug E02)-

[SOLVED 1/28 - by looking at the small print of the Wiki on updating/changing shares] When logging on:
Something wrong with the volume's CNID DB, using temporary CNID DB instead.Check server messages for details. Switching to read-only mode.

[Still an issue 1/28] When copying from the Finder
The operation can’t be completed because you don’t have permission to modify some items.

--- Copy of afp.conf
$this->bbcode_second_pass_code('', ';
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
mimic model = TimeCapsule6,106
log level = default:warn
log file = /var/log/afpd.log
hosts allow = 192.168.2.0
uam list = uams_dhx.so,uams_dhx2.so
save password = no

; [Homes]
; basedir regex = /xxxx

; [My AFP Volume]
; path = /path/to/volume

[LifeStudio]
path = /media/LIFESTUDIO
valid users = andre')

I do have read access, but not being able to right to the share is what is missing. I had similar problems trying to use SAMBA
Last edited by apowell656 on Mon Jan 28, 2013 11:58 pm, edited 2 times in total.
apowell656
 
Posts: 41
Joined: Fri Jan 25, 2013 1:24 am

Re: [netatalk 3.0] Anybody using this version?

Postby Highvoltag3 » Mon Jan 28, 2013 8:28 pm

$this->bbcode_second_pass_quote('yeehaa', 'i') renamed the afpd.service file which i had created for "14" and rebooted my goflex home.. now the avahi errors are gone and starts up fine.. but i still cannot connect thro afp to the plug.. i have the exact same settings as before.. everything is loaded and active.. no errors in log.. i'm stumped!


I'm on the same boat, can't see the device from the macs so no backup or access to it.

Since the last update pacman removed dbus which I knew was the problem. And I just confirmed it.
Failed to get D-Bus connection: No connection to service manager.

Now I'm checking how to use afpd without dbus will get back to y'all once I get it to work.
Highvoltag3
 
Posts: 45
Joined: Sat Mar 19, 2011 10:28 am

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 12 guests