几天前,我的 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
.但没有任何返回。现在该怎么做才能开始这个过程?它最初是如何陷入这种境地的?
最佳答案
这个错误开始于 3 月 13 日左右。它也影响了我的 python 3.3 应用程序。其他人和我自己都发布了关于它的帖子,但 openshift 没有回应。我希望他们能修复它。与此同时,在我进行推送之前,我很幸运地使用了“rhc app-force-stop”cmd。
关于python-2.7 - 如何杀死/停止 openshift 服务器进程以释放服务端口?错误 : "Address already in use",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22570977/