salt: Bad permission for salt group
Description I have problem with our GitHub runner. It runs commands by ssh: root@salt:/var/log/salt# sudo codac -c “salt -L ‘dtacqpc,epicsiocs,minispecs,epicstest’ -a pam --username=codac --password=XXXXXXXXXX state.apply codac.deployment”
root@salt:~# id codac uid=599(codac) gid=100(users) groups=100(users),128(salt)
It doesn’t work after upgrade to the newer version. I fixed this way:
root@salt:/srv# chown salt:salt -R /var/run/salt/ root@salt:/srv# chown salt:salt -R /var/cache/salt root@salt:/srv# chown -R salt:salt /var/log/salt/
Setup
root@salt:~# dpkg -l "salt*" Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================================================ ii salt-api 3006.3 amd64 Generic, modular network access system ii salt-common 3006.3 amd64 shared libraries that salt requires for all packages ii salt-master 3006.3 amd64 remote manager to administer servers via salt ii salt-minion 3006.3 amd64 client package for salt, the distributed remote execution system ii salt-ssh 3006.3 amd64 remote manager to administer servers via Salt SSH
Steps to Reproduce the behavior I got this error before my fix: root@salt:/var/log/salt# sudo codac -c “salt -L ‘dtacqpc,epicsiocs,minispecs,epicstest’ -a pam --username=codac --password=XXXXXXXXXX state.apply codac.deployment”
write(1, "\33[0;32mSalt request timed out. T"..., 372Salt request timed out. The master is not responding. You may need to run your command with `--async` in order to bypass the congested event bus. With `--async`, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then use `salt-run jobs.lookup_jid` to look up the results of the job in the job cache later. ) = 372
Expected behavior
orig: postinst: chown -R salt:salt /etc/salt/pki/master /etc/salt/master.d /var/log/salt/master /var/log/salt/key /var/cache/salt/master /var/run/salt/master
fixed: postinst: chown -R salt:salt /etc/salt/pki/master /etc/salt/master.d /var/log/salt /var/log/salt/key /var/cache/salt /var/run/salt
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (5 by maintainers)
@jamest-pin The fix #66218 will be available in 3006.9 (releasing very soon) it is not yet available in 3007.x.