Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Broken pipes reported by smbclient

Posted on 2000-04-28
12
Medium Priority
?
647 Views
Last Modified: 2008-03-04
I followed Orielly's online Samba troubleshooting guide until I reached section 9.2.5.2.

I get the following errors about broken pipes:

linuxbox:/# smbclient -L localhost -U%
Added interface ip=10.0.0.69 bcast=10.0.0.255 nmask=255.255.255.0
read_socket_with_timeout: timeout read. read error = Broken pipe.
session request to LOCALHOST failed
read_socket_with_timeout: timeout read. read error = Broken pipe.
session request to *SMBSERVER failed

The Orielly guide does NOT give this as one of the possible errors that this command can give, so I'm a bit stumped as to where to turn next.  Up until this test, the computer in question passes all the others perfectly.  Telnet and ftp to the computer work perfectly.

Any ideas on how to fix the pipes?
0
Comment
Question by:magarity
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2762417
Have you configured Samba and is it running? You can check for the existance of the Samba daemons with "ps -ef | grep mbd | grep -v grep", which should return something like:

root      1380     1  0 Apr28 ?        00:00:02 bin/nmbd
root      1382     1  0 Apr28 ?        00:00:00 bin/smbd

if both daemons are running.
0
 
LVL 13

Author Comment

by:magarity
ID: 2762734
jlevie,
Yes, I get the following when trying that command:

root       104     1  0 22:34 ? 00:00:00 usr/sbin/smbd -D
root       106     1  0 22:34 ? 00:00:00 usr/sbin/nmbd -D              

also, 'netstat -a' lists the apropriate ports are ready to recieve.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2762813
Could I see what's in /etc/hosts?
0
Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

 
LVL 13

Author Comment

by:magarity
ID: 2763911
jlevie,
sure, here is everthing that isn't a comment:

127.0.0.1       localhost
10.0.0.69               littleboy.house.net littleboy
10.0.0.1 jevex
10.0.0.4 zorac
10.0.0.10 sarah                    

where 'littleboy' is the linux computer in question.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2763974
Well it's not going to be any of the simple things, your hosts file looks fine.

You should have testparm somewhere on the system. If you haven't already, it would be good to run it and see if it likes your smb.conf file. If there's nothing remarkable in the testparm output, try stopping and restarting Samba to make sure that it's using the current smb.conf data. If it still doesn't work, you can send me your smb.conf file (jlevie@bellsouth.net) and I'll see if I can spot what's wrong.
0
 
LVL 13

Author Comment

by:magarity
ID: 2764092
testparm says that the configuration is loaded correctly.

restarting the system, which I assume restarts samba with the current smb.conf file, does not help.

here's the very simple smb.conf file:

[global]
workgroup = colorado
security = user
browsable = yes
local master = yes
log level = 1
log file = /sambalog.log
[homes]
guest ok = no
browsable = no
[storage]
path = /usr/storage
public = yes

I even tried recompiling the kernel again just to make sure that the smb fs was properly inserted.
0
 
LVL 13

Author Comment

by:magarity
ID: 2764105
Here is the log file after deleting the one that was there and rebooting.  The first entry is before running "smbclient -L localhost -U%" and the others were added after that.

[2000/04/29 18:20:44, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1014 are available.

[2000/04/29 18:22:23, 0] locking/shmem_sysv.c:sysv_shm_open(563)
  Can't create or use semaphore [1]. Error was Function not implemented

[2000/04/29 18:22:23, 0] locking/locking.c:locking_init(174)
  ERROR: Failed to initialise share modes

[2000/04/29 18:22:24, 0] locking/shmem_sysv.c:sysv_shm_open(563)
  Can't create or use semaphore [1]. Error was Function not implemented

[2000/04/29 18:22:24, 0] locking/locking.c:locking_init(174)
  ERROR: Failed to initialise share modes
0
 
LVL 40

Accepted Solution

by:
jlevie earned 400 total points
ID: 2764211
Well, there's what's wrong. Which Linux are you on and if you've compiled a new kernel does it have the System V IPC options enabled (in the General setup section of xconfig)?
0
 
LVL 13

Author Comment

by:magarity
ID: 2764291
slackware 7

no, i have not put in the system v ipc since the help on that says its particularly for dosemu, which i don't want.

i take it i should have that in there, so i'm running a recompile now and will report back later.  (its a 3 hour job on the machine in question, hah hah)

what tipped you off that i needed it?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2764406
Because the log file had:

2000/04/29 18:22:23, 0] locking/shmem_sysv.c:sysv_shm_open(563)
                         Can't create or use semaphore [1]. Error was Function not implemented

and semaphores and shared memory are a part of the SysV IPC.

The kernel notes can only tell you about things that the kernel know it needs for something else. There's no way that it could know that you intend to load some application (like Samba, MySQL, or Postgres, etc) that also requires that option. Hopefully it will only be the SysV IPC that's missing and Samba will work when the new kernel is in place.
0
 
LVL 13

Author Comment

by:magarity
ID: 2764759
Hurrah, I never would have guessed that this was the cause of my troubles but not compiling in system v ipc was what was missing.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2764790
Great, I'm glad its working now.
0

Featured Post

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question