CLOSED: Timemachine backups with Amahi

dforbes
Posts: 37
Joined: Tue Jan 12, 2010 3:48 pm

Re: Timemachine backups with Amahi

Postby dforbes » Fri Oct 07, 2011 4:16 pm

All,

First, apologies for the delay. Some real-world matters have kept me away from Amahi lately. The first draft of the promised wiki page is here:

http://wiki.amahi.org/index.php/Amahi_Time_Machine

I'll try to improve on that over the next couple of days.

For those that are curious, "Amahi Time Machine" is just netatalk with a configuration that "works out of the box" with Amahi.

DF

dforbes
Posts: 37
Joined: Tue Jan 12, 2010 3:48 pm

Re: Timemachine backups with Amahi

Postby dforbes » Fri Oct 07, 2011 4:20 pm

For those that are using the app. How does it store the backup file? isit a sparsebundle or the normal timemachine backup?
Apple's Time Machine software creates a sparsebundle when backing up over a network (I understand it even does this if you have an Apple Time Capsule). The sparsebundle is just a disk image, within which the Time Machine backup resides as though it were on e.g. a local USB drive.

However, unlike the manual recipe on the wiki, the configuration that the Amahi app creates means that you don't have to manually create the sparsebundle, your Apple machine will do it for you, transparently.

DF

hemminger
Posts: 20
Joined: Tue Oct 11, 2011 10:16 am

Re: Timemachine backups with Amahi

Postby hemminger » Tue Oct 11, 2011 10:20 am

I installed the app on my HDA and my wifes laptop is running OSX Snow Leopard. When I try to enable time machine her laptop doesn't see the time machine server. Is there something with user accounts on the client and server having to match or firewall issues that need ports open on either client or server? I just can't figure it out. Thanks for the help.

dforbes
Posts: 37
Joined: Tue Jan 12, 2010 3:48 pm

Re: Timemachine backups with Amahi

Postby dforbes » Sat Oct 15, 2011 4:01 pm

Hi,

There are several things to consider to work this one out. I'm assuming that both your HDA and the laptop in question are connected to the same domestic network in a simple arrangement. (if your network is more complex, pls post more info.)

1. If you open the Finder (rather than time machine) on the laptop, can you see a server listed called 'Amahi' (should have an icon that looks like an apple time capsule)?

2. have you installed/configured a firewall on your HDA?

3. Have you previously followed the wiki instructions regarding manually configuring netatalk? Or anything else that relies on the avahi daemon?

Don't worry about user accounts for the moment; once the laptop can 'see' the share, you will be prompted to login. Similarly, unless you've configured something bespoke on the laptop, there shouldn't be any issues with the firewall there.

DF

hemminger
Posts: 20
Joined: Tue Oct 11, 2011 10:16 am

Re: Timemachine backups with Amahi

Postby hemminger » Tue Oct 18, 2011 1:10 pm

Network is a simple setup. Default install with the express CD of amahi. The only thing I did edit was the netatalk file to limit the HDD space for time machine, and did it according to the wikki. I tried uninstalling the amahi time machine and when reinstalled, it showed up on the laptop. After I re-edited the netatalk file again it disapeared. end of line in AppleVolumes.default appears as "rwlist:@users options:tm volsizelimit:200000".

Currently in finder under network I only see the amahi shares PC, not the time capsule. Only saw it before editing the AppleVolumes.default file.

dforbes
Posts: 37
Joined: Tue Jan 12, 2010 3:48 pm

Re: Timemachine backups with Amahi

Postby dforbes » Wed Oct 19, 2011 12:56 pm

Ok, thanks. It sounds like somewhere along the way, afpd is throwing a wobbly at the amended AppleVolumes.default and therefore not registering the share with avahi. Could you post or fpaste /var/log/afpd.log for me?

DF

hemminger
Posts: 20
Joined: Tue Oct 11, 2011 10:16 am

Re: Timemachine backups with Amahi

Postby hemminger » Wed Oct 19, 2011 6:31 pm

Oct 09 19:55:57.779375 afpd[12383] {status.c:707} (I:AFPDaemon): "Amahi"'s signature is 00C3DA18F327C90799BD9EEDC7EC88F1
Oct 09 19:55:57.781817 afpd[12383] {dsi_tcp.c:387} (I:DSI): dsi_tcp_init: getaddrinfo 'amahi': No address associated with hostname

Oct 09 19:55:57.781942 afpd[12383] {dsi_tcp.c:260} (I:DSI): dsi_tcp: '192.168.1.10:548' on interface 'eth0' will be used instead.
Oct 09 19:55:57.781974 afpd[12383] {afp_config.c:372} (N:AFPDaemon): AFP/TCP started, advertising 192.168.1.10:548 (2.2.0)
Oct 09 19:55:59.292048 afpd[12383] {auth.c:148} (I:AFPDaemon): uam: "DHX2" available
Oct 09 19:55:59.292097 afpd[12383] {auth.c:148} (I:AFPDaemon): uam: "DHCAST128" available
Oct 09 19:55:59.292192 afpd[12383] {ldap_config.c:144} (I:AFPDaemon): afp_ldap.conf: not used
Oct 09 19:55:59.301761 afpd[12383] {afp_avahi.c:81} (I:AFPDaemon): Registering volume 'Time Machine' with UUID: 'CAAAC8EA-EBA5-0935-E624-7C3C39B87375' for TimeMachine
Oct 09 19:55:59.301845 afpd[12383] {afp_avahi.c:116} (I:AFPDaemon): Registering server 'Amahi' with with Bonjour
Oct 09 19:55:59.325110 afpd[12383] {afp_avahi.c:332} (I:AFPDaemon): Successfully started avahi loop.
Oct 09 19:55:59.325261 afpd[12383] {cnid.c:53} (I:AFPDaemon): Registering CNID module [last]
Oct 09 19:55:59.325288 afpd[12383] {cnid.c:53} (I:AFPDaemon): Registering CNID module [dbd]
Oct 09 19:55:59.325309 afpd[12383] {cnid.c:53} (I:AFPDaemon): Registering CNID module [tdb]
Oct 09 21:24:06.356695 afpd[12383] {afp_avahi.c:254} (E:AFPDaemon): Failed to contact server: Daemon not running
Oct 09 21:26:25.855060 afpd[3529] {status.c:707} (I:AFPDaemon): "Amahi"'s signature is 00C3DA18F327C90799BD9EEDC7EC88F1
Oct 09 21:26:25.862781 afpd[3529] {dsi_tcp.c:387} (I:DSI): dsi_tcp_init: getaddrinfo 'amahi': No address associated with hostname

Oct 09 21:26:25.862905 afpd[3529] {dsi_tcp.c:260} (I:DSI): dsi_tcp: '192.168.1.10:548' on interface 'eth0' will be used instead.
Oct 09 21:26:25.862934 afpd[3529] {afp_config.c:372} (N:AFPDaemon): AFP/TCP started, advertising 192.168.1.10:548 (2.2.0)
Oct 09 21:26:26.329705 afpd[3529] {auth.c:148} (I:AFPDaemon): uam: "DHX2" available
Oct 09 21:26:26.329790 afpd[3529] {auth.c:148} (I:AFPDaemon): uam: "DHCAST128" available
Oct 09 21:26:26.336394 afpd[3529] {ldap_config.c:144} (I:AFPDaemon): afp_ldap.conf: not used
Oct 09 21:26:26.397131 afpd[3529] {afp_avahi.c:81} (I:AFPDaemon): Registering volume 'Time Machine' with UUID: 'CAAAC8EA-EBA5-0935-E624-7C3C39B87375' for TimeMachine
Oct 09 21:26:26.397190 afpd[3529] {afp_avahi.c:116} (I:AFPDaemon): Registering server 'Amahi' with with Bonjour
Oct 09 21:26:26.399241 afpd[3529] {afp_avahi.c:332} (I:AFPDaemon): Successfully started avahi loop.
Oct 09 21:26:26.399320 afpd[3529] {cnid.c:53} (I:AFPDaemon): Registering CNID module [last]
Oct 09 21:26:26.399339 afpd[3529] {cnid.c:53} (I:AFPDaemon): Registering CNID module [dbd]
Oct 09 21:26:26.399362 afpd[3529] {cnid.c:53} (I:AFPDaemon): Registering CNID module [tdb]
Oct 11 12:10:26.574486 afpd[3529] {main.c:127} (N:AFPDaemon): AFP Server shutting down on SIGTERM
Oct 11 12:10:40.270056 afpd[7443] {status.c:707} (I:AFPDaemon): "Amahi"'s signature is 00C3DA18F327C90799BD9EEDC7EC88F1
Oct 11 12:10:40.593658 afpd[7443] {dsi_tcp.c:387} (I:DSI): dsi_tcp_init: getaddrinfo 'amahi': No address associated with hostname

Oct 11 12:10:40.593794 afpd[7443] {dsi_tcp.c:260} (I:DSI): dsi_tcp: '192.168.1.10:548' on interface 'eth0' will be used instead.
Oct 11 12:10:40.593826 afpd[7443] {afp_config.c:372} (N:AFPDaemon): AFP/TCP started, advertising 192.168.1.10:548 (2.2.0)
Oct 11 12:10:41.540457 afpd[7443] {auth.c:148} (I:AFPDaemon): uam: "DHX2" available
Oct 11 12:10:41.540523 afpd[7443] {auth.c:148} (I:AFPDaemon): uam: "DHCAST128" available
Oct 11 12:10:41.605315 afpd[7443] {ldap_config.c:144} (I:AFPDaemon): afp_ldap.conf: not used
Oct 11 12:10:42.516322 afpd[7443] {afp_avahi.c:81} (I:AFPDaemon): Registering volume 'Time Machine' with UUID: 'CAAAC8EA-EBA5-0935-E624-7C3C39B87375' for TimeMachine
Oct 11 12:10:42.516424 afpd[7443] {afp_avahi.c:116} (I:AFPDaemon): Registering server 'Amahi' with with Bonjour
Oct 11 12:10:42.551608 afpd[7443] {afp_avahi.c:332} (I:AFPDaemon): Successfully started avahi loop.
Oct 11 12:10:42.588436 afpd[7443] {cnid.c:53} (I:AFPDaemon): Registering CNID module [last]
Oct 11 12:10:42.588504 afpd[7443] {cnid.c:53} (I:AFPDaemon): Registering CNID module [dbd]
Oct 11 12:10:42.588524 afpd[7443] {cnid.c:53} (I:AFPDaemon): Registering CNID module [tdb]
Oct 12 05:05:47.005477 afpd[7443] {main.c:127} (N:AFPDaemon): AFP Server shutting down on SIGTERM
Oct 12 19:16:04.847409 afpd[27570] {status.c:707} (I:AFPDaemon): "Amahi"'s signature is 00C3DA18F327C90799BD9EEDC7EC88F1
Oct 12 19:16:05.432023 afpd[27570] {dsi_tcp.c:387} (I:DSI): dsi_tcp_init: getaddrinfo 'amahi': No address associated with hostname

Oct 12 19:16:05.432182 afpd[27570] {dsi_tcp.c:260} (I:DSI): dsi_tcp: '192.168.1.10:548' on interface 'eth0' will be used instead.
Oct 12 19:16:05.432235 afpd[27570] {afp_config.c:372} (N:AFPDaemon): AFP/TCP started, advertising 192.168.1.10:548 (2.2.0)
Oct 12 19:16:06.680858 afpd[27570] {auth.c:148} (I:AFPDaemon): uam: "DHX2" available
Oct 12 19:16:06.680934 afpd[27570] {auth.c:148} (I:AFPDaemon): uam: "DHCAST128" available
Oct 12 19:16:06.720734 afpd[27570] {ldap_config.c:144} (I:AFPDaemon): afp_ldap.conf: not used
Oct 12 19:16:07.393663 afpd[27570] {afp_avahi.c:81} (I:AFPDaemon): Registering volume 'Time Machine' with UUID: 'CAAAC8EA-EBA5-0935-E624-7C3C39B87375' for TimeMachine
Oct 12 19:16:07.393736 afpd[27570] {afp_avahi.c:116} (I:AFPDaemon): Registering server 'Amahi' with with Bonjour
Oct 12 19:16:07.482217 afpd[27570] {afp_avahi.c:332} (I:AFPDaemon): Successfully started avahi loop.
Oct 12 19:16:07.482339 afpd[27570] {cnid.c:53} (I:AFPDaemon): Registering CNID module [last]
Oct 12 19:16:07.482366 afpd[27570] {cnid.c:53} (I:AFPDaemon): Registering CNID module [dbd]
Oct 12 19:16:07.482387 afpd[27570] {cnid.c:53} (I:AFPDaemon): Registering CNID module [tdb]
Oct 15 11:10:08.216698 afpd[14555] {dsi_tcp.c:212} (I:DSI): AFP/TCP session from 192.168.1.107:51460
Oct 15 11:10:08.720767 afpd[27570] {main.c:183} (I:AFPDaemon): child[14553]: exited 1
Oct 15 11:10:08.720956 afpd[27570] {main.c:185} (I:AFPDaemon): child[14555]: done
Oct 15 11:10:11.171625 afpd[27570] {main.c:183} (I:AFPDaemon): child[14601]: exited 1
Oct 15 11:10:11.171202 afpd[14602] {dsi_tcp.c:212} (I:DSI): AFP/TCP session from 192.168.1.107:51463
Oct 15 11:10:11.178137 afpd[27570] {main.c:185} (I:AFPDaemon): child[14602]: done
Oct 15 11:10:29.805765 afpd[14695] {dsi_tcp.c:212} (I:DSI): AFP/TCP session from 192.168.1.107:51464
Oct 15 11:10:29.861470 afpd[14695] {uams_dhx2_pam.c:321} (I:UAMS): DHX2 login: jhemminger
Oct 15 11:10:30.137049 afpd[14695] {uams_dhx2_pam.c:210} (I:UAMS): PAM DHX2: PAM Success
Oct 15 11:10:30.184789 afpd[14695] {uams_dhx2_pam.c:653} (I:UAMS): DHX2: PAM Auth OK!
Oct 15 11:10:30.184867 afpd[14695] {auth.c:269} (N:AFPDaemon): AFP3.3 Login by jhemminger
Oct 15 11:10:30.388056 afpd[14695] {volume.c:2023} (I:AFPDaemon): Volume /var/hda/files/amahi-time-machine use CNID scheme dbd.
Oct 15 11:10:30.388185 afpd[14695] {volume.c:2028} (I:AFPDaemon): CNID server: localhost:4700
Oct 15 11:10:51.883391 afpd[27570] {main.c:183} (I:AFPDaemon): child[14746]: exited 1
Oct 15 11:10:52.015577 afpd[14747] {dsi_tcp.c:212} (I:DSI): AFP/TCP session from 192.168.1.107:51467
Oct 15 11:10:52.128571 afpd[27570] {main.c:185} (I:AFPDaemon): child[14747]: done
Oct 15 11:11:03.082341 afpd[14796] {dsi_tcp.c:212} (I:DSI): AFP/TCP session from 192.168.1.107:51469
Oct 15 11:11:03.085074 afpd[14796] {uams_dhx2_pam.c:321} (I:UAMS): DHX2 login: jhemminger
Oct 15 11:11:03.381069 afpd[14796] {uams_dhx2_pam.c:210} (I:UAMS): PAM DHX2: PAM Success
Oct 15 11:11:03.386579 afpd[14796] {uams_dhx2_pam.c:653} (I:UAMS): DHX2: PAM Auth OK!
Oct 15 11:11:03.386671 afpd[14796] {auth.c:269} (N:AFPDaemon): AFP3.3 Login by jhemminger
Oct 15 11:11:03.673135 afpd[14796] {volume.c:2023} (I:AFPDaemon): Volume /var/hda/files/amahi-time-machine use CNID scheme dbd.
Oct 15 11:11:03.673195 afpd[14796] {volume.c:2028} (I:AFPDaemon): CNID server: localhost:4700
Oct 15 11:11:05.942794 afpd[14796] {auth.c:948} (N:AFPDaemon): AFP logout by jhemminger
Oct 15 11:11:05.951119 afpd[14796] {afp_dsi.c:99} (N:AFPDaemon): AFP statistics: 1.46 KB read, 1.47 KB written
Oct 15 11:11:05.951181 afpd[14796] {dircache.c:615} (I:AFPDaemon): dircache statistics: entries: 0, lookups: 0, hits: 0, misses: 0, added: 0, removed: 0, expunged: 0, evicted: 0
Oct 15 11:11:05.951295 afpd[14796] {afp_dsi.c:561} (N:AFPDaemon): done
Oct 15 11:11:05.953808 afpd[27570] {main.c:185} (I:AFPDaemon): child[14796]: done
Oct 15 11:14:48.218552 afpd[27570] {main.c:127} (N:AFPDaemon): AFP Server shutting down on SIGTERM
Oct 15 11:14:48.223349 afpd[14695] {afp_dsi.c:99} (N:AFPDaemon): AFP statistics: 0.78 KB read, 0.64 KB written
Oct 15 11:14:48.223418 afpd[14695] {dircache.c:615} (I:AFPDaemon): dircache statistics: entries: 0, lookups: 0, hits: 0, misses: 0, added: 0, removed: 0, expunged: 0, evicted: 0
Oct 15 11:14:48.223502 afpd[14695] {afp_dsi.c:128} (I:AFPDaemon): Connection terminated
Oct 15 11:14:52.943326 afpd[15297] {status.c:707} (I:AFPDaemon): "Amahi"'s signature is 00C3DA18F327C90799BD9EEDC7EC88F1
Oct 15 11:14:52.946034 afpd[15297] {dsi_tcp.c:387} (I:DSI): dsi_tcp_init: getaddrinfo 'amahi': No address associated with hostname

Oct 15 11:14:52.946165 afpd[15297] {dsi_tcp.c:260} (I:DSI): dsi_tcp: '192.168.1.10:548' on interface 'eth0' will be used instead.
Oct 15 11:14:52.946197 afpd[15297] {afp_config.c:372} (N:AFPDaemon): AFP/TCP started, advertising 192.168.1.10:548 (2.2.0)
Oct 15 11:14:53.503598 afpd[15297] {auth.c:148} (I:AFPDaemon): uam: "DHX2" available
Oct 15 11:14:53.503664 afpd[15297] {auth.c:148} (I:AFPDaemon): uam: "DHCAST128" available
Oct 15 11:14:53.516951 afpd[15297] {ldap_config.c:144} (I:AFPDaemon): afp_ldap.conf: not used
Oct 15 11:14:53.651273 afpd[15297] {afp_avahi.c:81} (I:AFPDaemon): Registering volume 'Time Machine' with UUID: 'CAAAC8EA-EBA5-0935-E624-7C3C39B87375' for TimeMachine
Oct 15 11:14:53.651357 afpd[15297] {afp_avahi.c:116} (I:AFPDaemon): Registering server 'Amahi' with with Bonjour
Oct 15 11:14:53.669264 afpd[15297] {afp_avahi.c:332} (I:AFPDaemon): Successfully started avahi loop.
Oct 15 11:14:53.678485 afpd[15297] {cnid.c:53} (I:AFPDaemon): Registering CNID module [last]
Oct 15 11:14:53.678570 afpd[15297] {cnid.c:53} (I:AFPDaemon): Registering CNID module [dbd]
Oct 15 11:14:53.678594 afpd[15297] {cnid.c:53} (I:AFPDaemon): Registering CNID module [tdb]
Oct 15 13:26:35.695210 afpd[15297] {afp_avahi.c:254} (E:AFPDaemon): Failed to contact server: Daemon not running
Oct 15 13:35:06.808654 afpd[2827] {status.c:707} (I:AFPDaemon): "Amahi"'s signature is 00C3DA18F327C90799BD9EEDC7EC88F1
Oct 15 13:35:06.861904 afpd[2827] {dsi_tcp.c:387} (I:DSI): dsi_tcp_init: getaddrinfo 'amahi': No address associated with hostname

Oct 15 13:35:06.862023 afpd[2827] {dsi_tcp.c:260} (I:DSI): dsi_tcp: '192.168.1.10:548' on interface 'eth0' will be used instead.
Oct 15 13:35:06.862052 afpd[2827] {afp_config.c:372} (N:AFPDaemon): AFP/TCP started, advertising 192.168.1.10:548 (2.2.0)
Oct 15 13:35:07.549767 afpd[2827] {auth.c:148} (I:AFPDaemon): uam: "DHX2" available
Oct 15 13:35:07.549815 afpd[2827] {auth.c:148} (I:AFPDaemon): uam: "DHCAST128" available
Oct 15 13:35:07.779541 afpd[2827] {ldap_config.c:144} (I:AFPDaemon): afp_ldap.conf: not used
Oct 15 13:35:08.259728 afpd[2827] {afp_avahi.c:81} (I:AFPDaemon): Registering volume 'Time Machine' with UUID: 'CAAAC8EA-EBA5-0935-E624-7C3C39B87375' for TimeMachine
Oct 15 13:35:08.266581 afpd[2827] {afp_avahi.c:116} (I:AFPDaemon): Registering server 'Amahi' with with Bonjour
Oct 15 13:35:08.271308 afpd[2827] {afp_avahi.c:332} (I:AFPDaemon): Successfully started avahi loop.
Oct 15 13:35:08.293689 afpd[2827] {cnid.c:53} (I:AFPDaemon): Registering CNID module [last]
Oct 15 13:35:08.293758 afpd[2827] {cnid.c:53} (I:AFPDaemon): Registering CNID module [dbd]
Oct 15 13:35:08.293776 afpd[2827] {cnid.c:53} (I:AFPDaemon): Registering CNID module [tdb]


Thanks again for the help.

dforbes
Posts: 37
Joined: Tue Jan 12, 2010 3:48 pm

Re: Timemachine backups with Amahi

Postby dforbes » Thu Oct 20, 2011 10:32 am

Ok, some clues here, but not quite what I was expecting! In particular, it claims to have started the avahi loop and registered the services and then some 90 mins later, says it has failed to contact the server.

Could you edit /etc/netatalk/afpd.conf and change from logging from log_info to log_maxdebug for me? Then 'service netatalk restart', wait a bit and then post the resulting /var/log/afpd.log. If you're able to, it might be easier to fpaste it and just post the link.

It would also be interesting to see the output of the following commands:

ls -la /var/run/avahi-daemon
ls -la /etc/avahi/services
pgrep avahi
netstat -lp

and the contents of /var/log/monit and /var/log/amahi-app-installer.log.

DF

zeem
Posts: 8
Joined: Sun Feb 13, 2011 3:52 pm

Re: Timemachine backups with Amahi

Postby zeem » Wed Oct 26, 2011 12:16 pm

Hi! Thanks for the app. The one feature I've been missing on my hda. Thank you again.

Now for a questions ;) since I just started to used it and therefor netatalk.

Where does the backup go on the hda? I want to add it to the diskpool in a share for extra backup.

At the moment i found the hda in timemachine and are backing up. Im using macosx 10.5.8 using wifi so guessing it will take all night for the first backup. So far every thing is working.

Thank you again

luvmnky2
Posts: 25
Joined: Sat Apr 30, 2011 5:55 am

Re: Timemachine backups with Amahi

Postby luvmnky2 » Thu Oct 27, 2011 12:29 pm

Guess this is just an addendum to the above, but I went ahead and bought the app since I knew I'd need it, but I can't use it yet because I don't have space for the backup in my root directory (I set it up to 50 GB way back when I first setup my Amahi). However I still have a couple of TB free in my greyhole pool, so that's where I'd put the backup. What's involved in getting that to work, out of curiosity?

Please note, I'm NOT throwing stones at all. I tried to get this to work a year ago, and after a few days of pulling my hair out I gave up. Much appreciation for your work on this.

Who is online

Users browsing this forum: Google [Bot] and 1 guest