NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
63 stars 20 forks source link

Missing PATH /usr/local/bin for runagent #6935

Closed stephdl closed 1 month ago

stephdl commented 1 month ago

Steps to reproduce

Expected behavior

I expect to install and create the cluster

Actual behavior

I have an error

/var/lib/nethserver/node/install-finalize.sh: line 109: runagent: command not found

this is due because when you become root by sudo bash -l the path does not include the /usr/local/bin In the same way, if you use sudo -s, the paths /usr/local/sbin and /usr/local/bin are missing

[root@r3-pve ~]# sudo -s 
[root@r3-pve ~]# echo $PATH
/root/.local/bin:/root/bin:/sbin:/bin:/usr/sbin:/usr/bin
[root@r3-pve ~]# sudo bash -l 
[root@r3-pve ~]# echo $PATH
/root/.local/bin:/root/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
[root@r3-pve ~]# su -
[root@r3-pve ~]# echo $PATH
/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

Components

core 2.8.0

See also


thank @Amygos

stephdl commented 1 month ago

QA

We expect the command to initiate the cluster is without error, the create-cluster command is out of the scope of this bug (we assume the sysadmin will use the UI to create the cluster)

lucagasparini commented 1 month ago
DavidePrincipi commented 1 month ago

Released https://github.com/NethServer/ns8-core/releases/tag/2.8.1