Hi, i guess my question is, is the below output correct? i'm not able to restart the salt-master process. I've checked and it is running however surly i must be able to stop/start/restart the service.
salt-master restart --log-level=debug
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: ubuntu
[DEBUG ] Configuration file path: /etc/salt/master
[INFO ] Setting up the Salt Master
[WARNING ] Unable to bind socket, error: [Errno 98] Address already in use
The ports are not available to bind
any ideas?
It was not shutdown cleanly. You need to kill all salt-master processes before attempting to restart.
tried the below but didn't work. any ideas?
salt-master stop
[WARNING ] Unable to bind socket, error: [Errno 98] Address already in use
The ports are not available to bind
@Comm4nd0 First, try this: ps aux | grep salt-master. Then, kill the salt-master processes that are still running. After that you should be able to start your master.
ps aux | grep salt-master
root 1133 0.4 0.7 142596 31096 ? Ss 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1641 0.4 1.1 223484 49680 ? S 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1642 0.0 0.6 224524 27320 ? Sl 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1648 0.0 0.6 224524 27328 ? Sl 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1651 0.0 0.5 142852 25192 ? S 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1652 1.2 1.3 397356 57376 ? Sl 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1668 1.5 1.3 397620 57688 ? Sl 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1685 1.3 1.3 396988 57240 ? Sl 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1686 1.2 1.3 396992 57260 ? Sl 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1687 1.3 1.3 396992 57148 ? Sl 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 1688 0.0 0.6 519708 27512 ? Sl 01:32 0:00 /usr/bin/python /usr/bin/salt-master
root 3718 0.0 0.0 15952 2184 pts/14 S+ 01:33 0:00 grep --color=auto salt-master
root@ubuntu:/home/marco# salt-master stop
[WARNING ] Unable to bind socket, error: [Errno 98] Address already in use
The ports are not available to bind
didn't seem to work ether. starting lose faith in saltstack very quickly!
and these are the services i'm running...
root@ubuntu:/home/marco# service --status-all
[ + ] acpid
[ - ] anacron
[ + ] apache2
[ + ] apparmor
[ ? ] apport
[ + ] avahi-daemon
[ + ] bluetooth
[ - ] brltty
[ ? ] console-setup
[ + ] cron
[ + ] cups
[ + ] cups-browsed
[ - ] dbus
[ ? ] dns-clean
[ + ] friendly-recovery
[ - ] grub-common
[ ? ] irqbalance
[ + ] kerneloops
[ ? ] killprocs
[ ? ] kmod
[ - ] landscape-client
[ ? ] lightdm
[ ? ] networking
[ ? ] ondemand
[ ? ] pppd-dns
[ - ] procps
[ - ] pulseaudio
[ ? ] rc.local
[ + ] resolvconf
[ - ] rsync
[ + ] rsyslog
[ - ] salt-api
[ + ] salt-master
[ + ] salt-minion
[ + ] salt-syndic
[ + ] saned
[ ? ] sendsigs
[ ? ] speech-dispatcher
[ - ] sudo
[ + ] udev
[ ? ] umountfs
[ ? ] umountnfs.sh
[ ? ] umountroot
[ - ] unattended-upgrades
[ - ] urandom
[ - ] x11-common
deleted
@Comm4nd0 can you reformat the last post please?
i can't work it out.
I don't think it matters anyway, i've given all the info i can on this error. does anyone have any suggestions?
should the master say this?
interface: 0.0.0.0
@Comm4nd0 Try killall salt-master
Since we haven't heard anything here for a bit, I am going to close this issue. If you're still having troubles, please leave a comment and we will be happy to help. Thanks!
having this issue trying to start saltstack as well. i have interface: [private ip of master] configured in /etc/salt/master, and master: [private ip of minion] within /etc/salt/minion on the minion.
thoughts?
i've tried on the master, "salt-master" - hangs for about 5 - 10s, then errors out with the "unable to bind socket" error.
Thanks.
I can confirm, killing the process fixed it ( I was having the same issue, rebooting the machine didn't work?)
# ps -aux | grep salt
root 2653 0.0 0.1 342288 30512 ? S Feb16 0:00 /usr/bin/python /usr/bin/salt-master -d
root 2654 0.0 0.1 424084 29768 ? Sl Feb16 0:00 /usr/bin/python /usr/bin/salt-master -d
root 2655 0.0 0.1 424084 30384 ? Sl Feb16 0:00 /usr/bin/python /usr/bin/salt-master -d
#kill 2653
cleared up all the other processes too
then
service salt-master restart
In OpenSUSE, First:
ps aux | grep salt-master
Then;
sudo killall -9 salt-mast
After all:
salt-master --log-level=debug or
salt-master
Trying to install on RHEL 6.4, Tried restarting salt-master , Killing all process to still the same error
[root@serv1 ~]# salt-master --log-level=debug
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: serv1.vicomdemo.local
[DEBUG ] Configuration file path: /etc/salt/master
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO ] Setting up the Salt Master
[WARNING ] Unable to bind socket, error: [Errno 98] Address already in use
The ports are not available to bind
[root@serv1 ~]#
netstat -an | grep -i portnumber
Salt master port is used by some other process so you cant start the process until the other process is killed.