Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds

[email protected] /etc/swift $ sudo swift-init main restart
Signal proxy-server  pid: 5688  signal: 15
No proxy-server running
Signal container-server  pid: 5689  signal: 15
Signal container-server  pid: 5690  signal: 15
Signal container-server  pid: 5691  signal: 15
Signal container-server  pid: 5692  signal: 15
Signal account-server  pid: 5693  signal: 15
Signal account-server  pid: 5694  signal: 15
Signal account-server  pid: 5695  signal: 15
Signal account-server  pid: 5696  signal: 15
Signal object-server  pid: 5697  signal: 15
Signal object-server  pid: 5698  signal: 15
Signal object-server  pid: 5699  signal: 15
Signal object-server  pid: 5700  signal: 15
container-server (5689) appears to have stopped
container-server (5690) appears to have stopped
container-server (5691) appears to have stopped
container-server (5692) appears to have stopped
account-server (5696) appears to have stopped
account-server (5694) appears to have stopped
account-server (5695) appears to have stopped
object-server (5698) appears to have stopped
object-server (5700) appears to have stopped
account-server (5693) appears to have stopped
object-server (5697) appears to have stopped
object-server (5699) appears to have stopped
Starting 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)
Starting object-server...(/etc/swift/object-server/1.conf)
Starting object-server...(/etc/swift/object-server/2.conf)
Starting object-server...(/etc/swift/object-server/3.conf)
Starting object-server...(/etc/swift/object-server/4.conf)
Traceback (most recent call last):
  File "/usr/local/bin/swift-proxy-server", line 10, in <module>
    execfile(__file__)
  File "/home/swift/swift/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, ‘proxy-server‘, **options))
  File "/home/swift/swift/swift/common/wsgi.py", line 878, in run_wsgi
    error_msg = strategy.bind_ports()
  File "/home/swift/swift/swift/common/wsgi.py", line 480, in bind_ports
    self.sock = get_socket(self.conf)
  File "/home/swift/swift/swift/common/wsgi.py", line 201, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds

这种情况很常见,就是端口占用的问题。解决办法:

[email protected] /etc/swift $ sudo netstat -ltnp | grep 8080tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      3251/python     [email protected] /etc/swift $ ps -wlp 3251F S   UID    PID   PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD0 S  1001   3251      1  1  80   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 8080tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      3256/python     [email protected] /etc/swift $ ps -wlp 3256F S   UID    PID   PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD1 S  1001   3256      1  0  80   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

时间: 2024-11-04 18:46:13

Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds的相关文章

uncaught exception &#39;CALayerInvalidGeometry&#39;, reason: &#39;CALayer bounds contains NaN: [nan 0; 600 300]&#39;

原因 我遇到的是,存在出数为0的情况时,所得结果为NaN. 解决方法 添加判断,处理错误 if(isnan(ecg)){ //isnan为系统函数,判断结果是否为NaN //特殊处理 ecg = 0.0; }else{ //正常情况,不做处理 } 版权声明:本文为博主原创文章,未经博主允许不得转载. uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [nan 0; 600 300]

C++:vector中的v.at(0)和v[0]的区别

设v是一个vector的对象, 如果v是非空的,则v.at(0)和v[0]是没有区别的,都是取数组中第一个值: 如果v是空的,则v.at(0)会抛出异常(exception std::out_of_range),指出数组下标越界,而v[0]的行为是未知的,因为operator[]操作符是不做下标越界检查的,这是为了保证程序执行效率.

Could not parse configuration: file:/D:/apache-tomcat-7.0.55-windows-x64/apache-tomcat-7.0.55/webapp

在做ssh项目时,启动tomcat,出现了以下的错误 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ins

vue1.0 -vue 2.0

vue.js 发表于 2017-01-15   | vue基础 vue1.0 vue1.0对象的属性 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 var vm = new Vue({ el:'#box', //容器 data:{ //数据 msg:"data", a:1 }, methods:{ //普通方法 }, computed:{ //计算属性(属性b随着其return

Hadoop2.6.0 + Spark1.4.0 在Ubuntu14.10环境下的伪分布式集群的搭建(实践可用)

前言,之前曾多次搭建集群,由于疏于记录,每次搭建的时候到处翻阅博客,很是费劲,在此特别记录集群的搭建过程. 0.环境:Ubuntu14.10.Hadoop2.6.0.spark-1.4.0 1.安装jdk1.7 (1)下载jdk-7u25-linux-i586.tar.gz: (2)解压jdk-7u25-linux-i586.tar.gz,并将其移动到 /opt/java/jdk/路径下面 (3)配置java环境变量: 在 /etc/profile文件中追加 #set java env expo

本机IP、127.0.0.1和0.0.0.0的区别

本机ip.127.0.0.1和0.0.0.0区别 网络java IP地址的记法: IP地址由四个字节构成,为了方便阅读和书写,每个字节用0-255的数字表示,字节之间用'.'分割,如: 10.10.152.235 有时候我们会看到这样的IP: 10.10.152.235/24, 后面的/24表示子网掩码,24表示子网掩码上有24个1,等价于255.255.255.0 . IP地址和子网掩码按位 与,得到的是 网络号(Network ID), 剩余的部分是子网内的 主机号(host ID,当然,这

关于cocos2d-x3.0和2.0之间的区别

区别1.去CC 之前2.0的CC**,把CC都去掉,基本的元素都是保留的 2.0 CCSprite CCCallFunc CCNode .. 3.0 Sprite CallFunc Node .. 区别2.cc***结构体改变 2.0 ccp(x,y) ccpAdd(p1,p2) ccpSub ccpMult ccpLength(p) ccpDot(p1,p2); ccc3() ccc4() ccWHITE CCPointZero CCSizeZero 3.0 Point(x,y) p1+p2;

出现错误:Unable to load configuration. - action - file:/E:/Java/Tomcat7.0/apache-tomcat-7.0.68-windows-x64/apache-tomcat-7.0.68/webapps/SSH2Integrate/WEB-INF/classes/struts.xml:8:43

严重: Exception starting filter struts2 Unable to load configuration. - action - file:/E:/Java/Tomcat7.0/apache-tomcat-7.0.68-windows-x64/apache-tomcat-7.0.68/webapps/SSH2Integrate/WEB-INF/classes/struts.xml:8:43 at org.apache.struts2.dispatcher.Dispat

ASP.Net MVC3安全升级导致程序集从3.0.0.0变为3.0.0.1

开发环境一般引用的是本机 C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies下的System.Web.Mvc.dll,当系统更新时,此文件会更新为高级版本,从而和已经部署到服务器上的System.Web.Mvc.dll版本不一致.从能在线上运行时报下面的错误: Assembly 'TestUnsafe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' us