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

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

    <bug>
          <bug_id>59328</bug_id>
          
          <creation_ts>2026-05-26 13:34:26 +0300</creation_ts>
          <short_desc>Некорректное значение параметра PCSD_EXEC_LOCATION</short_desc>
          <delta_ts>2026-06-20 22:07: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>pcs</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="majioa@altlinux.org">majioa</assigned_to>
          <cc>3aHyga</cc>
    
    <cc>admsasha</cc>
    
    <cc>cas</cc>
    
    <cc>majioa</cc>
    
    <cc>mike</cc>
    
    <cc>nbr</cc>
    
    <cc>pav</cc>
    
    <cc>rider</cc>
    
    <cc>root</cc>
    
    <cc>thatman</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>288347</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-05-26 13:34:26 +0300</bug_when>
    <thetext>pcs-0.12.2.277-alt0.1.x86_64

В переменной PCSD_EXEC_LOCATION указана директория, которая не содержит исполняемые файлы:

# grep PCSD_EXEC_LOCATION /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/settings.rb
PCSD_EXEC_LOCATION = &apos;/usr/lib64/pcsd&apos;

# l /usr/lib64/pcsd
итого 0
drwxr-xr-x 1 root root     12 мая 26 13:00 ./
drwxr-xr-x 1 root root 193144 мая 26 13:00 ../
drwxr-xr-x 1 root root     40 мая 26 13:00 public/

Ошибка:
pcsd[2863]: ChildProcess::LaunchError - No such file or directory - /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/../pcs/pcs (ChildProcess::LaunchError)

Должна быть указана директория /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288368</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-05-26 16:38:17 +0300</bug_when>
    <thetext>Из-за этого, как минимум, не работает команда `pcs cluster setup`, выдаёт ошибку `Error: Error connecting to hosta (HTTP error: 500)`

Полный лог сервиса в этот момент:
мая 26 16:35:20 hosta pcsd[5488]: 2026-05-26 16:35:20 - ChildProcess::LaunchError - No such file or directory - /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/../pcs/pcs (ChildProcess::LaunchError):
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/childprocess-5.0.0/lib/childprocess/process_spawn_process.rb:88:in `rescue in launch_process&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/childprocess-5.0.0/lib/childprocess/process_spawn_process.rb:85:in `launch_process&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/childprocess-5.0.0/lib/childprocess/abstract_process.rb:81:in `start&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/pcs.rb:666:in `run_cmd_options&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/pcs.rb:645:in `run_cmd&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/remote.rb:927:in `cluster_destroy&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/remote.rb:85:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/remote.rb:85:in `remote&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/pcsd.rb:80:in `block in &lt;top (required)&gt;&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1804:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1804:in `block in compile!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1071:in `block (3 levels) in route!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1089:in `route_eval&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1071:in `block (2 levels) in route!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1120:in `block in process_route&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1118:in `catch&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1118:in `process_route&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1069:in `block in route!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1066:in `each&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1066:in `route!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1190:in `block in dispatch!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1161:in `catch&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1161:in `invoke&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1185:in `dispatch!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1001:in `block in call!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1161:in `catch&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1161:in `invoke&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1001:in `call!&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:990:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-3.1.7/lib/rack/common_logger.rb:43:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:266:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/rserver.rb:30:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-protection-4.0.0/lib/rack/protection/xss_header.rb:20:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-protection-4.0.0/lib/rack/protection/path_traversal.rb:18:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-protection-4.0.0/lib/rack/protection/json_csrf.rb:28:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-protection-4.0.0/lib/rack/protection/base.rb:53:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-protection-4.0.0/lib/rack/protection/base.rb:53:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-protection-4.0.0/lib/rack/protection/frame_options.rb:33:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-3.1.7/lib/rack/null_logger.rb:13:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-3.1.7/lib/rack/head.rb:15:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/rack-3.1.7/lib/rack/method_override.rb:28:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:224:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:2115:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1674:in `block in call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1890:in `synchronize&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/sinatra-4.0.0/lib/sinatra/base.rb:1674:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/puma-6.6.1/lib/puma/configuration.rb:279:in `call&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/puma-6.6.1/lib/puma/request.rb:99:in `block in handle_request&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/puma-6.6.1/lib/puma/thread_pool.rb:390:in `with_force_shutdown&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/puma-6.6.1/lib/puma/request.rb:98:in `handle_request&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/puma-6.6.1/lib/puma/server.rb:472:in `process_client&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/puma-6.6.1/lib/puma/server.rb:254:in `block in run&apos;
мая 26 16:35:20 hosta pcsd[5488]:         /usr/lib/ruby/gemie/gems/puma-6.6.1/lib/puma/thread_pool.rb:167:in `block in spawn_thread&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288570</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-05-28 18:25:47 +0300</bug_when>
    <thetext>pcs-1:0.12.2.277-alt0.2 -&gt; sisyphus:

Thu May 28 2026 Pavel Skrylev &lt;majioa@altlinux&gt; 1:0.12.2.277-alt0.2
- ! fixed path to run service script in settings (ALT #59328)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289498</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-06-15 17:52:43 +0300</bug_when>
    <thetext># grep PCSD_EXEC_LOCATION /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/settings.rb
PCSD_EXEC_LOCATION = &apos;/usr/bin/pcsd&apos;

Всё ещё не работает. Путь должен быть такой: /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277 (и это должен быть путь до директории, а не до файла).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289501</commentid>
    <comment_count>4</comment_count>
    <who name="Малъ Скрылевъ">3aHyga</who>
    <bug_when>2026-06-15 20:40:28 +0300</bug_when>
    <thetext>Во-первыхъ работаетъ, а во-вторыхъ то что тамъ долежнх быть иной путь, не вліяетъ на работоспособность, т.к. выполняется иной кодъ</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289514</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-06-15 22:28:32 +0300</bug_when>
    <thetext>pcs-1:0.12.2.277.1-alt0.1 -&gt; sisyphus:

Mon Jun 15 2026 Pavel Skrylev &lt;majioa@altlinux&gt; 1:0.12.2.277.1-alt0.1
- ! fixed code to detect wither the exec is system for local (ALT #59328)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289517</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-06-16 09:53:55 +0300</bug_when>
    <thetext>(Ответ для Малъ Скрылевъ на комментарий #4)
&gt; Во-первыхъ работаетъ

Что именно? То, о чём я писал в 59328#c1, не работает.

(Ответ для Repository Robot на комментарий #5)
&gt; Mon Jun 15 2026 Pavel Skrylev &lt;majioa@altlinux&gt; 1:0.12.2.277.1-alt0.1
&gt; - ! fixed code to detect wither the exec is system for local (ALT #59328)

А теперь работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289901</commentid>
    <comment_count>7</comment_count>
    <who name="pav@altlinux.org">pav</who>
    <bug_when>2026-06-20 21:39:41 +0300</bug_when>
    <thetext>Исправления сделаны.

При проверке п.59328#c1

# grep PCSD_EXEC_LOCATION /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/settings.rb
PCSD_EXEC_LOCATION = &apos;/usr/bin/pcsd&apos;

# ls -l /usr/bin/pcsd
lrwxrwxrwx 1 root root 45 мая 28 17:36 /usr/bin/pcsd -&gt; /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277/pcsd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289902</commentid>
    <comment_count>8</comment_count>
    <who name="pav@altlinux.org">pav</who>
    <bug_when>2026-06-20 22:07:59 +0300</bug_when>
    <thetext>Верхнее сообщение касается р11 с установкой из задания 336648

В сизифе исправления так же сделаны.

При проверке п.59328#c1 выдает 

# grep PCSD_EXEC_LOCATION /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277.1/settings.rb
PCSD_EXEC_LOCATION = &apos;/usr/bin/pcsd&apos;

# ls -l /usr/bin/pcsd
lrwxrwxrwx 1 root root 47 июн 15 21:08 /usr/bin/pcsd -&gt; /usr/lib/ruby/gemie/gems/pcsd-0.12.2.277.1/pcsd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>