[Pkg-salt-team] Bug#930178: salt-master: install fails if salt-minion was installed first
Benjamin Drung
benjamin.drung at cloud.ionos.com
Wed Jan 29 12:17:39 GMT 2020
reassign 930178 systemd 241-7~deb10u2
thanks
On Fri, 07 Jun 2019 21:02:04 +0000 Scott Coil <scott at chaos-dragon.com> wrote:
> * What led up to the situation?
> apt-get -y install salt-minion
> apt-get -y install salt-master
> * What was the outcome of this action?
> salt-master postinst did not exit with success
> /var/lib/salt and /var/run/salt are not writable by the salt
user
> * What outcome did you expect instead?
> successful install of salt-master
I troubleshoot this issues and this issue is caused by systemd not
correctly setting the permission despite being configured that way (see
Debian bug #919231). Therefore I re-assign it to the systemd package.
When the installation of salt-master fails, it is enough to reboot the
machine. The service successfully starts on the next boot.
Working setup:
* Debian unstable as of 2020-01-28
* salt 2018.3.4+dfsg1-7
* systemd 244.1-1
* Debian 10 as of 2020-01-28
* salt 2018.3.4+dfsg1-6
* systemd 244-3~bpo10+1 (from buster-backports)
Not working:
* Debian 10 as of 2020-01-28
* salt 2018.3.4+dfsg1-6
* systemd 241-7~deb10u2
Output of a working setup:
```
# apt-get -y install salt-minion
# ls -alh /var/lib/salt/pki /var/run/salt
/var/lib/salt/pki:
total 12K
drwxr-xr-x 3 root root 4,0K Jan 28 15:15 .
drwxr-xr-x 3 root root 4,0K Jan 28 15:15 ..
drwx------ 2 root root 4,0K Jan 28 15:15 minion
/var/run/salt:
total 0
drwxr-xr-x 3 root root 60 Jan 28 15:15 .
drwxr-xr-x 16 root root 520 Jan 28 15:15 ..
drwxr-xr-x 2 root root 80 Jan 28 15:15 minion
# apt-get -y install salt-master
# ls -alh /var/lib/salt/pki /var/run/salt
/var/lib/salt/pki:
total 16K
drwxr-xr-x 4 root root 4,0K Jan 28 15:12 .
drwxr-xr-x 3 root root 4,0K Jan 28 15:12 ..
drwx------ 7 salt salt 4,0K Jan 28 15:12 master
drwx------ 2 root root 4,0K Jan 28 15:12 minion
/var/run/salt:
total 0
drwxr-xr-x 4 salt salt 80 Jan 28 15:12 .
drwxr-xr-x 16 root root 520 Jan 28 15:12 ..
drwxr-xr-x 2 salt salt 120 Jan 28 15:12 master
drwxr-xr-x 2 salt salt 80 Jan 28 15:12 minion
```
--
Benjamin Drung
DevOps Engineer and Debian & Ubuntu Developer
Platform Integration (IONOS Cloud)
1&1 IONOS SE | Greifswalder Str. 207 | 10405 Berlin | Germany
E-mail: benjamin.drung at cloud.ionos.com | Web: www.ionos.de
Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498
Vorstand: Dr. Christian Böing, Hüseyin Dogan, Dr. Martin Endreß, Hans-
Henning Kettler, Matthias Steinberg, Achim Weiß
Aufsichtsratsvorsitzender: Markus Kadelke
Member of United Internet
More information about the pkg-salt-team
mailing list