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

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

    <bug>
          <bug_id>29903</bug_id>
          
          <creation_ts>2014-03-22 20:21:53 +0400</creation_ts>
          <short_desc>Ругань при обновлении</short_desc>
          <delta_ts>2017-10-16 14:34:45 +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>apache2-base</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgenii Terechkov">evg</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>145781</commentid>
    <comment_count>0</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2014-03-22 20:21:53 +0400</bug_when>
    <thetext>При обновлении apache2-mod_php5 5.5.9.20140205-alt1 до 5.5.10.20140305-alt1 в выводе апта:

==============================================================
Job for httpd2.service failed. See &apos;systemctl status httpd2.service&apos; and &apos;journalctl -xn&apos; for details.
/usr/lib/rpm/apache2-mod_php5.filetrigger failed
error: execution of /usr/lib/rpm/posttrans-filetriggers scriptlet from (null)-(null)-(null) failed, exit status 1
Done.
==============================================================

При этом сервис и не должен работать:

root@thinkpad /etc #systemctl status httpd2.service
httpd2.service - The Apache2 HTTP Server
   Loaded: loaded (/lib/systemd/system/httpd2.service; disabled)
   Active: inactive (dead)

Mar 22 23:58:54 thinkpad.evg-krsk.dyndns.org systemd[1]: Unit httpd2.service cannot be reloaded because it is inactive.
root@thinkpad /etc #chkconfig --list|egrep -i &apos;apache|http&apos;
httpd2          0:off   1:off   2:on    3:on    4:on    5:on    6:off</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145782</commentid>
    <comment_count>1</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2014-03-22 20:24:17 +0400</bug_when>
    <thetext>* (в последней строчке везде on следует читать как off; это я уже после обновления игрался и забыл вернуть как было)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145783</commentid>
    <comment_count>2</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2014-03-22 20:27:20 +0400</bug_when>
    <thetext>Собственно, сейчас при каждой транзакции апта такая ругань идёт.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145784</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-03-22 21:54:39 +0400</bug_when>
    <thetext>Спасибо, посмотрю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145798</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-03-24 15:33:01 +0400</bug_when>
    <thetext>а если выполнить bash -ex /usr/lib/rpm/apache2-mod_php5.filetrigger ?

что вообще в этом файле после обновления ?

подозреваю, что PHP тут не при чём - скорее всего виноват systemd и его совместимость с классическими init скриптами.

Без systemd это не воспроизводится.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145799</commentid>
    <comment_count>5</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-03-24 15:39:56 +0400</bug_when>
    <thetext>Да, запускать нужно  так:
echo &quot;/etc/php/5.5/apache2-mod_php&quot;|sh -ex /usr/lib/rpm/apache2-mod_php5.filetrigger</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145801</commentid>
    <comment_count>6</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2014-03-24 17:13:07 +0400</bug_when>
    <thetext>root@thinkpad ~ #cat /usr/lib/rpm/apache2-mod_php5.filetrigger
#!/bin/sh
LC_ALL=C sed &apos;s|^/etc/php/5.5/apache2-mod_php/control.d||&apos; |
        egrep -qs &apos;^/etc/php/5.5/apache2-mod_php|^/usr/lib64/php/5.5.10/extensions&apos; || exit 0
/usr/sbin/a2chkconfig &gt;/dev/null
/sbin/service httpd2 condreload

root@thinkpad ~ #echo &quot;/etc/php/5.5/apache2-mod_php&quot;|sh -ex /usr/lib/rpm/apache2-mod_php5.filetrigger
+ LC_ALL=C
+ sed &apos;s|^/etc/php/5.5/apache2-mod_php/control.d||&apos;
+ egrep -qs &apos;^/etc/php/5.5/apache2-mod_php|^/usr/lib64/php/5.5.10/extensions&apos;
+ /usr/sbin/a2chkconfig
+ /sbin/service httpd2 condreload
Job for httpd2.service failed. See &apos;systemctl status httpd2.service&apos; and &apos;journalctl -xn&apos; for details.
[1]    10162 done       echo &quot;/etc/php/5.5/apache2-mod_php&quot; | 
       10163 exit 1     sh -ex /usr/lib/rpm/apache2-mod_php5.filetrigger</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145802</commentid>
    <comment_count>7</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-03-24 17:19:55 +0400</bug_when>
    <thetext>PHP тут не виноват, проблема в apache2 и systemd.
у вас service httpd2 condreload не отрабатывает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166356</commentid>
    <comment_count>8</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2017-10-16 14:34:45 +0300</bug_when>
    <thetext>у меня это не воспроизводится. Если  воспроизведёте на свежем сизифе - откройте пожалуйста.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>