package samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to upgrade due to invalid value 'share' for parameter 'security'

Bug #1634119 reported by h1bymask
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

apt upgrade returns error with dependencies failing to upgrade samba. It fails during starting /etc/init.d/smbd service with systemd. apt upgrade prints the following error:

Job for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.

After that line the fail info about the packages which depend on the samba being upgraded is apparently printed.

# systemctl status smbd.service
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Пн 2016-10-17 14:13:16 MSK; 55s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 32705 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)
#

# journalctl -xe (translated some captions into English):
Oct 17 14:09:40 kartashev2 systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
-- Subject: Начинается запуск юнита smbd.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Starting running unit smbd.service.
Oct 17 14:09:40 kartashev2 smbd[23272]: * Starting SMB/CIFS daemon smbd
Oct 17 14:09:41 kartashev2 smbd[23272]: ...fail!
Oct 17 14:09:41 kartashev2 systemd[1]: smbd.service: Control process exited, code=exited status=1
Oct 17 14:09:41 kartashev2 systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
-- Subject: Unit error smbd.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit failed smbd.service.
--
-- Result: failed.

# /usr/sbin/smbd -F -S
smbd version 4.3.11-Ubuntu started.
Copyright Andrew Tridgell and the Samba Team 1992-2015
WARNING: Ignoring invalid value 'share' for parameter 'security'
error opening config file '/etc/samba/smb.conf'

# lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04

# apt-cache policy samba
samba:
  Installed: 2:4.3.11+dfsg-0ubuntu0.16.04.1
  Candidate: 2:4.3.11+dfsg-0ubuntu0.16.04.1
  Version table:
 *** 2:4.3.11+dfsg-0ubuntu0.16.04.1 500
        500 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://ru.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2:4.3.8+dfsg-0ubuntu1 500
        500 http://ru.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

If 'security = share' is removed from smbd.conf then all runs fine. Everything worked with previous version.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: samba 2:4.3.11+dfsg-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.4.0-43.63-generic 4.4.21
Uname: Linux 4.4.0-43-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Thu Oct 13 21:13:20 2016
DpkgHistoryLog:
 Start-Date: 2016-10-13 21:13:18
 Commandline: apt-get install kpartx
 Requested-By: shmyak (1000)
 Install: kpartx:amd64 (0.5.0+git1.656f8865-5ubuntu2.2)
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 1
InstallationDate: Installed on 2010-10-12 (2196 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
NmbdLog:
 Packet send failed to 10.0.3.255(138) ERRNO=Недопустимый аргумент
   Packet send failed to 10.0.3.255(138) ERRNO=Недопустимый аргумент
OtherFailedConnect: Yes
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1.1
 apt 1.2.12~ubuntu16.04.1
SambaServerRegression: Yes
SmbConfIncluded: Yes
SmbLog:

SourcePackage: samba
Title: package samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 1
UpgradeStatus: Upgraded to xenial on 2016-08-19 (58 days ago)

Revision history for this message
h1bymask (h1bymask) wrote :
Revision history for this message
Joshua Powers (powersj) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Also a huge thank you for already collecting the additional data.

From the logs:
WARNING: Ignoring invalid value 'share' for parameter 'security'
error opening config file '/etc/samba/smb.conf'

As you noted the share parameter appears to be keeping things from working. A quick search shows that share=security is deprecated. A quick search of the community forums found this page: https://ubuntuforums.org/showthread.php?t=1962617 which may help you.

Since this appears to be a local configuration problem and not a bug in Ubuntu, I'm marking this bug as Incomplete. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
tags: added: bugpattern-written
peily26 (peilymobil26)
Changed in samba (Ubuntu):
status: Expired → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba (Ubuntu):
status: New → Confirmed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi peily26,
to reopen please give it some detail why you think this is an actual bug in Ubuntu and not just a configuration issue as outlined in comment #2 ?
If your issue is only similar, please open a new bug for it instead.

Changed in samba (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> If 'security = share' is removed from smbd.conf then all runs fine. Everything worked with
> previous version.

The "share" value for the security parameter has been deprecated.

jignesh (ethical16)
Changed in samba (Ubuntu):
status: Expired → Incomplete
Changed in samba (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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