[Bug 857454] New: missing /etc/sysconfig/samba
https://bugzilla.novell.com/show_bug.cgi?id=857454 https://bugzilla.novell.com/show_bug.cgi?id=857454#c0 Summary: missing /etc/sysconfig/samba Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: wagner-thomas@gmx.at QAContact: samba-maintainers@SuSE.de Found By: --- Blocker: --- User-Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.16 In openSUSE 13.1 /etc/sysconfig/samba is missing. However, /usr/lib/systemd/system/nmb.service as well as /usr/lib/systemd/system/nmb.service try to get startup parameter for smbd and nmbd from this missing file. As result, no startup parameter is used for smbd and nmbd. This leads to the following errors in /var/log/samba/log.smb and /var/log/samba/log.nmb : "standard input is not a socket, assuming -D option" Nevertheless smbd and nmbd are started, so everything works at the firste glance. However, I don't know what else (besides the missing -D parameter) was stored in the missing /etc/sysconfig/samba Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c1
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c2
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c3
Thomas Wagner
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c4
Lars Müller
I added the repo you mentioned and issued a "zypper dup". Now there are three issues with this:
1) I got the following error message: (55/55) Installation von: samba-4.1.3-8.1 ....................................................[fertig] Zusätzliche rpm-Ausgabe: Updating /etc/sysconfig/samba... /var/tmp/rpm-tmp.4LinQT: line 8: /etc/init.d/nmb: No such file or directory /var/tmp/rpm-tmp.4LinQT: line 8: /etc/init.d/smb: No such file or directory
IMHO this is a whole new bug since the update wants to access outdated files in /etc/init.d, which are systemd *.service files by now.
I've used the %fillup_only macro as documented here: http://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25fillup_o... @Michale: Is %fillup_only deprecated or are we using it the wrong from the samba spec file?
2) I had to disable AppArmour. Otherwise samba refuses to start with the following errors in in /var/log/samba/log.smbd and /var/log/samba/log.nmbd [2014/01/06 23:11:12.660878, 0] ../source3/lib/util_tdb.c:313(tdb_log) tdb(__NULL__): tdb_open_ex: called with name == NULL [2014/01/06 23:11:12.685756, 0] ../lib/util/util.c:206(directory_create_or_exist) lstat failed on directory (null): Bad address
IMHO the collision with apparmor and samba is allready addressed in another bugreport.
bnc#856759 and with the current %post scripts of the samba and samba-client package Christian expected it to work even without a modified AppArmor package.
3) The bug we are talking about here is not really fixed with this update. Although /etc/sysconfig/samba is now properly installed, the missing "-D" parameter for smdb is not yet set by default. Ok, now you I have the possibility to do it by Yast->sysconfig, but smbd and smbd shouldn't be forced to this error message at startup: [2014/01/06 23:14:33.983871, 0] ../source3/smbd/server.c:1278(main) standard input is not a socket, assuming -D option
Which trouble do you see or expect here beside the log message? smbd did the right thing and assumed -D We might discuss upstream if this should still stay a log level 0 message. Maybe 3 or 5 fits better nowadays. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c5
--- Comment #5 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c6
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c7
Lars Müller
From my further investigation this morning there isn't anything to ask Rudi about. This smells like the reporter had a mix of openSUSE 13.1 and build service repositories for openSUSE 12.3 mixed.
I had been able to reproduce the very same output as soon as I added the network:samba:STABLE openSUSE 12.3 repository to an openSUSE 13.1 system. As soon as the correct network:samba:STABLE openSUSE 13.1 repository got added all worked well and there wasn't longer this 'No such file or directory' output as seen with comment #3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c8
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c9
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c10
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c12
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c13
Thomas Wagner
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c14
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c15
--- Comment #15 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c16
--- Comment #16 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c17
--- Comment #17 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c18
--- Comment #18 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c19
--- Comment #19 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c20
--- Comment #20 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c21
Thomas Wagner
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c22
--- Comment #22 from Lars Müller
The variable names in /etc/sysconfig/samba are correct now. The parameter -D is still missing, with sysconfig there is now at least a easy way to set it.
That's intentional and still in discussion upstream. See https://lists.samba.org/archive/samba-technical/2014-January/097304.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c23
David Disseldorp
The variable names in /etc/sysconfig/samba are correct now. The parameter -D is still missing, with sysconfig there is now at least a easy way to set it.
That's intentional and still in discussion upstream. See https://lists.samba.org/archive/samba-technical/2014-January/097304.html
I tend to agree with Andrew, that we should just specify -D in the default smbd options config (SMBDOPTIONS), as was the case with SysV init. We could do this by adding a new packaging/SuSE/samba.sysconfig file, changing the upstream default at packaging/systemd/samba.sysconfig, or using RHEL's sysconfig file at packaging/RHEL/setup/samba.sysconfig. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c24
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c26
Don Hughes
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c27
--- Comment #27 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c28
--- Comment #28 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c29
--- Comment #29 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c30
--- Comment #30 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=857454
https://bugzilla.novell.com/show_bug.cgi?id=857454#c31
Lars Müller
http://bugzilla.novell.com/show_bug.cgi?id=857454
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com