ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Liakhovets <liakh@dol.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] New samba not working
Date: Tue, 22 Dec 2015 15:45:19 +0300
Message-ID: <web-1305903555@cgp.dol.ru> (raw)
In-Reply-To: <web-1305674132@cgp.dol.ru>

On Sun, 20 Dec 2015 14:48:23 +0300 Andrey Liakhovets wrote:
>Текущий branch P7.
>samba-4.0.26-alt0.M70P.3
>systemd-201-alt1.M70P.5
>
>После dist-upgrade имею samba-4.1.22-alt0.M70P.1 и ни одного процесса
>nmbd, smbd.
>
>В логах из необычного только такие сообщения:
>
>systemd[1]: smb.service operation timed out. Terminating.
>systemd[1]: Failed to start Samba SMB Daemon.
>systemd[1]: Unit smb.service entered failed state
>
>nmbd[2334]: [2015/12/20 11:42:37.297440, 0] ../source3/nmbd/nmbd.c:57(terminate)
>nmbd[2334]: Got SIGTERM: going down...
>
>Такое же и при ручном перезапуске nmb.service и smb.service,
>а также при рестарте одного из компьютеров.


On Sun, 20 Dec 2015 18:28:24 +0300 Andrey Liakhovets wrote:
>On Sun, 20 Dec 2015 17:07:33 +0300 Michael Shigorin wrote:
>>On Sun, Dec 20, 2015 at 02:48:23PM +0300, Andrey Liakhovets wrote:
>>> На форуме Федоры http://forums.fedoraforum.org/showthread.php?t=303937
>>> (7th April 2015) нашёл решение и нечто похожее на объяснение:
>>> 
>>> "... samba actually starts but systemd reports the timeout.
>>> I believe this is due to the newer samba packages being compiled against
>>> newer systemd packages and there is some interaction issue.
>>> To fix it, I copied nmb.service and smb.service from /usr/lib/systemd/system/
>>> into /etc/systemd/system/. I then edited the /etc/ copies to change
>>> the [Service] Type from 'notify' to 'forking'.
>>> You should then do a "systemctl daemon-reload". ..."
>>> 
>>> После этого nmbd и smbd пока в самом деле живы.
>>> 
>>> Что это? и как правильно действовать?
>>> (откатывать samba не хочется из-за исправленных CVE...)
>>
>>Сейчас хорошо бы приложить полученные файлики или даже лучше
>>строчку для sed по /usr/lib/systemd/system/{n,s}mb.service
>>(чтоб не остались перекрытыми после исправления пакета);
>>а вообще это критичный баг, который стоит повесить.
>>
>>Также забросил на форум:
>>http://forum.altlinux.org/index.php?topic=32230.540
>
>Разница выглядит так (у нас в P7 эти unit'ы в другом месте):
>
>
>--- /lib/systemd/system/nmb.service     2015-12-18 10:11:22.000000000 +0300
>+++ /etc/systemd/system/nmb.service     2015-12-20 15:39:48.064689719 +0300
>@@ -3,7 +3,7 @@
> After=syslog.target network.target
> 
> [Service]
>-Type=notify
>+Type=forked
> NotifyAccess=all
> PIDFile=/run/nmbd.pid
> EnvironmentFile=-/etc/sysconfig/samba
>
>
>--- /lib/systemd/system/smb.service     2015-12-18 10:11:22.000000000 +0300
>+++ /etc/systemd/system/smb.service     2015-12-20 15:40:00.936497182 +0300
>@@ -3,7 +3,7 @@
> After=syslog.target network.target nmb.service winbind.service
> 
> [Service]
>-Type=notify
>+Type=forked
> NotifyAccess=all
> PIDFile=/run/smbd.pid
> LimitNOFILE=16384
>
>
>Возможно, то же самое надо и для winbind, но у меня он выключен.


К сожалению, новая samba-4.1.22-alt0.M70P.2 положение не исправила.
Симптомы такие же, как описано выше (проверил на одной системе).

Попробую вечером зарегистрировать ошибку.

Андрей Ляховец


  reply	other threads:[~2015-12-22 12:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-20 11:48 Andrey Liakhovets
2015-12-20 14:07 ` Michael Shigorin
2015-12-20 15:28   ` Andrey Liakhovets
2015-12-22 12:45     ` Andrey Liakhovets [this message]
2015-12-22 13:21       ` Andrey Cherepanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=web-1305903555@cgp.dol.ru \
    --to=liakh@dol.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git