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

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

    <bug>
          <bug_id>56561</bug_id>
          
          <creation_ts>2025-10-22 16:56:00 +0300</creation_ts>
          <short_desc>После запуска службы prometheus-pve-exporter падает с ошибкой</short_desc>
          <delta_ts>2025-10-30 18:27:33 +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>python3-module-prometheus-pve-exporter</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="Oleg Kolesnichenko">kolesnichenko</reporter>
          <assigned_to name="Andrew Vasilyev">andy</assigned_to>
          <cc>alimektor</cc>
    
    <cc>andy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>275275</commentid>
    <comment_count>0</comment_count>
    <who name="Oleg Kolesnichenko">kolesnichenko</who>
    <bug_when>2025-10-22 16:56:00 +0300</bug_when>
    <thetext>Установленные пакеты:

- prometheus-3.5.0-alt1.x86_64
- python3-module-prometheus-pve-exporter-3.4.1-alt1.noarch

Система обновлена:

# cat /etc/os-release 
NAME=&quot;ALT Server&quot;
VERSION=&quot;11.1&quot;
ID=altlinux
VERSION_ID=11.1
PRETTY_NAME=&quot;ALT Server 11.1 (Mendelevium)&quot;
ANSI_COLOR=&quot;1;33&quot;
CPE_NAME=&quot;cpe:/o:alt:server:11.1&quot;
BUILD_ID=&quot;ALT Server 11.0&quot;
ALT_BRANCH_ID=&quot;p11&quot;
HOME_URL=&quot;https://basealt.ru/&quot;
BUG_REPORT_URL=&quot;https://bugs.altlinux.org/&quot;
DOCUMENTATION_URL=&quot;https://docs.altlinux.org/&quot;
SUPPORT_URL=&quot;https://support.basealt.ru/&quot;
VARIANT_ID=edition_server
VARIANT=&quot;ALT Server&quot;
LOGO=alt-server-logo

В момент запуска всё ОК:

# systemctl status prometheus-pve-exporter.service
● prometheus-pve-exporter.service - Prometheus Proxmox VE Exporter
     Loaded: loaded (/usr/lib/systemd/system/prometheus-pve-exporter.service; disabled; preset: disabled)
     Active: active (running) since Wed 2025-10-22 16:41:18 MSK; 18ms ago
 Invocation: 778ec58056284515a43135e29e1e918d
       Docs: https://github.com/prometheus-pve/prometheus-pve-exporter
   Main PID: 1850 ((exporter))
      Tasks: 1 (limit: 4679)
     Memory: 0B (peak: 0B)
        CPU: 0
     CGroup: /system.slice/prometheus-pve-exporter.service
             └─1850 &quot;(exporter)&quot;

окт 22 16:41:18 grafana.kou.alt systemd[1]: prometheus-pve-exporter.service: Scheduled restart job, restart counter is at 1.
окт 22 16:41:18 grafana.kou.alt systemd[1]: Started prometheus-pve-exporter.service - Prometheus Proxmox VE Exporter.

Через несколько секунд:

# systemctl status prometheus-pve-exporter.service
× prometheus-pve-exporter.service - Prometheus Proxmox VE Exporter
     Loaded: loaded (/usr/lib/systemd/system/prometheus-pve-exporter.service; disabled; preset: disabled)
     Active: failed (Result: exit-code) since Wed 2025-10-22 16:41:20 MSK; 722ms ago
   Duration: 311ms
 Invocation: d96743be024241308e2b808421879993
       Docs: https://github.com/prometheus-pve/prometheus-pve-exporter
    Process: 1856 ExecStart=/usr/bin/pve_exporter /etc/prometheus/pve.yml (code=exited, status=2)
   Main PID: 1856 (code=exited, status=2)

окт 22 16:41:20 grafana.kou.alt systemd[1]: prometheus-pve-exporter.service: Scheduled restart job, restart counter is at 5.
окт 22 16:41:20 grafana.kou.alt systemd[1]: prometheus-pve-exporter.service: Start request repeated too quickly.
окт 22 16:41:20 grafana.kou.alt systemd[1]: prometheus-pve-exporter.service: Failed with result &apos;exit-code&apos;.
окт 22 16:41:20 grafana.kou.alt systemd[1]: Failed to start prometheus-pve-exporter.service - Prometheus Proxmox VE Exporter.

В логах службы ошибка: pve_exporter[1856]: pve_exporter: error: unrecognized arguments: /etc/prometheus/pve.yml

Изучил systemd-юнит, нашёл решение: 
Файл /etc/systemd/system/prometheus-pve-exporter.service.d/override.conf с содержимым:

[Service]
ExecStart=
ExecStart=/usr/bin/pve_exporter --config.file /etc/prometheus/pve.yml

После чего служба корректно работает без падения. Не хватает указания --config.file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275880</commentid>
    <comment_count>1</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2025-10-30 18:07:31 +0300</bug_when>
    <thetext>python3-module-prometheus-pve-exporter-3.5.5-alt1

Воспроизводится в P11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275882</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-10-30 18:27:33 +0300</bug_when>
    <thetext>python3-module-prometheus-pve-exporter-3.5.5-alt2 -&gt; sisyphus:

Thu Oct 30 2025 Andrew A. Vasilyev &lt;andy@altlinux&gt; 3.5.5-alt2
- fix config file option (Closes: #56561) (thnx kolesnichenko@)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>