[Pkg-salt-team] Bug#891303: salt-master: salt fails with "Failed to authenticate" error
Vincas Dargis
vindrg at gmail.com
Sat Feb 24 11:25:47 UTC 2018
Package: salt-master
Version: 2017.7.3+dfsg1-1
Severity: important
Dear Maintainer,
After recent upgrade in Sid I've noticed that `salt` cannot execute commands due
to permissions issues:
```
root at debian-sid:/media/cdrom# salt "*" test.ping
Failed to authenticate! This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage).
```
I have reproduced that with new `salt-master` installation on VM (also Sid).
`journalctl -f -u salt-master` shows:
```
Feb 24 13:19:18 debian-sid salt-master[12807]: [WARNING ] Authentication failure of type "user" occurred.
```
Workaround is to create `/etc/salt/master.d/user.conf` with:
```
user: salt
```
Also, I had to delete /var/log/salt/master (or one could change ownership) so
that after restarting salt-master could write to it due to:
```
Feb 24 13:21:08 debian-sid salt-master[13639]: [WARNING ] Failed to open log file, do you have permission to write to /var/log/salt/master?
```
Seems like a regression after #801396 ?
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.15.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages salt-master depends on:
ii adduser 3.117
ii lsb-base 9.20170808
ii python3 3.6.4-1
ii python3-crypto 2.6.1-8
ii python3-systemd 234-1
ii python3-zmq 16.0.2-2+b1
ii salt-common 2017.7.3+dfsg1-1
Versions of packages salt-master recommends:
ii python3-pygit2 0.26.3-1
salt-master suggests no packages.
-- no debconf information
More information about the pkg-salt-team
mailing list