DebuggingSamba

Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2009-02-19 18:28:24
Size: 5642
Editor: dsl-207-112-55-210
Comment:
Revision 7 as of 2009-02-19 18:53:46
Size: 6173
Editor: c-24-21-50-133
Comment:
Deletions are marked like this. Additions are marked like this.
Line 32: Line 32:
 2. try to connect to the remote system from the command line:  1. try to connect to the remote system from the command line:
Line 42: Line 42:
smbclient -L //remote_srv smbclient -L //remote_system
Line 46: Line 46:
 * the content of the file /etc/fstab   * the content of the file '''/etc/fstab'''
Line 48: Line 48:
 * the content of the file /proc/fs/cifs/DebugData  * the content of the file '''/proc/fs/cifs/DebugData'''
Line 55: Line 55:
Include the name (Windows, Ubuntu) and version (XP, Vista, 8.04) of the client systems failing to connect to the share. Include the operating system (Windows, Ubuntu) and version (XP, Vista, 8.04) of the client systems failing to connect to the share.
Line 60: Line 60:
 * the content of the smb.conf file
 * log files found in /var/log/samba/
 * the content of the '''/etc/samba/smb.conf''' file
 * log files found in '''/var/log/samba/'''
Line 69: Line 69:
 * apt and dpkg log files: /var/log/dpkg.log and /var/log/apt/term.log.
 * /etc/samba/smb.conf
Line 72: Line 70:
==== In the case of an upgrade whether was there a prompt for a modified configuration file? ====  * apt and dpkg log files: '''/var/log/dpkg.log''' and '''/var/log/apt/term.log'''.
 * '''/etc/samba/smb.conf'''
Line 74: Line 73:
If so which steps have been taken. In the case of an upgrade was there a prompt for a modified configuration file? If so what steps were taken.
Line 83: Line 82:

Identify if the bug falls in one of the generic categories above. If so make sure that the relevant information is available. If not ask for it using one of the stock replies.
Line 94: Line 95:
=== Samba as a client === ## StockReplyStart

==== Samba as a client ====

Use this reply if an Ubuntu system cannot access a remote samba/windows share.
Line 103: Line 108:
=== Samba as a server === ==== Samba as a server ====

Use this reply if remote clients cannot access a share provided by an Ubuntu system.
Line 111: Line 118:
=== Install/upgrade failure === ==== Install/upgrade failure ====

Use this reply if there is a package installation/upgrade failure on the Ubuntu system.
Line 118: Line 127:

## StockReplyEnd

Debugging Central

This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

Introduction

Bugs relating to samba typically fall into the following categories:

  1. User cannot connect to a remote share from his Ubuntu system. This falls under the category of samba as a client.

  2. Other systems cannot connect to an Ubuntu system providing samba shares. This may be an issue with samba as a server.

  3. Install/upgrade failures of the samba packages.

How to file

First figure out if the bug falls under one of the generic categories:

  1. samba as a client
  2. samba as a server
  3. install/upgrade failure

Samba as a client

How is the remote share accessed from the Ubuntu system?

  1. nautilus
  2. smbclient (from the command line)
  3. cifs mount

If nautilus is used to access the remote share, can the share can be accessed with the '''smbclient''' command line utility ?

To test:

  1. install the samba-client package
  2. try to connect to the remote system from the command line:

smbclient //remote_system/share_name

What is the remote server version?

Include the output of the following smbclient command:

smbclient -L //remote_system

If a cifs mount is used also include:

  • the content of the file /etc/fstab

  • the command line used to mount the remote share if the share is manually mounted.
  • the content of the file /proc/fs/cifs/DebugData

Samba as a server

Which clients are failing to connect?

Include the operating system (Windows, Ubuntu) and version (XP, Vista, 8.04) of the client systems failing to connect to the share.

What is the error message produced on the client?

Information to include

  • the content of the /etc/samba/smb.conf file

  • log files found in /var/log/samba/

  • the output of the smbclient -L //server/

  • the output of testparm -s

Install/upgrade failure

Information to include

  • apt and dpkg log files: /var/log/dpkg.log and /var/log/apt/term.log.

  • /etc/samba/smb.conf

In the case of an upgrade was there a prompt for a modified configuration file? If so what steps were taken.

How to Triage

Identify if the bug falls in one of the generic categories above. If so make sure that the relevant information is available. If not ask for it using one of the stock replies.

Samba as a client

If nautilus fails to connect but smbclient can successfully connect, the bug is related to nautilus. Mark the samba task Invalid and open a new task for nautilus.

If both nautilus and smbclient can not connect, the bug is related to samba. If cifs can not connect the bug is also related to samba.

Stock Reply

Samba as a client

Use this reply if an Ubuntu system cannot access a remote samba/windows share.

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it without more information. 

Please include the information requested at https://wiki.ubuntu.com/DebuggingSamba#samba-client.

Samba as a server

Use this reply if remote clients cannot access a share provided by an Ubuntu system.

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it without more information. 

Please include the information requested at https://wiki.ubuntu.com/DebuggingSamba#samba-server.

Install/upgrade failure

Use this reply if there is a package installation/upgrade failure on the Ubuntu system.

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it without more information. 

Please include the information requested at https://wiki.ubuntu.com/DebuggingSamba#samba-pkg-fail.


CategoryBugSquad CategoryDebugging

DebuggingSamba (last edited 2010-07-08 22:43:11 by pool-71-252-251-234)