Will Holmes
2007-May-29 20:47 UTC
FW: [Samba] Help Please! - Copying files from Windows to Samba share loses connection
Aaron, Yes, I left the server string out intentionally because of how the mapped drive description showed in Windows. Could this be causing my problem? I was able to join this server to the domain and I could retrieive a list of users using the winfo command. Thanks! Will -----Original Message----- From: Aaron Kincer [mailto:kincera@gmail.com] Sent: Tuesday, May 29, 2007 12:21 PM To: Will Holmes Cc: samba@lists.samba.org Subject: Re: [Samba] Help Please! - Copying files from Windows to Samba share loses connection I see you don't have the server string set. Have you tried to join this server to the domain with a net ads join command? Will Holmes wrote:> Hello all, > > I haven't been able to solve an issue I am having when copying overdata> from a Windows box to a Samba share. I have found others with the same > issue and I have made some configuration changes to try and solve theissue> but the issue is still lingering. I want to migrate off my old Windowsbox> but until I solve this issue I am I cannot move forward. Please let meknow> if you need any further info. Thanks!!! > > Here is the two lines I have added to my smb.conf file. Niether changedid> the trick. > client schannel = no > smb ports = 139 > > ************************************************************ > Here is my smb.config file: > ************************************************************ > > # smb.conf is the main Samba configuration file. You find a full commented > # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE > # Date: 2004-07-01 > [global] > workgroup = FMIC > printing = cups > printcap name = cups > printcap cache time = 750 > cups options = raw > printer admin = @ntadmin, root, administrator > username map = /etc/samba/smbusers > map to guest = Bad User > logon path = \\%L\profiles\.msprofile > logon home = \\%L\%U\.9xprofile > logon drive = P: > security = ADS > encrypt passwords = yes > domain logons = no > ldap idmap suffix = ou=Idmap > ldap machine suffix = ou=Computers > local master = yes > wins server > wins support = no > netbios name = FMICLINUX > add machine script > preferred master = auto > ldap suffix = dc=example,dc=com > realm = FMIC.FMIC.COM > idmap uid = 15000-20000 > idmap gid = 15000-20000 > server string > allow trusted domains = yes > password server = * > nt acl support = yes > map acl inherit = yes > winbind use default domain = yes > client schannel = no > smb ports = 139 > > ************************************************************ > System Log errors: > ************************************************************ > > May 23 12:59:00 fmiclinux /USR/SBIN/CRON[2745]: (root) CMD ( rm -f > /var/spool/cron/lastrun/cron.hourly) ? > ?May 23 13:59:00 fmiclinux /USR/SBIN/CRON[2755]: (root) CMD ( rm -f > /var/spool/cron/lastrun/cron.hourly) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux sshd[2983]: fatal: Timeout before > authentication for ::ffff:10.0.0.158 ? > ?May 25 09:00:03 fmiclinux smbd[2263]: Error writing 51 bytes toclient.> -1. (Broken pipe) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3240]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:03 fmiclinux smbd[3240]: write_socket_data: writefailure.> Error = Connection reset by peer ? > ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket(438) ? > ?May 25 09:00:04 fmiclinux smbd[3240]: write_socket: Error writing 4 > bytes to socket 5: ERRNO = Connection res? > ?~et by peer > ? > ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:send_smb(630) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket_data: writefailure.> Error = Connection reset by peer ? > ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket(438) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket: Error writing 4 > bytes to socket 21: ERRNO = Connection re? > > Thanks in advance!! > > Will Holmes > Programmer Analyst > Fremont Insurance Company > Ph: 231-924-0302 Ext. 145 > E-Mail: wholmes@fmic.com > >
Aaron Kincer
2007-May-30 12:48 UTC
FW: [Samba] Help Please! - Copying files from Windows to Samba share loses connection
I'm not sure that it's a problem, I just know that when you do a net ads join, that value is what tells Active Directory your computer name. At least that is how I've seen Samba behave. I don't know what happens if you don't have that set. I'm sure someone here knows. I am a bit confuse by your specification of port 139. Comment out that line and see if you have better luck. For giggles, set your server string to the same as your hostname and rejoin the domain. Also, have you taken other steps to configure AD such as editing your krb5.conf file? What OS and Samba version are you running? Will Holmes wrote:> Aaron, > Yes, I left the server string out intentionally because of how the mapped > drive description showed in Windows. Could this be causing my problem? I > was able to join this server to the domain and I could retrieive a list of > users using the winfo command. > > Thanks! > Will > > -----Original Message----- > From: Aaron Kincer [mailto:kincera@gmail.com] > Sent: Tuesday, May 29, 2007 12:21 PM > To: Will Holmes > Cc: samba@lists.samba.org > Subject: Re: [Samba] Help Please! - Copying files from Windows to Samba > share loses connection > > I see you don't have the server string set. > > Have you tried to join this server to the domain with a net ads join > command? > > Will Holmes wrote: > >> Hello all, >> >> I haven't been able to solve an issue I am having when copying over >> > data > >> from a Windows box to a Samba share. I have found others with the same >> issue and I have made some configuration changes to try and solve the >> > issue > >> but the issue is still lingering. I want to migrate off my old Windows >> > box > >> but until I solve this issue I am I cannot move forward. Please let me >> > know > >> if you need any further info. Thanks!!! >> >> Here is the two lines I have added to my smb.conf file. Niether change >> > did > >> the trick. >> client schannel = no >> smb ports = 139 >> >> ************************************************************ >> Here is my smb.config file: >> ************************************************************ >> >> # smb.conf is the main Samba configuration file. You find a full commented >> # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE >> # Date: 2004-07-01 >> [global] >> workgroup = FMIC >> printing = cups >> printcap name = cups >> printcap cache time = 750 >> cups options = raw >> printer admin = @ntadmin, root, administrator >> username map = /etc/samba/smbusers >> map to guest = Bad User >> logon path = \\%L\profiles\.msprofile >> logon home = \\%L\%U\.9xprofile >> logon drive = P: >> security = ADS >> encrypt passwords = yes >> domain logons = no >> ldap idmap suffix = ou=Idmap >> ldap machine suffix = ou=Computers >> local master = yes >> wins server >> wins support = no >> netbios name = FMICLINUX >> add machine script >> preferred master = auto >> ldap suffix = dc=example,dc=com >> realm = FMIC.FMIC.COM >> idmap uid = 15000-20000 >> idmap gid = 15000-20000 >> server string >> allow trusted domains = yes >> password server = * >> nt acl support = yes >> map acl inherit = yes >> winbind use default domain = yes >> client schannel = no >> smb ports = 139 >> >> ************************************************************ >> System Log errors: >> ************************************************************ >> >> May 23 12:59:00 fmiclinux /USR/SBIN/CRON[2745]: (root) CMD ( rm -f >> /var/spool/cron/lastrun/cron.hourly) ? >> ?May 23 13:59:00 fmiclinux /USR/SBIN/CRON[2755]: (root) CMD ( rm -f >> /var/spool/cron/lastrun/cron.hourly) ? >> ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] >> lib/util_sock.c:get_peer_addr(978) ? >> ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] >> lib/util_sock.c:get_peer_addr(978) ? >> ?May 25 09:00:03 fmiclinux sshd[2983]: fatal: Timeout before >> authentication for ::ffff:10.0.0.158 ? >> ?May 25 09:00:03 fmiclinux smbd[2263]: Error writing 51 bytes to >> > client. > >> -1. (Broken pipe) ? >> ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was >> Transport endpoint is not connected ? >> ?May 25 09:00:03 fmiclinux smbd[3240]: [2007/05/25 09:00:03, 0] >> lib/util_sock.c:write_socket_data(413) ? >> ?May 25 09:00:03 fmiclinux smbd[3242]: getpeername failed. Error was >> Transport endpoint is not connected ? >> ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] >> lib/util_sock.c:get_peer_addr(978) ? >> ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was >> Transport endpoint is not connected ? >> ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] >> lib/util_sock.c:write_socket_data(413) ? >> ?May 25 09:00:03 fmiclinux smbd[3240]: write_socket_data: write >> > failure. > >> Error = Connection reset by peer ? >> ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] >> lib/util_sock.c:write_socket(438) ? >> ?May 25 09:00:04 fmiclinux smbd[3240]: write_socket: Error writing 4 >> bytes to socket 5: ERRNO = Connection res? >> ?~et by peer >> ? >> ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] >> lib/util_sock.c:send_smb(630) ? >> ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] >> lib/util_sock.c:get_peer_addr(978) ? >> ?May 25 09:00:04 fmiclinux smbd[3242]: getpeername failed. Error was >> Transport endpoint is not connected ? >> ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] >> lib/util_sock.c:write_socket_data(413) ? >> ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket_data: write >> > failure. > >> Error = Connection reset by peer ? >> ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] >> lib/util_sock.c:write_socket(438) ? >> ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket: Error writing 4 >> bytes to socket 21: ERRNO = Connection re? >> >> Thanks in advance!! >> >> Will Holmes >> Programmer Analyst >> Fremont Insurance Company >> Ph: 231-924-0302 Ext. 145 >> E-Mail: wholmes@fmic.com >> >> >> > > >
Will Holmes
2007-May-30 12:48 UTC
FW: [Samba] Help Please! - Copying files from Windows to Samba share loses connection
Hello all, I put in value for the server string and tried a test copy. The copy went along for a little while and I got the Windows lost connection error. The copy process is always stopping on the same file which is 185MB. I was trying to view the logs but it looks like the copy locked up the server. Anyone have any ideas? Thanks in advance!! Will -----Original Message----- From: Aaron Kincer [mailto:kincera@gmail.com] Sent: Tuesday, May 29, 2007 12:21 PM To: Will Holmes Cc: samba@lists.samba.org Subject: Re: [Samba] Help Please! - Copying files from Windows to Samba share loses connection I see you don't have the server string set. Have you tried to join this server to the domain with a net ads join command? Will Holmes wrote:> Hello all, > > I haven't been able to solve an issue I am having when copying overdata> from a Windows box to a Samba share. I have found others with the same > issue and I have made some configuration changes to try and solve theissue> but the issue is still lingering. I want to migrate off my old Windowsbox> but until I solve this issue I am I cannot move forward. Please let meknow> if you need any further info. Thanks!!! > > Here is the two lines I have added to my smb.conf file. Niether changedid> the trick. > client schannel = no > smb ports = 139 > > ************************************************************ > Here is my smb.config file: > ************************************************************ > > # smb.conf is the main Samba configuration file. You find a full commented > # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE > # Date: 2004-07-01 > [global] > workgroup = FMIC > printing = cups > printcap name = cups > printcap cache time = 750 > cups options = raw > printer admin = @ntadmin, root, administrator > username map = /etc/samba/smbusers > map to guest = Bad User > logon path = \\%L\profiles\.msprofile > logon home = \\%L\%U\.9xprofile > logon drive = P: > security = ADS > encrypt passwords = yes > domain logons = no > ldap idmap suffix = ou=Idmap > ldap machine suffix = ou=Computers > local master = yes > wins server > wins support = no > netbios name = FMICLINUX > add machine script > preferred master = auto > ldap suffix = dc=example,dc=com > realm = FMIC.FMIC.COM > idmap uid = 15000-20000 > idmap gid = 15000-20000 > server string > allow trusted domains = yes > password server = * > nt acl support = yes > map acl inherit = yes > winbind use default domain = yes > client schannel = no > smb ports = 139 > > ************************************************************ > System Log errors: > ************************************************************ > > May 23 12:59:00 fmiclinux /USR/SBIN/CRON[2745]: (root) CMD ( rm -f > /var/spool/cron/lastrun/cron.hourly) ? > ?May 23 13:59:00 fmiclinux /USR/SBIN/CRON[2755]: (root) CMD ( rm -f > /var/spool/cron/lastrun/cron.hourly) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux sshd[2983]: fatal: Timeout before > authentication for ::ffff:10.0.0.158 ? > ?May 25 09:00:03 fmiclinux smbd[2263]: Error writing 51 bytes toclient.> -1. (Broken pipe) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3240]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:03 fmiclinux smbd[3240]: write_socket_data: writefailure.> Error = Connection reset by peer ? > ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket(438) ? > ?May 25 09:00:04 fmiclinux smbd[3240]: write_socket: Error writing 4 > bytes to socket 5: ERRNO = Connection res? > ?~et by peer > ? > ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:send_smb(630) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket_data: writefailure.> Error = Connection reset by peer ? > ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket(438) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket: Error writing 4 > bytes to socket 21: ERRNO = Connection re? > > Thanks in advance!! > > Will Holmes > Programmer Analyst > Fremont Insurance Company > Ph: 231-924-0302 Ext. 145 > E-Mail: wholmes@fmic.com > >
Adam Tauno Williams
2007-May-30 13:08 UTC
FW: [Samba] Help Please! - Copying files from Windows to Samba share loses connection
On Wed, 2007-05-30 at 08:48 -0400, Will Holmes wrote:> Hello all, > > I put in value for the server string and tried a test copy. The copy went > along for a little while and I got the Windows lost connection error. The > copy process is always stopping on the same file which is 185MB. I was > trying to view the logs but it looks like the copy locked up the server. > Anyone have any ideas?Maybe the issue has nothing to do with Samba. Have you tried loading the server with I/O via other means and see if it pukes?> > [global]You need to set a higher debug level to see anything useful> > ?May 25 09:00:03 fmiclinux smbd[2263]: Error writing 51 bytes to > client. > > -1. (Broken pipe) ? > > ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was > > Transport endpoint is not connected ? > > ?May 25 09:00:03 fmiclinux smbd[3240]: [2007/05/25 09:00:03, 0]It is very possible these kind of messages are not related to your issue. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org
Apparently Analagous Threads
- Help Please! - Copying files from Windows to Samba share loses connection
- Corrupted userid in mail folders - Crisis
- Cannot Authenticate to Samba Shares after switching laptop from wired to wireless nic.
- Transport endpoint is not connected
- Connection reset by peer