<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31363</bug_id>
          
          <creation_ts>2015-10-15 14:26:21 +0300</creation_ts>
          <short_desc>Unit entered failed state при обновлении</short_desc>
          <delta_ts>2018-03-04 03:10:35 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>postfix</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>systemd</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgenii Terechkov">evg</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
    
    <cc>stas.grumbler</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>153159</commentid>
    <comment_count>0</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2015-10-15 14:26:21 +0300</bug_when>
    <thetext>При обновлении 2.11.3-alt1 -&gt; 2.11.7-alt1 имеем:

=8&lt;====================================================
Preparing...                        ################################################################################################### [100%]
1: youtube-dl                       ################################################################################################### [ 20%]
Shutting down postfix: [ DONE ]
2: postfix                          ################################################################################################### [ 40%]
Creating /etc/postfix/aliases.rpmnew: [ DONE ]
Adjusting environment for postfix: [ DONE ]
Checking postfix configuration: [ DONE ]
Starting postfix: [ DONE ]
3: mkimage-profiles                 ################################################################################################### [ 60%]
4: mkimage-profiles-doc             ################################################################################################### [ 80%]
5: mozilla-plugin-adobe-flash       ################################################################################################### [100%]
Running /usr/lib/rpm/posttrans-filetriggers
/sbin/ldconfig: /usr/lib64/libnssckbi.so is not a symbolic link

Done.
[master 5895b1e] committing changes in /etc after apt run
 Author: Evgenii Terechkov &lt;evg@altlinux.org&gt;
 4 files changed, 14 insertions(+), 14 deletions(-)
root@thinkpad ~ #systemctl status postfix
* postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2015-10-15 18:01:38 KRAT; 1min 0s ago
  Process: 31341 ExecStop=/usr/sbin/postfix stop (code=exited, status=1/FAILURE)
  Process: 2169 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 2079 ExecStartPre=/usr/sbin/postfix check (code=exited, status=0/SUCCESS)
  Process: 1779 ExecStartPre=/etc/init.d/postfix adjust (code=exited, status=0/SUCCESS)
 Main PID: 2263 (code=killed, signal=TERM)

Oct 15 18:01:38 thinkpad.evg-krsk.dyndns.org systemd[1]: postfix.service: Control process exited, code=exited status=1
Oct 15 18:01:38 thinkpad.evg-krsk.dyndns.org systemd[1]: postfix.service: Unit entered failed state.
Oct 15 18:01:38 thinkpad.evg-krsk.dyndns.org systemd[1]: postfix.service: Failed with result &apos;exit-code&apos;.
Warning: postfix.service changed on disk. Run &apos;systemctl daemon-reload&apos; to reload units.
Hint: Some lines were ellipsized, use -l to show in full.
[1]    1965 exit 1     systemctl status postfix
root@thinkpad ~ #pidof master
32188
=8&lt;====================================================

т.е. старый процесс master таки умер, но systemd посчитал этот выход
нештатным. Новый процесс запустился, но юнит всё равно в состоянии
failed.

Никакими манипуляциями с systemctl мне нормализовать состояние юнита
не удалось (daemon-reload/restart/stop/start), пока не сделал kill
master-у и не запустил заново.

Воспроизвелось сегодня на двух машинах: std-def/x86_64/systemd
(приведена) и std-pae/i586/systemd (там лог аналогичен).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153160</commentid>
    <comment_count>1</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2015-10-15 14:30:01 +0300</bug_when>
    <thetext>Забыл добавить: конфигурация на обоих машинах тривиальная, почти что дефолтная.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154672</commentid>
    <comment_count>2</comment_count>
    <who name="Стас">stas.grumbler</who>
    <bug_when>2016-01-22 11:13:30 +0300</bug_when>
    <thetext>В ветке P7 аналогично, после обновления пакетов postfix* до 2.9.5-alt1 скрипт /usr/libexec/postfix/postfix-script убивает мастера.
Точную последовательность я не отследил - полигона нет, это было на &quot;боевом&quot; сервере.

Похоже, причина описана тут: https://bugzilla.altlinux.org/show_bug.cgi?id=21620</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155521</commentid>
    <comment_count>3</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2016-03-04 17:10:21 +0300</bug_when>
    <thetext>При обновлении с 2.11.7-alt1 до 2.11.7-alt2 та же проблема:

=8&lt;====================================================
20: postfix                                                                         ################################################################################################### [ 39%]
Creating /etc/postfix/aliases.rpmnew: [ DONE ]
Adjusting environment for postfix: [ DONE ]
Checking postfix configuration: [ DONE ]
Starting postfix: [ DONE ]
21: firmware-linux                                                                  ################################################################################################### [ 41%]
22: openssl                                                                         ################################################################################################### [ 43%]
23: libssl10-debuginfo                                                              ################################################################################################### [ 45%]
24: i586-libssl10                                                                   ################################################################################################### [ 47%]
25: termutils                                                                       ################################################################################################### [ 49%]
26: i586-libncurses                                                                 ################################################################################################### [ 50%]
27: libncurses-debuginfo                                                            ################################################################################################### [ 52%]
28: libncurses-devel                                                                ################################################################################################### [ 54%]
29: libncursesw                                                                     ################################################################################################### [ 56%]
30: terminfo-extra                                                                  ################################################################################################### [ 58%]
31: icdiff                                                                          ################################################################################################### [ 60%]
32: libgnutls30-debuginfo                                                           ################################################################################################### [ 62%]
33: libinput                                                                        ################################################################################################### [ 64%]
34: libnghttp2-debuginfo                                                            ################################################################################################### [ 66%]
35: libnm-glib4                                                                     ################################################################################################### [ 68%]
36: sqlite3                                                                         ################################################################################################### [ 70%]
37: libsqlite3-debuginfo                                                            ################################################################################################### [ 72%]
38: udisks2                                                                         ################################################################################################### [ 74%]
39: libwxGTK3.1                                                                     ################################################################################################### [ 76%]
40: mkimage-profiles                                                                ################################################################################################### [ 78%]
41: pciids                                                                          ################################################################################################### [ 80%]
42: perl-Date-Manip                                                                 ################################################################################################### [ 82%]
43: perl-JSON-XS                                                                    ################################################################################################### [ 84%]
44: perl-Term-ReadLine-Gnu                                                          ################################################################################################### [ 86%]
45: python-module-docutils                                                          ################################################################################################### [ 88%]
46: python-module-libcloud                                                          ################################################################################################### [ 90%]
47: python-module-snowballstemmer                                                   ################################################################################################### [ 92%]
48: rpm-build-python                                                                ################################################################################################### [ 94%]
49: system-report                                                                   ################################################################################################### [ 96%]
50: zlm-cython                                                                      ################################################################################################### [ 98%]
51: geoclue2                                                                        ################################################################################################### [100%]
Running /usr/lib/rpm/posttrans-filetriggers
/sbin/ldconfig: /usr/lib64/libnssckbi.so не является символьной ссылкой

Завершено.
[master 0cd74bf] committing changes in /etc after apt run
 Author: Evgenii Terechkov &lt;evg@altlinux.org&gt;
 10 files changed, 32 insertions(+), 8 deletions(-)
Time comsumed: 1:22,12 secs
root@thinkpad ~ #status postfix
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Пт 2016-03-04 21:02:13 KRAT; 1min 11s ago
  Process: 22595 ExecStop=/usr/sbin/postfix stop (code=exited, status=1/FAILURE)
 Main PID: 2170 (code=killed, signal=TERM)

фев 28 13:26:19 thinkpad.evg-krsk.dyndns.org systemd[1]: Starting Postfix Mail Transport Agent...
фев 28 13:26:20 thinkpad.evg-krsk.dyndns.org postfix[1738]: Adjusting environment for postfix: [ DONE ]
фев 28 13:26:21 thinkpad.evg-krsk.dyndns.org systemd[1]: Started Postfix Mail Transport Agent.
мар 04 21:02:13 thinkpad.evg-krsk.dyndns.org systemd[1]: postfix.service: Control process exited, code=exited status=1
мар 04 21:02:13 thinkpad.evg-krsk.dyndns.org systemd[1]: postfix.service: Unit entered failed state.
мар 04 21:02:13 thinkpad.evg-krsk.dyndns.org systemd[1]: postfix.service: Failed with result &apos;exit-code&apos;.
Warning: postfix.service changed on disk. Run &apos;systemctl daemon-reload&apos; to reload units.
[1]    10075 exit 1     systemctl status postfix
root@thinkpad ~ #pidof master
23381
=8&lt;====================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155522</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2016-03-04 17:12:43 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; При обновлении с 2.11.7-alt1 до 2.11.7-alt2 та же проблема:

Патчи приветствуются.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169400</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2018-03-04 03:10:35 +0300</bug_when>
    <thetext>postfix-1:2.11.11-alt1 -&gt; sisyphus:

Sun Jan 28 2018 Dmitry V. Levin &lt;ldv@altlinux&gt; 1:2.11.11-alt1
- 2.11.7 -&gt; 2.11.11.
- Disabled NIS/NIS+ support as it was disabled in glibc-2.26.0.124.98f244e-alt1.
- Restart postfix from filetrigger (closes: #21620).
- Save a copy of /etc/postfix/aliases before rewriting it (closes: #25238).
- Fixed &quot;postconf -a&quot; and &quot;postconf -A&quot; (closes: #28372).
- Fixed Cyrus SASL support (by asy@; closes: #30270).
- Fixed update procedure when systemd is active (closes: #31363).
- Recoded README.ALT-ru_RU from koi8r to utf8 (closes: #32038).
- Cleared executable bit from postfix.service (closes: #34567).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>