Salt error Job for salt-master.service failed because the control process exited with error code .,

Source: Internet
Author: User

Salt error Job for salt-master.service failed because the control process exited with error code .,
Problem

& Amp; emsap ;? When I use salt on a virtual machine, I can't use salt because I read the document and learned it.

ps aux | grep salt

& Amp; emsap ;? We found that both salt-maste and salt-minion are there. You have to restart the salt-master service and try:

sudo service salt-master restart

However, an error is reported:

Job for salt-master.service failed because the control process exited with error code. See "systemctl status salt-master.service" and "journalctl -xe" for details.


Run the prompt command to view the error message:

Root @ ubuntu:/home/nick # systemctl status salt-master.service ● salt-master.service-The Salt Master Server Loaded: loaded (/lib/systemd/system/salt-master.service; enabled; vendor preset: enabled) active: failed (Result: exit-code) since Fri 16:13:34 CST; 13 min ago Docs: man: salt-master (1) file: /// usr/share/doc/salt/html/contents.html https://docs.saltstack.com/en/latest/contents.html Pr Ocess: 2408 ExecStart =/usr/bin/salt-master (code = exited, status = 4) Main PID: 2408 (code = exited, status = 4) mar 09 16:13:33 ubuntu systemd [1]: Stopped The Salt Master Server. mar 09 16:13:33 ubuntu systemd [1]: Starting The Salt Master Server... mar 09 16:13:34 ubuntu salt-master [2408]: [WARNING] Unable to bind socket 192.168.164.134: 4505, error: [ErrnoMar 09 16:13:34 ubuntu salt-master [2408]: The salt Master is shutdown. the ports are not available to bindMar 09 16:13:34 ubuntu systemd [1]: salt-master.service: Main process exited, code = exited, status = 4/NOPERMISSIOMar 09 16:13:34 ubuntu systemd [1]: failed to start The Salt Master Server. mar 09 16:13:34 ubuntu systemd [1]: salt-master.service: Unit entered failed state. mar 09 16:13:34 ubuntu systemd [1]: salt-master.service: Failed with result 'ex It-Code '. // and root @ ubuntu:/home/nick # journalctl-xeMar 09 15:41:45 ubuntu systemd [1]: Stopped The Salt Master Server. -- Subject: salt-master.service Unit ended stop operation -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- salt-master.service Unit ended stop operation. Mar 09 15:41:45 ubuntu systemd [1]: Starting The Salt Master Server... -- Subject: The salt-master.service unit has started -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel-The salt-master.service unit has started. Mar 09 15:41:45 ubuntu salt-master [2862]: [WARNING] Unable to bind socket 192.168.164.134: 4507, error: [Errno 99] Cannot assign requested address; is there another salt-master running? Mar 09 15:41:46 ubuntu salt-master [2862]: The salt master is shutdown. the ports are not available to bindMar 09 15:41:46 ubuntu systemd [1]: salt-master.service: Main process exited, code = exited, status = 4/NOPERMISSIONMar 09 15:41:46 ubuntu systemd [1]: failed to start The Salt Master Server. -- Subject: salt-master.service unit failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/li Stinfo/systemd-devel ---- The salt-master.service unit has failed. ---- The result is "failed ". Mar 09 15:41:46 ubuntu kernel EMD [1]: salt-master.service: Unit entered failed state. Mar 09 15:41:46 ubuntu kernel EMD [1]: salt-master.service: Failed with result 'exit-Code '.

?? According to the prompt, it is displayed that port 4505 cannot be bound (Port 4505 is used by default when you install salt, and can be modified in/etc/salt/master), and then use

netstat -lnput

?? Check the port number and find that no process occupies port 4505. Then I went to the Internet to find many methods-fruitless.
?? In the end, I found that my IP address had changed. Because of the virtual machine I used, the IP address suddenly changed and I was not given a little defense.
?? You can modify the IP address in/etc/salt/master. (for the normal operation of other services, I changed the default IP address 0: 0: 0: 0 to the IP address of the virtual machine, so the virtual machine cannot run successfully after the IP address is changed ).

??I would like to warn you that if you learn to use salt on a virtual machine and have no other requirements, do not change the IP settings in the master.

Update it in half an hour: Remember to change the IP address in minion, and in/etc/salt/minion, do not say it, and cry in the toilet ~~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.