Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Error reading file occasionally on Samba server

    I have had a lot of users complaining about intermittent file reading errors while trying to use files on a new samba 3.0.22 server. The clients are Windows 2000 and XP clients using the samba drive as a mapped network share.

    We have had no luck in trying to resolve this yet. The logs on the samba don't give anything useful. At the times this occurs there is a new connection request made from that client. Does this mean that the connection is dropped or timed out or something and had to be re-established?
    [2006/11/15 11:55:25, 1] smbd/service.c:make_connection_snum(693)
      client_machine_name (192.168.1.x) connect to service pub initially as user someuser (uid=xxx, gid=xxx) (pid 25597)
    This has occurred in the logs within a minute of the reported time that there was an error trying to access the file. It is not a permissions problem because the users can access the files normally most of the time.

  2. #2
    Ok, I have switched on verbose logging and have captured the following when the error occurs:
    [2006/11/17 17:05:29, 3] smbd/process.c:switch_message(993)
      switch message SMBntcreateX (pid 30176) conn 0x803c8878
    [2006/11/17 17:05:29, 4] smbd/uid.c:change_to_user(217)
      change_to_user: Skipping user change - already user
    [2006/11/17 17:05:29, 5] smbd/filename.c:unix_convert(108)
      unix_convert called on file "dir1/dir2/dir3/dir4/file.APP"
    [2006/11/17 17:05:29, 5] smbd/filename.c:unix_convert(185)
      unix_convert begin: name = dir1/dir2/dir3/dir4/file.APP, dirpath = dir1, start = dir2/dir3/dir4/file.APP
    [2006/11/17 17:05:29, 5] smbd/filename.c:unix_convert(295)
      Intermediate not found dir2
    [2006/11/17 17:05:29, 3] smbd/error.c:error_packet(146)
      error packet at smbd/nttrans.c(652) cmd=162 (SMBntcreateX) NT_STATUS_OBJECT_PATH_NOT_FOUND
    [2006/11/17 17:05:29, 5] lib/util.c:show_msg(454)
    Why on earth is samba splitting the dir1 from the rest of the dirs and then failing to find the rest of the path? It looks like this error may be responsible for the intermittent file reading problems, of course it looks like it's saying the file isn't there when I have just manually verified that it is there!

Posting Permissions

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