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

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

    <bug>
          <bug_id>53487</bug_id>
          
          <creation_ts>2025-03-17 15:20:03 +0300</creation_ts>
          <short_desc>Ошибка &apos;JAVA_HOME is not set&apos; при установке пакета linstor-controller</short_desc>
          <delta_ts>2025-12-23 17:52:14 +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>linstor-controller</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="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="xeno@altlinux.org">xeno</assigned_to>
          <cc>andy</cc>
    
    <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>261184</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-03-17 15:20:03 +0300</bug_when>
    <thetext>- Версия пакета:
1.30.4-alt3

- Шаги воспроизведения:
# apt-get install linstor-controller

- Получаемый результат:
11: linstor-controller-1.30.4-alt3
ERROR: JAVA_HOME is not set and no &apos;java&apos; command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Завершено.

- Примечание:
На дальнейшую работу пакета ошибка не влияет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261195</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-03-17 16:22:49 +0300</bug_when>
    <thetext>linstor-1.30.4-alt4 -&gt; sisyphus:

 Mon Mar 17 2025 Andrey Cherepanov &lt;cas@altlinux&gt; 1.30.4-alt4
 - use java-21-openjdk for linstore-controller (ALT #53487).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261232</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-03-18 09:33:52 +0300</bug_when>
    <thetext>(Ответ для Repository Robot на комментарий #1)
&gt; linstor-1.30.4-alt4 -&gt; sisyphus:
&gt; 
&gt;  Mon Mar 17 2025 Andrey Cherepanov &lt;cas@altlinux&gt; 1.30.4-alt4
&gt;  - use java-21-openjdk for linstore-controller (ALT #53487).

Ошибка актуальна:

15: linstor-controller-1.30.4-alt4
ERROR: JAVA_HOME is not set and no &apos;java&apos; command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Завершено.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261397</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2025-03-19 12:26:52 +0300</bug_when>
    <thetext># unset JAVA_HOME
# . /etc/profile.d/javahome.sh 
# echo $JAVA_HOME
/usr/lib/jvm/java
# $JAVA_HOME/bin/java -version</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267240</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-06-16 12:38:34 +0300</bug_when>
    <thetext>Ошибка всё ещё актуальна:

15: linstor-controller-1.31.1-alt2
ERROR: JAVA_HOME is not set and no &apos;java&apos; command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Завершено.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267895</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-06-26 21:27:26 +0300</bug_when>
    <thetext>linstor-1.31.1-alt3 -&gt; sisyphus:

 Wed Jun 25 2025 Ivan Khanas &lt;xeno@altlinux&gt; 1.31.1-alt3
 - Set JAVA_HOME variable after installing controller. (Closes: 53487)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267911</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-06-27 10:37:39 +0300</bug_when>
    <thetext>24: linstor-controller-1.31.1-alt3                                                                                                                                 

ERROR: JAVA_HOME is not set and no &apos;java&apos; command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

Завершено.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>279352</commentid>
    <comment_count>7</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2025-12-22 10:00:10 +0300</bug_when>
    <thetext>(Ответ для Alexander Makeenkov на комментарий #6)
&gt; 24: linstor-controller-1.31.1-alt3                                          
&gt; 
&gt; 
&gt; ERROR: JAVA_HOME is not set and no &apos;java&apos; command could be found in your
&gt; PATH.
&gt; 
&gt; Please set the JAVA_HOME variable in your environment to match the
&gt; location of your Java installation.
&gt; 
&gt; Завершено.

По информации из redmine:
&quot;Если перед этим установлен linstor-common, то пакет так же успешно устанавливается.&quot;

То есть у пакета linstor-controller нужно исправить следующее:
-Requires: linstor-common = %EVR
+Requires(post): linstor-common = %EVR</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>279353</commentid>
    <comment_count>8</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-12-22 11:52:09 +0300</bug_when>
    <thetext>linstor-1.33.0-alt2 -&gt; sisyphus:

Mon Dec 22 2025 Anton Midyukov &lt;antohami@altlinux&gt; 1.33.0-alt2
- NMU: linstor-controller: Requires(post): linstor-common (Closes: 53487).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>279455</commentid>
    <comment_count>9</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2025-12-23 13:51:12 +0300</bug_when>
    <thetext>(Ответ для Антон Мидюков на комментарий #7)
&gt; (Ответ для Alexander Makeenkov на комментарий #6)
&gt; &gt; 24: linstor-controller-1.31.1-alt3                                          
&gt; &gt; 
&gt; &gt; 
&gt; &gt; ERROR: JAVA_HOME is not set and no &apos;java&apos; command could be found in your
&gt; &gt; PATH.
&gt; &gt; 
&gt; &gt; Please set the JAVA_HOME variable in your environment to match the
&gt; &gt; location of your Java installation.
&gt; &gt; 
&gt; &gt; Завершено.
&gt; 
&gt; По информации из redmine:
&gt; &quot;Если перед этим установлен linstor-common, то пакет так же успешно
&gt; устанавливается.&quot;
&gt; 
&gt; То есть у пакета linstor-controller нужно исправить следующее:
&gt; -Requires: linstor-common = %EVR
&gt; +Requires(post): linstor-common = %EVR

Не помогло это. В hasher продолжает воспроизводиться.
Должна быть java предварительно установлена, тогда ок.
linstor-common её ставит, потому и ок. Но

Requires(post): linstor-common

не помогает решить проблему.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>279479</commentid>
    <comment_count>10</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-12-23 17:52:14 +0300</bug_when>
    <thetext>linstor-1.33.0-alt3 -&gt; sisyphus:

Tue Dec 23 2025 Andrey Cherepanov &lt;cas@altlinux&gt; 1.33.0-alt3
- NMU: linstor-controller: update alternatives in %post (Closes: 53487).
- Used systemd macros for systemd services.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>