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

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

    <bug>
          <bug_id>33634</bug_id>
          
          <creation_ts>2017-07-11 14:54:00 +0300</creation_ts>
          <short_desc>Recent logrotate refuses to rotate Sphinx&apos;s logs</short_desc>
          <delta_ts>2017-10-26 21:33:59 +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>sphinx</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></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikolay A. Fetisov">naf</reporter>
          <assigned_to name="serjigva@altlinux.org">serjigva</assigned_to>
          <cc>serjigva</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>164651</commentid>
    <comment_count>0</comment_count>
    <who name="Nikolay A. Fetisov">naf</who>
    <bug_when>2017-07-11 14:54:00 +0300</bug_when>
    <thetext>Для sphinx-2.2.11-alt3 конфигурация logrotate.d/sphinx вызывает проблемы 
с текущим logrotate:

# logrotate -f /etc/logrotate.d/sphinx
error: skipping &quot;/var/log/sphinx/query.log&quot; because parent directory has insecure permissions (it&apos;s group writable and has no sticky bit set); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping &quot;/var/log/sphinx/searchd.log&quot; because parent directory has insecure permissions (it&apos;s group writable and has no sticky bit set); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.

Для исправления достаточно добавить в скрипт logrotate&apos;а строку
su _sphinx _sphinx

Сам скрипт создаётся в spec-файле.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164652</commentid>
    <comment_count>1</comment_count>
      <attachid>7141</attachid>
    <who name="Nikolay A. Fetisov">naf</who>
    <bug_when>2017-07-11 14:55:09 +0300</bug_when>
    <thetext>Created attachment 7141
sphinx.spec.patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166614</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-10-26 21:33:59 +0300</bug_when>
    <thetext>sphinx-2.2.11-alt5.S1 -&gt; sisyphus:

Thu Oct 26 2017 Anton Farygin &lt;rider@altlinux.ru&gt; 2.2.11-alt5.S1
- fixed localstatedir location
- fixed typo in systemd unit (closes: #33177)
- rotate logs under unprivileged user (closes: #33634)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>7141</attachid>
            <date>2017-07-11 14:55:09 +0300</date>
            <delta_ts>2017-07-11 14:55:09 +0300</delta_ts>
            <desc>sphinx.spec.patch</desc>
            <filename>sphinx.spec.patch</filename>
            <type>text/plain</type>
            <size>164</size>
            <attacher name="Nikolay A. Fetisov">naf</attacher>
            
              <data encoding="base64">QEAgLTEyNyw2ICsxMjcsNyBAQCBjYXQgPiAlYnVpbGRyb290JV9zeXNjb25mZGlyL2xvZ3JvdGF0
ZS5kL3NwaGlueCA8PCBFT0YKICAgICAgICBjb21wcmVzcwogICAgICAgIG5vdGlmZW1wdHkKICAg
ICAgICBtaXNzaW5nb2sKKyAgICAgICBzdSBfc3BoaW54IF9zcGhpbngKIH0KIEVPRgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>