Re: help interpret netatalk log message


Subject: Re: help interpret netatalk log message
From: andrew morgan (morgan@orst.edu)
Date: Wed Jun 07 2000 - 12:19:43 EDT


On Wed, 7 Jun 2000, Leo Wierzbowski wrote:

> I'm trying to diagnose the dropping of afp over tcp/ip connections
> between g3/g4 running os 8.6/9.0.4 and netatalk asun2.1.4.37b on RH 6.0.
>
> Does anyone see a clue in the following log messages:
>
> Jun 7 01:40:52 dogbert afpd[29165]: login macload (uid 503, gid 503)
> Jun 7 02:08:51 dogbert afpd[29165]: dsi_stream_read(-1): Connection
> reset by peer
> Jun 7 02:08:51 dogbert afpd[29165]: dsi_stream_write: Broken pipe
> Jun 7 02:08:51 dogbert PAM_pwdb[29165]: (netatalk) session closed
> for user macload
> Jun 7 02:08:51 dogbert afpd[29165]: dsi_stream_write: Broken pipe
> Jun 7 02:08:51 dogbert afpd[29165]: 2775.27KB read, 236071.57KB written

I don't know what is going on, but I don't think it is a problem with
netatalk specifically. Digging into the relevant code:

dsi_stream_read calls the standard POSIX read function. It returns -1 on
an error and sets errno. In the log above, we see "dsi_stream_read(-1):
Connection reset by peer", which indicates that the other end of the
tcp/ip connection either timed out or closed the connection with a
standard tcp/ip FIN/ACK packet.

The "dsi_stream_write: Broken pipe" means that it tried to write to a
socket whose reading end is closed, which makes sense from the
dsi_stream_read error above it.

Do you only have this problem with certain client machines, or does it
happen to all of them? Are there any Apple updates for the networking on
these machines?

        Andy



This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:30:59 EST