I have a python upgrade issue when running the salt-master command. May I know how to upgrade from Python 2.7 to Python 3.3 for SUMA3.2?
susemanager:/ # salt-master
/usr/lib/python2.7/site-packages/salt/scripts.py:102: DeprecationWarning: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. Salt will drop support for Python 2.7 in the Sodium release or later.
[WARNING ] Unable to bind socket 0.0.0.0:4505, error: [Errno 98] Address already in use; Is there another salt-master running?
The salt master is shutdown. The ports are not available to bind
I have a python upgrade issue when running the salt-master command. May I know how to upgrade from Python 2.7 to Python 3.3 for SUMA3.2?
susemanager:/ # salt-master
/usr/lib/python2.7/site-packages/salt/scripts.py:102: DeprecationWarning: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. Salt will drop support for Python 2.7 in the Sodium release or later.
[WARNING ] Unable to bind socket 0.0.0.0:4505, error: [Errno 98] Address already in use; Is there another salt-master running?
The salt master is shutdown. The ports are not available to bind[/QUOTE]
SUSE Manager 3.2 uses python 2.7 and this will not change until it is EOL.
If you want to use python 3, please upgrade to SUSE Manager 4.0 on SLE 15 platform.
Btw: above message is just a “warning” and can be ignored. The error “Address already in use” has nothing to do with the python version.
I would suggest to check if there is really no other program running which use this port.
[QUOTE=mcalmer;59600]SUSE Manager 3.2 uses python 2.7 and this will not change until it is EOL.
If you want to use python 3, please upgrade to SUSE Manager 4.0 on SLE 15 platform.
Btw: above message is just a “warning” and can be ignored. The error “Address already in use” has nothing to do with the python version.
I would suggest to check if there is really no other program running which use this port.
Regards
Michael[/QUOTE]
#Salt-master
susemanager:~ # lsof -i:4505
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
salt-mast 3921 salt 15u IPv4 27636 0t0 TCP *:4505 (LISTEN)
salt-mast 3921 salt 17u IPv4 30274 0t0 TCP susemanager.happypc.com:4505->sles12sp42.happypc.com:43226 (ESTABLISHED)
salt-mast 3921 salt 18u IPv4 40042 0t0 TCP susemanager.happypc.com:4505->sles12sp4.happypc.com:54454 (ESTABLISHED)
#Salt-minion
sles12sp42:~ # lsof -i:4505
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
salt-mini 1508 root 21u IPv4 26553 0t0 TCP sles12sp42.happypc.com:43226->susemanager.happypc.com:4505 (ESTABLISHED)
I can see only salt-master occupies this port number.
[WARNING ] Unable to bind socket 0.0.0.0:4505, error: [Errno 98] Address already in use; Is there another salt-master running?
Is there any alternate way to check for this issue?
[QUOTE=peichyitan;59616]#Salt-master
susemanager:~ # lsof -i:4505
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
salt-mast 3921 salt 15u IPv4 27636 0t0 TCP *:4505 (LISTEN)
salt-mast 3921 salt 17u IPv4 30274 0t0 TCP susemanager.happypc.com:4505->sles12sp42.happypc.com:43226 (ESTABLISHED)
salt-mast 3921 salt 18u IPv4 40042 0t0 TCP susemanager.happypc.com:4505->sles12sp4.happypc.com:54454 (ESTABLISHED)
I can see only salt-master occupies this port number.
[WARNING ] Unable to bind socket 0.0.0.0:4505, error: [Errno 98] Address already in use; Is there another salt-master running?
Is there any alternate way to check for this issue?[/QUOTE]
When you start salt master, do you kill 3921 beforehand?