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

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

    <bug>
          <bug_id>53125</bug_id>
          
          <creation_ts>2025-02-17 20:57:45 +0300</creation_ts>
          <short_desc>mimir - Не запускается Systemd сервис</short_desc>
          <delta_ts>2025-02-19 15:49:09 +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>mimir</component>
          <version>unstable</version>
          <rep_platform>x86_64</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>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Руслан Вишталмагомедов">vishtalmagomedovrg</reporter>
          <assigned_to name="alton@altlinux.org">alton</assigned_to>
          <cc>alton</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>259464</commentid>
    <comment_count>0</comment_count>
    <who name="Руслан Вишталмагомедов">vishtalmagomedovrg</who>
    <bug_when>2025-02-17 20:57:45 +0300</bug_when>
    <thetext>ALT Server p11 x86-64 (обновленный до Sisyphus)

версия: mimir-2.15.0-alt2.x86_64

Не запускается systemd сервис mimir.service

Шаги воспроизведения:
1. # systemctl start mimir

Результат:
Job for mimir.service failed because the control process exited with error code.
See &quot;systemctl status mimir.service&quot; and &quot;journalctl -xeu mimir.service&quot; for details.

Ожидаемый результат: Сервис запущен без ошибок

journalctl показывает следующее:

(mimir)[1965]: mimir.service: Referenced but unset environment variable evaluates to an empty string: CUSTOM_ARGS, LOG_LEVEL
mimir[1965]: flag needs an argument: -log.level
mimir[1965]: Run with -help to get a list of available parameters

судя по всему, дело в строчке:
/usr/lib/systemd/system/mimir.service:17: EnvironmentFile=$OS_ENV_DIR/mimir

Проблема решается указанием переменных следующим образом:
Environment=&quot;LOG_LEVEL=info&quot;
Environment=&quot;CUSTOM_ARGS=&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259598</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-02-19 15:49:09 +0300</bug_when>
    <thetext>mimir-2.15.0-alt3 -&gt; sisyphus:

 Wed Feb 19 2025 Anton Meleshnikov &lt;alton@altlinux&gt; 2.15.0-alt3
 - Added environment variables for systemd and config files (ALT #53125).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>