Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
I have been running Ubuntu 9.04 and samba on my server for a while now. It has usually worked ok, but lately it has been acting up. I will be ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Location
    Ames Iowa
    Posts
    27

    Samba problems with Windows 7


    I have been running Ubuntu 9.04 and samba on my server for a while now. It has usually worked ok, but lately it has been acting up. I will be watching a movie on one of my samba shares and the video will stop. Then when I check my computer the share is unavailable for a minute then it comes back.

    I have also had problems with the shares becoming disconnected and not being able to access them at all until I reboot. This can be very frustrating. Here is the error I get when that happens.

    An error occurred while reconnecting Z:\
    Microsoft windows network: the local device is already in use
    this connection has not been restored.

    I did some searching and found that Windows 7 had some compatability problems with samba. I have noticed that my roommate never has problems connecting using vista and my modded xbox does just fine. Does anyone know how to correct the samba reliability problems with windows 7.

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    Have you checked your "Enhanced" TCP/IP settings that come with those Windows 7 and Vista boxes. You might want to see if disabling Autotuning might correct your problem. I think its something like:

    Code:
    netsh interface tcp set global autotuninglevel=disabled
    or something like that

    ----
    oh and don't forget to reboot, despite what the other folks may say. this setting will not take effect until you do.
    Last edited by scathefire; 01-27-2010 at 04:01 PM. Reason: for something

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Location
    Ames Iowa
    Posts
    27
    thanks for the quick reply. I have run the command successfully and rebooted. I will test it out for a couple hours and let you know if I still have problems.

  4. #4
    Just Joined!
    Join Date
    Oct 2009
    Location
    Ames Iowa
    Posts
    27
    The problem is still happening. Do you have any other suggestions?

  5. #5
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    Have you tried downstepping you authentication mechanisms?

    Get Vista and Samba to work - Blogs - Code Monkey Business - Builder AU

  6. #6
    Just Joined!
    Join Date
    Oct 2009
    Location
    Ames Iowa
    Posts
    27
    Ya, I tried that last night.

  7. #7
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    Anything in the samba server logs? You can also try making sure your NetBIOS Helper Service and NetBIOS over TCP is turned on. The NetBIOS over TCP is under the Network Connection setting. I've seen it do weird things on networks when its not enabled.

    Just need to try to determine who is killing the connection: the server or the client.

  8. #8
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    you might want to also try setting your NTLM SSP to no minimum if you haven't all ready. Should be under local security, where you adjusted you authentication mechanisms. I've read that is suppose to help.

  9. #9
    Just Joined!
    Join Date
    Oct 2009
    Location
    Ames Iowa
    Posts
    27
    Here is the samba log for my desktop. it was a big file so the times of these entries are from earlier today when I know the problem occurred multiple times.

    Code:
    2010/01/27 11:15:28,  1] smbd/service.c:make_connection_snum(1115)
      jordan-windows7 (192.168.1.5) connect to service data2 initially as user jordan (uid=1000, gid=1000) (pid 799)
    [2010/01/27 11:15:28,  1] smbd/service.c:make_connection_snum(1115)
      jordan-windows7 (192.168.1.5) connect to service data3 initially as user jordan (uid=1000, gid=1000) (pid 799)
    [2010/01/27 11:15:28,  1] smbd/service.c:make_connection_snum(1115)
      jordan-windows7 (192.168.1.5) connect to service backup initially as user jordan (uid=1000, gid=1000) (pid 799)
    [2010/01/27 11:15:28,  1] smbd/service.c:make_connection_snum(1115)
      jordan-windows7 (192.168.1.5) connect to service downloads initially as user jordan (uid=1000, gid=1000) (pid 799)
    [2010/01/27 11:15:28,  1] smbd/service.c:make_connection_snum(1115)
      jordan-windows7 (192.168.1.5) connect to service programs initially as user jordan (uid=1000, gid=1000) (pid 799)
    [2010/01/27 11:15:28,  1] smbd/service.c:make_connection_snum(1115)
      jordan-windows7 (192.168.1.5) connect to service documents initially as user jordan (uid=1000, gid=1000) (pid 799)
    [2010/01/27 11:15:37,  0] smbd/service.c:make_connection_snum(744)
      create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    [2010/01/27 11:15:37,  0] smbd/service.c:make_connection_snum(744)
      create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    [2010/01/27 11:15:37,  0] smbd/service.c:make_connection_snum(744)
      create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    [2010/01/27 11:15:37,  0] smbd/service.c:make_connection_snum(744)
      create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    [2010/01/27 11:15:37,  0] smbd/service.c:make_connection_snum(744)
      create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    [2010/01/27 11:15:37,  0] smbd/service.c:make_connection_snum(744)
      create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    [2010/01/27 11:15:37,  0] smbd/service.c:make_connection_snum(744)
      create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    [2010/01/27 11:15:37,  0] smbd/service.c:make_connection_snum(744)
      create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    [2010/01/27 11:23:28,  0] printing/print_cups.c:cups_connect(103)
      Unable to connect to CUPS server localhost:631 - Connection refused
    [2010/01/27 11:23:58,  0] printing/print_cups.c:cups_connect(103)
      Unable to connect to CUPS server localhost:631 - Connection refused
    [2010/01/27 11:28:58,  0] printing/print_cups.c:cups_connect(103)
      Unable to connect to CUPS server localhost:631 - Connection refused
    [2010/01/27 11:29:28,  0] printing/print_cups.c:cups_connect(103)
      Unable to connect to CUPS server localhost:631 - Connection refused
    [2010/01/27 11:34:04,  0] lib/util_sock.c:read_socket_with_timeout(939)
    [2010/01/27 11:34:04,  0] lib/util_sock.c:get_peer_addr_internal(1676)
      getpeername failed. Error was Transport endpoint is not connected
      read_socket_with_timeout: client 0.0.0.0 read error = Connection timed out.
    [2010/01/27 11:34:04,  1] smbd/service.c:close_cnum(1327)
      jordan-windows7 (192.168.1.5) closed connection to service data2
    [2010/01/27 11:34:04,  1] smbd/service.c:close_cnum(1327)
      jordan-windows7 (192.168.1.5) closed connection to service programs
    [2010/01/27 11:34:04,  1] smbd/service.c:close_cnum(1327)
      jordan-windows7 (192.168.1.5) closed connection to service downloads
    [2010/01/27 11:34:04,  1] smbd/service.c:close_cnum(1327)
      jordan-windows7 (192.168.1.5) closed connection to service data3
    [2010/01/27 11:34:04,  1] smbd/service.c:close_cnum(1327)
      jordan-windows7 (192.168.1.5) closed connection to service backup
    [2010/01/27 11:34:04,  1] smbd/service.c:close_cnum(1327)
      jordan-windows7 (192.168.1.5) closed connection to service documents
    [2010/01/27 11:41:58,  0] printing/print_cups.c:cups_connect(103)
      Unable to connect to CUPS server localhost:631 - Connection refused
    [2010/01/27 11:42:28,  0] printing/print_cups.c:cups_connect(103)
      Unable to connect to CUPS server localhost:631 - Connection refused
    I will have to take a look at my netbios settings later tonight. I think i have it set to get settings from dhcp. I will try switching that to enabled. I will also lower those security setting more to see if it helps.

  10. #10
    Linux User
    Join Date
    Dec 2009
    Posts
    264
    Hi,
    for me it seems like Win7 tries too reconnect to samba using no or a wrong password ...
    You will be able to determinate the error by increasing the log level of samba.

    I have read about a similar problem on a german forum ... still with no solution and no logs.
    Yust without any error messages from windows.

    I've just found following:
    Windows 7 and Samba Issue - windows-7

    nikonz seemed to found a solution
    greetings
    Zomby

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •