python-2.7 - 如何杀死/停止 openshift 服务器进程以释放服务端口?错误 : "Address already in use"

标签 python-2.7 mod-wsgi openshift

几天前,我的 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/

相关文章:

python - 不修改 Django wsgi.conf 的 AWS ElasticBeanstalk 更新

sed - openshift 上的 ejabberd - 与节点的 RPC 连接失败

kubernetes - 如何使用 HELM 强制重新部署

java - Openshift MySQL 连接器

python - 使用Python Graphene设置一个值并获取多个值

python - 为什么此错误消息不指向列表中的第一个无效八进制数?

python - 字典列表到字典聚合列表

python - Apache mod_wsgi Django 设置 - 禁止您无权访问此服务器上的/mysite

python - 安装 Python 2.7 时缺少 dll 错误

docker - 我的flask应用程序身份验证工作正常,但是当我使用 Alpine 图像对整个应用程序进行泊坞验证时,身份验证被破坏