LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-06-2006, 10:06 PM   #1
ryanoa
Member
 
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102

Rep: Reputation: 15
samba errors is syslog


Hi,

I'm getting these samba errors reported in syslog and I can't figure out where they are stemming from.

Code:
Nov  6 19:40:15 slack1 smbd[2384]: [2006/11/06 19:40:15, 0] lib/util_sock.c:get_peer_addr(1229) 
Nov  6 19:40:15 slack1 smbd[2384]:   getpeername failed. Error was Transport endpoint is not connected 
Nov  6 19:40:15 slack1 smbd[8537]: [2006/11/06 19:40:15, 0] lib/util_sock.c:get_peer_addr(1229) 
Nov  6 19:40:15 slack1 smbd[8537]:   getpeername failed. Error was Transport endpoint is not connected 
Nov  6 19:40:15 slack1 smbd[8537]: [2006/11/06 19:40:15, 0] lib/util_sock.c:get_peer_addr(1229) 
Nov  6 19:40:15 slack1 smbd[8537]:   getpeername failed. Error was Transport endpoint is not connected 
Nov  6 19:40:15 slack1 smbd[8537]: [2006/11/06 19:40:15, 0] lib/access.c:check_access(327) 
Nov  6 19:40:15 slack1 smbd[8537]: [2006/11/06 19:40:15, 0] lib/util_sock.c:get_peer_addr(1229) 
Nov  6 19:40:15 slack1 smbd[8537]:   getpeername failed. Error was Transport endpoint is not connected 
Nov  6 19:40:15 slack1 smbd[8537]:   Denied connection from  (0.0.0.0) 
Nov  6 19:40:15 slack1 smbd[8537]: [2006/11/06 19:40:15, 0] lib/util_sock.c:get_peer_addr(1229) 
Nov  6 19:40:15 slack1 smbd[8537]:   getpeername failed. Error was Transport endpoint is not connected 
Nov  6 19:40:15 slack1 smbd[8537]:   Connection denied from 0.0.0.0 
Nov  6 19:40:15 slack1 smbd[8537]: [2006/11/06 19:40:15, 0] lib/util_sock.c:write_data(562) 
Nov  6 19:40:15 slack1 smbd[8537]:   write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer 
Nov  6 19:40:15 slack1 smbd[8537]: [2006/11/06 19:40:15, 0] lib/util_sock.c:send_smb(769) 
Nov  6 19:40:15 slack1 smbd[8537]:   Error writing 5 bytes to client. -1. 
(Connection reset by peer)
I have no idea why it would be getting a connection from an ip adress of 0.0.0.0
There is also a samba.0.0.0.0 log that has the same errors.

Any ideas?
 
Old 11-07-2006, 04:23 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
This usually happens because Windows clients will connect on both ports 139 and 445. When one connection succeeds, the other one is immediately closed.

So, this error message is harmless and can be ignored. You could also configure your Samba to only listen on one port using the "smb ports" option in /etc/smb.conf.

The "0.0.0.0" address is listed because Samba tries to get the IP address from the connecting client computer using the "getpeername" call, but the connection is closed before it can retrieve the correct IP address. This is logged as coming from "0.0.0.0".

Eric
 
Old 11-07-2006, 08:44 PM   #3
ryanoa
Member
 
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102

Original Poster
Rep: Reputation: 15
Thanks for the response Eric,

After a little more research it is making sense to me now.

I'll have to look into the port option. Would that get rid of those error messages? Now that I know they can be ignored, no big deal, but they are filling up my syslog daily and I would like to keep it a little cleaner

Ryan
 
Old 03-27-2008, 12:25 PM   #4
nekkutta
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware 12
Posts: 22

Rep: Reputation: 15
same log info, but kinda curious as to the real reason

trying to track down causes for errors in my log file, and I'm kinda confused my log file was filling up with the iptables LOG info but then I noticed something, I didn't get any of the smbd getpeername failed entries while my firewall was up. but when my firewall goes down (BTW I'm using alien bobs script and only activate it while my dialup ppp0 connection is live and bring it down when the ppp0 drops connection) then I get flooded with the getpeername failed entries.

now, I had not encountered any of these errors until after I started using my slack 12 box as a router/gateway for the dialup connection.

is it possible there is an entry in the /proc/sys/net/ that is interferring with samba when the iptables are flushed?


grrr.... I wish I could learn all this networking stuff easily.

nekkutta
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Syslog errors with NIS hawarden Linux - Networking 0 01-25-2006 03:45 PM
DHCPd errors in syslog APEX Linux - Networking 0 05-16-2004 02:51 PM
syslog errors AZDAVE Linux - General 0 04-27-2004 10:29 AM
syslog errors -> How to correct these... tipaul Slackware 15 12-17-2003 03:44 AM
some errors in syslog doublefailure Linux - General 0 03-06-2003 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration