【发布时间】:2014-03-21 22:58:27
【问题描述】:
我的 openshift python-2.7 应用程序几天前工作正常,但突然坏了。我不知道确切的原因。这可能是服务器配置的更改,我的应用程序可能没有遵循正确的 WSGI 部署方式。尽管如此,我还是修复了它并推动了改变。但是由于以下错误,服务无法启动。
remote: deploy script running
remote: Starting Python 2.7 cartridge (Apache+mod_wsgi)
remote: Application directory "/" selected as DocumentRoot
remote: Application "wsgi.py" selected as default WSGI entry point
remote: (98)Address already in use: make_sock: could not bind to address 127.11.54.xxx:8080
remote: no listening sockets available, shutting down
remote: Unable to open logs
remote: -------------------------
remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: 52814cb4500446c785000126 (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/xxxxxcb4500446c7xxxxxxxx/python)
remote: Deployment completed with status: failure
remote: postreceive failed
我试图终止 apache 进程,但无权执行此操作。我尝试使用rhc app stop -a myapp -a。但没有任何回报。
现在该怎么做才能开始这个过程?它最初是如何陷入这种境地的?
【问题讨论】:
标签: python-2.7 mod-wsgi openshift