Bug#740942: [samba] /etc/init.d/samba forbit systemd shutdown system

2014-10-12 Thread Felix Natter
hi,

I see the extremely long (3-5min) shutdown issue also if I don't boot
with init=/bin/systemd. The only difference is that:

- with init=/bin/systemd and without quiet, I get:
  A stop job is running for LSB: [samba...] as described in this bug.

- without init=/bin/systemd and with quiet, I do not get any terminal
  output during the waiting period, but if I hit Ctrl+Alt+Del I get
  Failed to start Store Sound Card State... (each time I hit
  Ctrl+Alt+Del)

Before enabling systemd, I disabled also-storage.service: systemctl
disable alsa-store.service, that may have an influence on the above, I
don't know.

Also, I noticed that without quiet, I get kernel messages about a
new USB device (my optical mouse) exactly 3-4 (don't remember the
exact number, but it's the same each time) times until the system shuts
down successfully.

I last updated my Debian testing on 2014-10-06.

Thanks and Best Regards,
-- 
Felix Natter


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#740942: [samba] /etc/init.d/samba forbit systemd shutdown system

2014-09-27 Thread MERLIN Philippe
I have the same problem in the stop of the computer, infringe 5 minutes. For 
the record, Systemd launches to the starting up of Samba
4 services(departments): samba, samba-ad-dc, nmbd, smbd. In the stop(ruling) 
it should stop all these services, if we look at the script of 
/etc/init.d/samba its stop samba-ad-ac, smbd, nmbd.
In a Konsole i do an :

portable:/usr/share/man# time systemctl stop samba

real5m0.350s
user0m0.000s
sys 0m0.000s
As time show : 5 minutes wait

portable:/usr/share/man# systemctl status samba
● samba.service - LSB: ensure Samba daemons are started (nmbd and smbd)
   Loaded: loaded (/etc/init.d/samba)
   Active: failed (Result: timeout) since sam. 2014-09-27 18:26:04 CEST; 46s 
ago
  Process: 31126 ExecStop=/etc/init.d/samba stop (code=killed, signal=TERM)

sept. 27 18:26:04 portable samba[31126]: Stopping samba-ad-dc (via systemctl): 
samba-ad-dc.service

portable:/usr/share/man# systemctl status samba-ad-dc
● samba-ad-dc.service - LSB: start Samba daemons for the AD DC
   Loaded: loaded (/etc/init.d/samba-ad-dc)
   Active: inactive (dead) since sam. 2014-09-27 18:26:05 CEST; 1min 55s ago
  Process: 31764 ExecStop=/etc/init.d/samba-ad-dc stop (code=exited, 
status=0/SUCCESS)
It shows that : samba and samba-ad-dc are stopped
But 

portable:/usr/share/man# systemctl status smbd
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd)
   Active: active (running) since sam. 2014-09-27 11:50:21 CEST; 6h ago
   CGroup: /system.slice/smbd.service
   ├─1732 /usr/sbin/smbd -D
   └─1746 /usr/sbin/smbd -D

sept. 27 11:50:21 portable smbd[1724]: [2014/09/27 11:50:21.658274,  0] 
../source3/param/loadparm.c:3155(lp_do_parameter)
sept. 27 11:50:21 portable smbd[1724]: Ignoring unknown parameter password 
level
sept. 27 11:50:21 portable smbd[1724]: [2014/09/27 11:50:21.658774,  0] 
../source3/param/loadparm.c:3155(lp_do_parameter)
sept. 27 11:50:21 portable smbd[1724]: Ignoring unknown parameter share 
modes
sept. 27 11:50:21 portable smbd[1724]: [2014/09/27 11:50:21.658899,  0] 
../source3/param/loadparm.c:3155(lp_do_parameter)
sept. 27 11:50:21 portable smbd[1724]: Ignoring unknown parameter share 
modes
sept. 27 11:50:21 portable smbd[1724]: [2014/09/27 11:50:21.659245,  0] 
../source3/param/loadparm.c:3155(lp_do_parameter)
sept. 27 11:50:21 portable smbd[1724]: Ignoring unknown parameter share 
modes
sept. 27 11:50:21 portable smbd[1694]: Starting SMB/CIFS daemon: smbd.
sept. 27 11:50:24 portable smbd[1732]: [2014/09/27 11:50:24.239602,  0] 
../lib/util/become_daemon.c:136(daemon_ready)
portable:/usr/share/man# systemctl status nmbd
● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
   Loaded: loaded (/etc/init.d/nmbd)
   Active: active (running) since sam. 2014-09-27 11:49:56 CEST; 6h ago
   CGroup: /system.slice/nmbd.service
   └─1034 /usr/sbin/nmbd -D

sept. 27 11:49:56 portable nmbd[1033]: [2014/09/27 11:49:56.510769,  0] 
../source3/param/loadparm.c:3067(lp_set_enum_parm)
sept. 27 11:49:56 portable nmbd[1033]: WARNING: Ignoring invalid value 'share' 
for parameter 'security'
sept. 27 11:49:56 portable nmbd[1033]: [2014/09/27 11:49:56.579792,  0] 
../source3/param/loadparm.c:3155(lp_do_parameter)
sept. 27 11:49:56 portable nmbd[1033]: Ignoring unknown parameter password 
level
sept. 27 11:49:56 portable nmbd[1034]: [2014/09/27 11:49:56.581992,  0] 
../source3/nmbd/nmbd_subnetdb.c:250(create_subnets)
sept. 27 11:49:56 portable nmbd[920]: Starting NetBIOS name server: nmbd.
sept. 27 11:49:56 portable nmbd[1034]: create_subnets: No local IPv4 non-
loopback interfaces !
sept. 27 11:49:56 portable nmbd[1034]: [2014/09/27 11:49:56.582973,  0] 
../source3/nmbd/nmbd_subnetdb.c:251(create_subnets)
sept. 27 11:49:56 portable nmbd[1034]: create_subnets: Waiting for an 
interface to appear ...
sept. 27 11:50:46 portable nmbd[1034]: [2014/09/27 11:50:46.586911,  0] 
../lib/util/become_daemon.c:136(daemon_ready)
portable:/usr/share/man# 
But smbd and nmbd services are still Active.
If i do in a Konsole : 
systemctl stop smbd or nmbd its stop correctly.


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#740942: [samba] /etc/init.d/samba forbit systemd shutdown system

2014-09-24 Thread Daniel Schröter
Hello,

On Tue, 23 Sep 2014 07:59:10 +0200 Cesare Leonardi c...@bernispa.com wrote:
 I'm not 100% sure, but i think i'm experiencing this since the latest
 upgrade to systemd 215-4.

I can confirm this. I downgraded systemd to 208-6 and everything is
working fine again.

Bye


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#740942: [samba] /etc/init.d/samba forbit systemd shutdown system

2014-09-23 Thread Cesare Leonardi
Package: samba
Version: 2:4.1.11+dfsg-1
Followup-For: Bug #740942

I'm experiencing the same problem: 5 minute to shutdown samba service
and the same if i try to stop it on the command line.
I believed it was related to the fact that i use samba also to login in
an active domain but this bug report makes me think it could be
unrelated.

I'm not 100% sure, but i think i'm experiencing this since the latest
upgrade to systemd 215-4.

From this bug report i still haven't get what is the reason for this
delay and i'm currently unable to workaround it.

Let me know if you need any other infos, config file or else.

Cesare.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.16-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages samba depends on:
ii  adduser  3.113+nmu3
ii  dpkg 1.17.13
ii  libasn1-8-heimdal1.6~rc2+dfsg-8
ii  libbsd0  0.7.0-2
ii  libc62.19-11
ii  libcomerr2   1.42.12-1
ii  libhdb9-heimdal [heimdal-hdb-api-8]  1.6~rc2+dfsg-8
ii  libkdc2-heimdal  1.6~rc2+dfsg-8
ii  libkrb5-26-heimdal   1.6~rc2+dfsg-8
ii  libldb1  1:1.1.17-1
ii  libpam-modules   1.1.8-3.1
ii  libpam-runtime   1.1.8-3.1
ii  libpopt0 1.16-10
ii  libpython2.7 2.7.8-7
ii  libroken18-heimdal   1.6~rc2+dfsg-8
ii  libtalloc2   2.1.1-2
ii  libtdb1  1.3.0-1.1
ii  libtevent0   0.9.21-1
ii  lsb-base 4.1+Debian13
ii  multiarch-support2.19-11
ii  procps   1:3.3.9-7
ii  python   2.7.8-1
ii  python-dnspython 1.12.0-1
ii  python-ntdb  1.0-5
ii  python-samba 2:4.1.11+dfsg-1
pn  python2.7:anynone
ii  samba-common 2:4.1.11+dfsg-1
ii  samba-common-bin 2:4.1.11+dfsg-1
ii  samba-dsdb-modules   2:4.1.11+dfsg-1
ii  samba-libs   2:4.1.11+dfsg-1
ii  tdb-tools1.3.0-1.1
ii  update-inetd 4.43

Versions of packages samba recommends:
ii  attr   1:2.4.47-2
ii  logrotate  3.8.7-1
ii  samba-vfs-modules  2:4.1.11+dfsg-1

Versions of packages samba suggests:
ii  bind9  1:9.9.5.dfsg-4
ii  bind9utils 1:9.9.5.dfsg-4
pn  ctdb   none
pn  ldb-tools  none
ii  ntp1:4.2.6.p5+dfsg-3.1
pn  smbldap-tools  none
ii  winbind2:4.1.11+dfsg-1

-- debconf information:
  samba-common/title:
  samba/run_mode: daemons


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#740942: [samba] /etc/init.d/samba forbit systemd shutdown system

2014-09-23 Thread Cesare Leonardi
Package: samba
Version: 2:4.1.11+dfsg-1
Followup-For: Bug #740942

Some notes.
On shutdown/reboot, occasionally i see this message from systemd,
with a countdown and a moving asterisk:
-
A stop job is running for LSB: ensure samba daemons are started (nmbd
and smbd) ( 3 min 2 s / 5 min )
-
But normally it's just silent.

Launching this:
date ; systemctl stop samba ; date
In /var/log/syslog i see:
Sep 23 08:58:26 barone systemd[1]: samba.service stopping timed out. 
Terminating.
Sep 23 08:58:26 barone samba[1324]: Stopping samba-ad-dc (via systemctl): 
samba-ad-dc.service
Sep 23 08:58:26 barone systemd[1]: Unit samba.service entered failed state.
Sep 23 08:58:27 barone samba-ad-dc[1383]: Stopping Samba AD DC daemon: samba.

On the command line, the delay happens with both these commands:
systemctl stop samba
service samba stop

But with the old way there is no delay and there is some informative output:
/etc/init.d/samba stop
* Stopping samba-ad-dc (via systemctl): samba-ad-dc.service
* Stopping smbd (via systemctl): smbd.service
* Stopping nmbd (via systemctl): nmbd.service

Launching the previous commands like that:
date ; /etc/init.d/samba-ad-dc stop ; date; sleep 2 ; /etc/init.d/smbd stop ; 
date ; sleep 2 ; /etc/init.d/nmbd stop ; date
mar 23 set 2014, 09.13.26, CEST
[ ok ] Stopping samba-ad-dc (via systemctl): samba-ad-dc.service.
mar 23 set 2014, 09.13.27, CEST
[ ok ] Stopping smbd (via systemctl): smbd.service.
mar 23 set 2014, 09.13.30, CEST
[ ok ] Stopping nmbd (via systemctl): nmbd.service.
mar 23 set 2014, 09.13.33, CEST

In /var/log/syslog i see some moessages:
Sep  3 09:13:27 barone samba-ad-dc[1661]: Stopping Samba AD DC daemon: samba.
Sep 23 09:13:29 barone smbd[1311]:   STATUS=daemon 'smbd' finished starting up 
and ready to serve connectionsFailed to delete pidfile /var/run/samba/smbd.pid. 
Error was No such file or directory
Sep 23 09:13:30 barone smbd[1694]: Stopping SMB/CIFS daemon: smbd.
Sep 23 09:13:32 barone nmbd[1280]:   STATUS=daemon 'nmbd' finished starting up 
and ready to serve connectionsGot SIGTERM: going down...
Sep 23 09:13:33 barone nmbd[1727]: Stopping NetBIOS name server: nmbd.

Moreover, the following separate commands shows no delay:
systemctl stop samba-ad-dc.service
systemctl stop smbd.service
systemctl stop nmbd.service
But if after those i run the following (namely with the three services
already stopped), it just delay for 5 min as usual:
systemctl stop samba

The following doesn't help either:
systemctl stop winbind
systemctl stop samba

Cesare.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.16-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages samba depends on:
ii  adduser  3.113+nmu3
ii  dpkg 1.17.13
ii  libasn1-8-heimdal1.6~rc2+dfsg-8
ii  libbsd0  0.7.0-2
ii  libc62.19-11
ii  libcomerr2   1.42.12-1
ii  libhdb9-heimdal [heimdal-hdb-api-8]  1.6~rc2+dfsg-8
ii  libkdc2-heimdal  1.6~rc2+dfsg-8
ii  libkrb5-26-heimdal   1.6~rc2+dfsg-8
ii  libldb1  1:1.1.17-1
ii  libpam-modules   1.1.8-3.1
ii  libpam-runtime   1.1.8-3.1
ii  libpopt0 1.16-10
ii  libpython2.7 2.7.8-7
ii  libroken18-heimdal   1.6~rc2+dfsg-8
ii  libtalloc2   2.1.1-2
ii  libtdb1  1.3.0-1.1
ii  libtevent0   0.9.21-1
ii  lsb-base 4.1+Debian13
ii  multiarch-support2.19-11
ii  procps   1:3.3.9-7
ii  python   2.7.8-1
ii  python-dnspython 1.12.0-1
ii  python-ntdb  1.0-5
ii  python-samba 2:4.1.11+dfsg-1
pn  python2.7:anynone
ii  samba-common 2:4.1.11+dfsg-1
ii  samba-common-bin 2:4.1.11+dfsg-1
ii  samba-dsdb-modules   2:4.1.11+dfsg-1
ii  samba-libs   2:4.1.11+dfsg-1
ii  tdb-tools1.3.0-1.1
ii  update-inetd 4.43

Versions of packages samba recommends:
ii  attr   1:2.4.47-2
ii  logrotate  3.8.7-1
ii  samba-vfs-modules  2:4.1.11+dfsg-1

Versions of packages samba suggests:
ii  bind9  1:9.9.5.dfsg-4
ii  bind9utils 1:9.9.5.dfsg-4
pn  ctdb   none
pn  ldb-tools  none
ii  ntp1:4.2.6.p5+dfsg-3.1
pn  smbldap-tools  none
ii  winbind2:4.1.11+dfsg-1

-- debconf information:
  samba/run_mode: