package samba 2:4.8.4+dfsg-2ubuntu2.1 failed to install/upgrade: installed samba package post-installation script subprocess returned error exit status 1

Bug #1811892 reported by mark wehner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

goal: add ubuntu 18.10 to the an existing windows AD domain.

smbd.service fails to start

root@s3i-297yw52:/etc/samba# systemctl status smbd.service
● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-01-15 15:01:03 EST; 29s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 3794 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=255)
 Main PID: 3794 (code=exited, status=255)

Jan 15 15:01:03 s3i-297yw52 smbd[3794]: Unknown parameter encountered: "client user spnego"
Jan 15 15:01:03 s3i-297yw52 smbd[3794]: [2019/01/15 15:01:03.205701, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Jan 15 15:01:03 s3i-297yw52 smbd[3794]: Ignoring unknown parameter "client user spnego"
Jan 15 15:01:03 s3i-297yw52 smbd[3794]: [2019/01/15 15:01:03.217022, 0] ../source3/auth/auth_util.c:1372(make_new_session_info_guest)
Jan 15 15:01:03 s3i-297yw52 smbd[3794]: create_local_token failed: NT_STATUS_NO_MEMORY
Jan 15 15:01:03 s3i-297yw52 smbd[3794]: [2019/01/15 15:01:03.219420, 0] ../source3/smbd/server.c:1993(main)
Jan 15 15:01:03 s3i-297yw52 smbd[3794]: ERROR: failed to setup guest info.
Jan 15 15:01:03 s3i-297yw52 systemd[1]: smbd.service: Main process exited, code=exited, status=255/n/a
Jan 15 15:01:03 s3i-297yw52 systemd[1]: smbd.service: Failed with result 'exit-code'.
Jan 15 15:01:03 s3i-297yw52 systemd[1]: Failed to start Samba SMB Daemon.

root@s3i-297yw52:/etc/samba# cat /etc/samba/smb.conf
[global]

workgroup = S3I
client signing = yes
client user spnego = yes
kerberos method = secrets and keytab
realm = S3I.ORG
security = ads

The above smb.conf works fine with 18.04.

thank you

ProblemType: Package
DistroRelease: Ubuntu 18.10
Package: samba 2:4.8.4+dfsg-2ubuntu2.1
ProcVersionSignature: Ubuntu 4.18.0-13.14-generic 4.18.17
Uname: Linux 4.18.0-13-generic x86_64
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CIFSMounts:

Date: Tue Jan 15 13:39:15 2019
ErrorMessage: installed samba package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2019-01-11 (3 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.10
PythonDetails: /usr/bin/python2.7, Python 2.7.15+, python-minimal, 2.7.15-3
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu5
 apt 1.7.0
SambaClientRegression: Yes
SourcePackage: samba
Title: package samba 2:4.8.4+dfsg-2ubuntu2.1 failed to install/upgrade: installed samba package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
mark wehner (mwehner) wrote :
Revision history for this message
Karl Stenerud (kstenerud) wrote :

Hi Mark,

It looks like you have a typo in your config file:

    client user spnego = yes

This should be:

    client use spnego = yes

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#CLIENTUSESPNEGO

Changed in samba (Ubuntu):
status: New → Invalid
Revision history for this message
mark wehner (mwehner) wrote :

Updated the /etc/samba/smb.conf and still have the issue.

Also comment the config one line at a time, the line that causes the issue is the security = ads. This specified in https://help.ubuntu.com/lts/serverguide/sssd-ad.html.en.

Even if I comment out the security line then smb will start, but sssd will fail

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.