Exception:could not bind to 0.0.0.0:8080 after trying for seconds

Source: Internet
Author: User

[Email protected]/etc/swift $sudoswift-Init main restartsignal proxy-server PID:5688Signal theNo Proxy-Server runningsignal Container-server PID:5689Signal theSignal Container-server PID:5690Signal theSignal Container-server PID:5691Signal theSignal Container-server PID:5692Signal theSignal Account-server PID:5693Signal theSignal Account-server PID:5694Signal theSignal Account-server PID:5695Signal theSignal Account-server PID:5696Signal theSignalObject-server PID:5697Signal theSignalObject-server PID:5698Signal theSignalObject-server PID:5699Signal theSignalObject-server PID:5700Signal theContainer-server (5689) appears to has Stoppedcontainer-server (5690) appears to has Stoppedcontainer-server (5691) appears to has Stoppedcontainer-server (5692) appears to has Stoppedaccount-server (5696) appears to has Stoppedaccount-server (5694) appears to has Stoppedaccount-server (5695) appears to has stoppedObject-server (5698) appears to has stoppedObject-server (5700) appears to has Stoppedaccount-server (5693) appears to has stoppedObject-server (5697) appears to has stoppedObject-server (5699) appears to has stoppedstarting proxy-server ... (/etc/swift/proxy-server.conf) Starting container-server ... (/etc/swift/container-server/1. conf) Starting container-server ... (/etc/swift/container-server/2. conf) Starting container-server ... (/etc/swift/container-server/3. conf) Starting container-server ... (/etc/swift/container-server/4. conf) Starting Account-server ... (/etc/swift/account-server/1. conf) Starting Account-server ... (/etc/swift/account-server/2. conf) Starting Account-server ... (/etc/swift/account-server/3. conf) Starting Account-server ... (/etc/swift/account-server/4. conf) StartingObject-server ... (/etc/swift/Object-server/1. conf) StartingObject-server ... (/etc/swift/Object-server/2. conf) StartingObject-server ... (/etc/swift/Object-server/3. conf) StartingObject-server ... (/etc/swift/Object-server/4. conf) Traceback (most recent call Last): File"/usr/local/bin/swift-proxy-server", lineTen,inch<module>execfile (__file__) file"/home/swift/swift/bin/swift-proxy-server", line at,inch<module>Sys.exit (Run_wsgi (Conf_file,'Proxy-server', **options)) File"/home/swift/swift/swift/common/wsgi.py", line878,inchRun_wsgi error_msg=strategy.bind_ports () File"/home/swift/swift/swift/common/wsgi.py", line480,inchbind_ports Self.sock=Get_socket (self.conf) File"/home/swift/swift/swift/common/wsgi.py", line201,inchGet_socket bind_addr[0], bind_addr[1], bind_timeout)) Exception:could not bind to0.0.0.0:8080After trying for  -Seconds

This is a common situation, which is the issue of port occupancy. Workaround:


[Email protected]/etc/swift $ sudo netstat-ltnp | grep 8080
TCP 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 3251/python
[Email protected]/etc/swift $ PS-WLP 3251
F S UID PID PPID C PRI NI ADDR SZ Wchan TTY time CMD
0 S 1001 3251 1 1 0-22488 poll_s? 00:01:28 Swift-proxy-ser
[Email protected]/etc/swift $ sudo kill-9 3251
[Email protected]/etc/swift $ sudo netstat-ltnp | grep 8080
TCP 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 3256/python
[Email protected]/etc/swift $ PS-WLP 3256
F S UID PID PPID C PRI NI ADDR SZ Wchan TTY time CMD
1 S 1001 3256 1 0 0-22950 poll_s? 00:00:00 Swift-proxy-ser
[Email protected]/etc/swift $ sudo kill-9 3256
[Email protected]/etc/swift $ sudo netstat-ltnp | grep 8080


Exception:could not bind to 0.0.0.0:8080 after trying for seconds

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.