[Bug]: Failed to enable unit: Unit salt-master.service does not exist
What happened?
New user on Ubuntu 25, and so joining SaltStack after the package support was removed.
Installation now requires using https://raw.githubusercontent.com/saltstack/salt-bootstrap/develop/salt-quick-start.sh
Basic setup procedure.
- planning to put sls files in the default:
/srv/salt/server.sls - all resources says these are the UFW firewall rules:
# master
sudo ufw allow 4505/tcp comment "SaltStack publish port" # Master receives minion connections + publishes commands
sudo ufw allow 4506/tcp comment "SaltStack receive port" # Master receives minion result connections
# minion
sudo ufw allow out to any port 4505 comment "SaltStack publish port" # Connect to master for commands
sudo ufw allow out to any port 4506 comment "SaltStack receive port" # Connect to master for results
But then initiating the salt service yields an error that the service does not exist.
sudo systemctl enable salt-master
# Failed to enable unit: Unit salt-master.service does not exist
All the search results I have been able to find (e.g. Gemini) incorrect say, more or less, impossible! the service should have been installed when you (incorrectly) installed SaltStack using the package manager apt! All the LLM responses (especially with Context7) instead simply want to create a /etc/systemd/system/salt-master.service service file.
But why should I need to do that on the fly unprotected? The SaltStack repo must have the correct salt-master.service somewhere, and so far I have been unable to find an official version. Please advise. Thank you!
Type of salt install
other (please specify in bug details)
Major version
3007.x
What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)
I am using Ubuntu 25.10. Please move this to a GitHub Discussion.
salt --versions-report output
Salt Version:
Salt: 3007.12
Python Version:
Python: 3.10.19 (main, Feb 5 2026, 07:05:38) [GCC 11.2.0]
Dependency Versions:
cffi: 2.0.0
cherrypy: unknown
cryptography: 42.0.5
dateutil: 2.8.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.6
libgit2: Not Installed
looseversion: 1.3.0
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 1.0.7
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 24.0
pycparser: 2.21
pycrypto: Not Installed
pycryptodome: 3.19.1
pygit2: Not Installed
python-gnupg: 0.5.2
PyYAML: 6.0.1
PyZMQ: 25.1.2
relenv: 0.22.3
smmap: Not Installed
timelib: 0.3.0
Tornado: 6.5.4
ZMQ: 4.3.4
Salt Package Information:
Package Type: onedir
System Versions:
dist: ubuntu 25.10 questing
locale: utf-8
machine: x86_64
release: 6.17.0-14-generic
system: Linux
version: Ubuntu 25.10 questing
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here's some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at [email protected]. We're glad you've joined our community and look forward to doing awesome things with you!
According to https://docs.saltproject.io/salt/install-guide/en/latest/topics/quickstart.html#install-salt-on-your-infrastructure-linux-only you need to include the -f flag to salt-quick-start.sh. These instructions should also work: https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/linux-deb.html (linked from starting at https://docs.saltproject.io/salt/install-guide/en/latest/topics/bootstrap.html).
Thanks @bdrx312 but the underlying issue appears to be a permissions issue within the defaults of the salt-quick-start.sh.
If you would not mind, I would prefer to debug this with you, for transparency.
salt-master (the command, etc.) does indeed exist but fails when using sudo for permissions reasons.
We are trying to run Salt as user instead of root and this may be a configuration issue.
This is what happens we see happening:
> salt-master
# Failed to create directory path "/home/user/salt/etc/salt/pki/master/minions"
> sudo salt-master
# sudo-rs: 'salt-master': command not found
Our salt configuration is:
# /etc/salt/master
external_auth:
pam:
user:
- '*': # all minions
- .* # all modules
I figure this is interesting enough, as one of the simplest installation cases, that we should discuss this here.
@bdrx312 should note that these sudo apt install salt-master instructions for deb do correctly work as well.
These will be the direction we go for obvious reasons but the above permissions issue does seem to persist.
Much appreciated.
https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/linux-deb.html
Agent run 0c8193d6891444b88c0194ec5036423a started.
Agent run 0c8193d6891444b88c0194ec5036423a finished without PR: Baseline pytest failed; aborting run
https://docs.saltproject.io/en/latest/topics/eauth/index.html
Note
eAuth using the PAM external auth system requires salt-master to be run as root as this system needs root access to check authentication.
For asking interactive debugging and troubleshooting questions you are probably better off asking on the salt discord channel https://discord.gg/J7b7EscrAs
@bdrx312 What external auth system?
I have one local machine, with an admin account 'user' which I use to operate my services.
I want salt to be run by 'user' instead of 'root'.
It appears to be some calculated configuration error inside http://salt-quick-start.sh.
Happy to move on now that you provided the deb package installation details.
But be mindful: those were not apparently after twenty minutes of documentation reading.
Nor were they found by any of the code agents, or search engines, or their auto-generated responses.
I was shocked that a security-forward ssh delegation state system would not be using package management.
And the only official word on the site I had found was that Ubuntu 24 had prompted a move away from packages.
Your response with a deb install apt repository was a complete (welcome) surprise, but not the technical solution.
Have a nice day. Much appreciated answer directly to the point and moving on.
PS Discord dropped the shark. Fractionated audio chatrooms with bioID is insane. And found most channels uselessly hostile.
Anyone finding this ticket via search engine and wants to know what we are doing here is invited to reach out by email.
What external auth system?
You showed that you are configuring external auth (external_auth) in your master config:
# /etc/salt/master
external_auth:
pam:
user:
- '*': # all minions
- .* # all modules
Starting in 3006, the default configuration for the master is to run processes as a non-privileged user; so, you do not need to do any extra configuration for that. If you want to change the user, you use the user argument: https://docs.saltproject.io/en/latest/ref/configuration/master.html#user
I don't know what you are trying to setup with eauth and that is not one of the simplest installation cases.
The onedir install produced by salt-quick-start.sh does not ship a systemd unit — that's by design of the onedir install method, not a bug. The salt-master.service unit file lives at pkg/common/salt-master.service and is installed to /lib/systemd/system by the deb/rpm packagers (see pkg/debian/salt-master.install). As @bdrx312 noted and you confirmed works, the linux-deb install guide is the supported path when you want systemd integration. The follow-up eauth/PAM/non-root discussion is a usage question — please use Discord or Discussions. Closing as not-planned.