nmbd fails to start if smb.conf is missing due to testparm failure

Bug #820540 reported by Emmanuel Clerc
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Debian)
New
Undecided
Unassigned
samba (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

While upgrading my release unsing the update manager, I saw some error messages and I was redirected to this tools automtically.

$ lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: samba-common 2:3.4.7~dfsg-1ubuntu3.7
ProcVersionSignature: Ubuntu 2.6.32-33.71-generic 2.6.32.41+drm33.18
Uname: Linux 2.6.32-33-generic x86_64
Architecture: amd64
Date: Wed Aug 3 21:02:14 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.1)
PackageArchitecture: all
SambaServerRegression: Yes
SourcePackage: samba
Title: package samba-common 2:3.4.7~dfsg-1ubuntu3.7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
Emmanuel Clerc (em-clerc) wrote :
Revision history for this message
Emmanuel Clerc (em-clerc) wrote :

A few weeks ago, I configured a samba server to get files from a windows platform.

As I don't need it any more, I stopped samba and I renamed the /etc/samba/smb.conf to /etc/samba/smb-localnet.conf

Maybe the package was disturbed by this de-activated configuration...

Revision history for this message
Ursula Junque (ursinha) wrote :

From log:
Setting up samba-common (2:3.4.7~dfsg-1ubuntu3.7) ...
Not replacing deleted config file /etc/samba/smb.conf
Install/upgrade will fail. To recover, please try:
  sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
  sudo dpkg --configure -a
dpkg: error processing samba-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libwbclient0 (2:3.4.7~dfsg-1ubuntu3.7) ...

Revision history for this message
Ursula Junque (ursinha) wrote :

Hi Emmanuel!

First of all, thanks for your time reporting this bug.

Have you tried what the error message suggests? That would be:
 $ sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
 $ sudo dpkg --configure -a

It seems the error is because the file is missing, as you said before. In this case it would be a local issue, not a package one. Can you confirm that please by trying to run the above commands?

Thanks!

Changed in samba (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Emmanuel Clerc (em-clerc) wrote :

Hi Ursula,

here is the output of the requested commands.

The configuration seems successful.

$ sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
[sudo] password for eclerc:

$ sudo dpkg --configure -a
Setting up samba-common (2:3.4.7~dfsg-1ubuntu3.7) ...

Setting up smbclient (2:3.4.7~dfsg-1ubuntu3.7) ...
Setting up samba-common-bin (2:3.4.7~dfsg-1ubuntu3.7) ...

Setting up samba (2:3.4.7~dfsg-1ubuntu3.7) ...
smbd start/running, process 2974
nmbd start/running, process 2983

Changed in samba (Debian):
status: Unknown → Confirmed
Steve Langasek (vorlon)
summary: - package samba-common 2:3.4.7~dfsg-1ubuntu3.7 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 1
+ nmbd fails to start if smb.conf is missing due to testparm failure
Changed in samba (Ubuntu):
status: Incomplete → Triaged
Changed in samba (Debian):
importance: Unknown → Undecided
status: Confirmed → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.