1. 程式人生 > >salt出錯Job for salt-master.service failed because the control process exited with error code.

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

問題

&emsap; 在虛擬機器上使用salt的時候,因為一邊看文件一邊學習,突然之前salt就用不了了,然後

ps aux | grep salt

&emsap; 發現salt-maste和salt-minion都在,準備重啟一下salt-master服務試試:

sudo service salt-master restart

但是提示報錯:

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.

這裡寫圖片描述
使用提示的命令看出錯資訊:

[email protected]:/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 2018-03-09 16:13:34 CST; 13min ago
Docs: man:salt-master(1) file:///usr/share/doc/salt/html/contents.html https://docs.saltstack.com/en/latest/contents.html Process: 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: [Errno Mar 09 16:13:34 ubuntu salt-master[2408]: The salt master is shutdown. The ports are not available to bind Mar 09 16:13:34 ubuntu systemd[1]: salt-master.service: Main process exited, code=exited, status=4/NOPERMISSIO Mar 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 'exit-code'
. //以及 [email protected]:/home/nick# journalctl -xe Mar 09 15:41:45 ubuntu systemd[1]: Stopped The Salt Master Server. -- Subject: salt-master.service 單元已結束停止操作 -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- salt-master.service 單元已結束停止操作。 Mar 09 15:41:45 ubuntu systemd[1]: Starting The Salt Master Server... -- Subject: salt-master.service 單元已開始啟動 -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- salt-master.service 單元已開始啟動。 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 bind Mar 09 15:41:46 ubuntu systemd[1]: salt-master.service: Main process exited, code=exited, status=4/NOPERMISSION Mar 09 15:41:46 ubuntu systemd[1]: Failed to start The Salt Master Server. -- Subject: salt-master.service 單元已失敗 -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- salt-master.service 單元已失敗。 -- -- 結果為“failed”。 Mar 09 15:41:46 ubuntu systemd[1]: salt-master.service: Unit entered failed state. Mar 09 15:41:46 ubuntu systemd[1]: salt-master.service: Failed with result 'exit-code'.

  根據提示,顯示無法繫結4505(安裝salt時預設使用4505埠,可以再/etc/salt/master中修改)埠,然後使用

netstat -lnput

  檢視埠號,發現並沒有程序佔用4505埠,然後去網上找了好多方法——無果。
  最終發現自己IP變了,因為用的虛擬機器,IP他就突兀的變了,不給我一點點防備。
  在/etc/salt/master中修改完IP就好了(因為之前為了其他服務的正常執行,我將預設的0:0:0:0改成了虛擬機器的IP,所以虛擬機器IP改變之後就無法成功執行)。

  告誡大家,如果在虛擬機器上學習使用salt,沒有別的要求的話別動master裡面的IP設定

半小時後更新:
  • 記得改minion裡面的IP,同樣在/etc/salt/minion中,不說了,哭暈在廁所,嗚嗚嗚~~

相關推薦

Job for php-fpm.service failed because the control process exited with error code. See "systemctl st

centos7.2環境下安裝php5.6.17。 啟動失敗。  Job for php-fpm.service failed because the control process exited with error code. See "systemctl stat

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

問題 &emsap; 在虛擬機器上使用salt的時候,因為一邊看文件一邊學習,突然之前salt就用不了了,然後 ps aux | grep salt &emsap; 發現salt-maste和salt-minion都在,準備重啟一下sa

centos 報錯 “Job for iptables.service failed because the control process exited with error code.”的解決辦法

cau ack res sta ble put use wal ror 原因:因為centos7默認的防火墻是firewalld防火墻,不是使用iptables,因此需要先關閉firewalld服務,或者幹脆使用默認的firewalld防火墻。 操作步驟: 關閉防火墻 1.

Job for network.service failed because the control process exited with error code問題

今天在centOS 7下更改完靜態ip後發現network服務重啟不了,翻遍了網路,嘗試了各種方法,終於解決了。      現把各種解決方法歸納整理,希望能讓後面的同學少走點歪路。。。 首先看問題:執行service network restart命令

Centos 7不能上網,Job for iptables.service failed because the control process exited with error code.

一、先檢查自己的網路配置資訊:路徑: vi /etc/sysconfig/network-scripts/ifcfg-eno16777736   如圖 重啟網路配置的命令:service network restart或者是systemctl restart net

解決mariadb 啟動時報錯Job for mariadb.service failed because the control process exited with error code. Se

    錯誤:[[email protected] ~]# systemctl start mariadb.service Job for mariadb.service failed because the control process exited

Centso7.2安裝mysql報錯Job for mysqld.service failed because the control process exited with error code.

最近安裝了好多環境,忙裡偷閒為安裝的所有環境以及安裝環境的過程中遇到的問題記錄下來。參考來源:https://www.cnblogs.com/qjoanven/p/7699382.html一、centos7.2安裝mysql1、解除安裝系統自帶Mariadb,mariadb是

centos出現這個錯誤:Job for sshd.service failed because the control process exited with error code.

這是因為SElinux啟用了,關閉就好了。在/etc/selinux/config檔案中如下修改,設定SELINUX=disabled:# This file controls the state of SELinux on the system.# SELINUX= can

CentOS7啟動SSH服務報:Job for ssh.service failed because the control process exited with error code.......

CentOS7啟動SSH服務報:Job for ssh.service failed because the control process exited with error codesee systemctl status ssh.service and journalc

解決Job for docker.service failed because the control process exited with error code. See "systemctl s

在ubuntu16.04下安裝安裝docker docker daemon啟不起來,報如下錯誤: Job for docker.service failed because the control process exited with error code. See "s

【linux錯誤】Job for vsftpd.service failed because the control process exited with error code. See "syst

我的環境:阿里雲centos7.2搭建ftp啟動vsftpd服務,報錯:Job for vsftpd.service failed because the control process exited with error code. See "systemctl statu

centos7下docker啟動失敗--ob for docker.service failed because the control process exited with error code.

今天在配置openshift用docker部署映象的時候,啟動docker發現竟然啟動失敗:     之前是可以啟動的,突然不能啟動了,想到我改了配置檔案: 執行: vim /etc/sysconfig/docker 可能是家的內容有問題

mysql.service failed because the control process exited with error code問題

騰訊雲ubuntu下配置mysql遠端訪問一開始可以啟動,但後來關掉mysql服務一直重啟失敗 錯誤如下圖所示: 一開始以為是因為程序結束的方式錯誤,所以就重啟了一下伺服器;後來發現重啟伺服器後

centos7啟動iptables時報Job for iptables.service failed because the control process exited with error cod

異常信息 bsp stop input emctl tro stat mct centos7 centos7啟動iptables時報Job for iptables.service failed because the control process exi

centos7啟動MySQL時候突然進不去Job for mysqld.service failed because the control process exited with error cod

mysql突然進不去了,不知道什魔鬼 [[email protected] ~]# systemctl start mysqld.service Job for mysqld.service failed because the control pro

Job for iptables.service failed because the control process exit with error code 修復

Job for iptables.service failed because the control process exited with error code. See “systemctl status iptables.service” and “journalctl -xe”

mysql啟動失敗--Job for mysqld.service failed because the control process exited

1.centos7啟動報錯 Starting mysqld (via systemctl): Job for mysqld.service failed because the control process exited with error code. See "systemctl s

解決Docker啟動伺服器連結失敗-Job for docker.service failed because the control process exited error code

今天裝Docker炸了一波,老是連不上伺服器,提示: Job for docker.service failed because the control 就像這樣,使用  docker version 命令以後,只顯示了client ,提示錯誤 使用 sudo

關於Mariadb啟動報錯Job for mariadb.service failed because the control process exited...

MariaDB重啟後,執行 systemctl start mariadb 啟動報錯 Job for mariadb.service failed because the control process exited with error code. See "systemctl sta

nginx提示Job for nginx.service failed because the control的問題

proc 你是 pro 柯南 修改 exit 目錄 rest systemctl 啟動nginx時就報錯!Job for nginx.service failed because the control process exited with error code. See