Netatalk debugging and logging tips and tricks
Posted: November 26th, 2010 | Author: Godwin | Filed under: netatalk, Ubuntu | Tags: 10.10, 2.12, AppleTalk, debug, netatalk, Ubuntu, Ubuntu 10.10 | No Comments »Lately I have been having problems logging into my TimeMachine disc. My iMac works, but my macbook doesn’t, even though they run the exact same OS (10.6.5). I looked it up and here are the instructions to seperate the netatalk messages from the general message logs.
In /etc/netatalk/afpd.conf
add -setuplog “default log_info /var/log/afpd.log” to the long line of setup parameters.
If you run CNID server:
In /etc/default/netatalk
add CNID_CONFIG=”-l log_info -f /var/log/cnid.log”
You then run /etc/init.d/netatalk restart in your terminal.
Add the log files in Log File Viewer (under System -> Administration). Use File -> Open and select the log files in the appropriate place. Now whenever the logs are updated the log files will be in bold.
Now I get error messages when my macbook tries to log onto the Time Machine disc:
afpd[2081] {uams_dhx2_pam.c:350} (I:UAMSDaemon): DHX2 login: useruser
afpd[2081] {uams_dhx2_pam.c:228} (I:UAMSDaemon): PAM DHX2: PAM Success
afpd[2081] {uams_dhx2_pam.c:647} (I:UAMSDaemon): DHX2: PAM_Error: Authentication failure
However my iMac works fine:
afpd[2280] {uams_dhx2_pam.c:350} (I:UAMSDaemon): DHX2 login: useruser
afpd[2280] {uams_dhx2_pam.c:228} (I:UAMSDaemon): PAM DHX2: PAM Success
afpd[2280] {uams_dhx2_pam.c:684} (I:UAMSDaemon): DHX2: PAM Auth OK!