【问题标题】:How to kill/stop openshift server process to free the service port? Error: "Address already in use"如何杀死/停止openshift服务器进程以释放服务端口?错误:“地址已在使用中”
【发布时间】: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


    【解决方案1】:

    这个错误开始于 3 月 13 日左右。它也影响了我的 python 3.3 应用程序。其他人和我自己都发布了有关它的信息,但没有得到 openshift 的回应。我希望他们能修复它。与此同时,在我推送之前,我很幸运使用了 'rhc app-force-stop' cmd。

    【讨论】:

    • 谢谢。 force-stop 目前确实解决了这个问题。但最好知道根本原因以及如何在未来避免这种情况,最重要的是。 Openshift 可能正在研究它。让我们等待他们说什么。
    • 我希望他们正在努力。已经一个多星期了,一点也不知道。
    • 你能把你输入的关于我们系统问题的 bugzilla 贴出来吗?
    • 我还没有提交 bugzilla 报告。我在这里发布了其他人对这个问题的看法。自一周前开始以来,我一直在关注有关问题的帖子。 openshift 对 stackoverflow 上的任何帖子都没有回应。我很困惑。 openshift 是为其支持系统或 bugzilla 使用堆栈溢出吗?我不是要争论,但我真的很想知道去哪里从 openshift 获得答案,而不会阻塞你的 bugzilla 帐户。
    【解决方案2】:

    我认为您的应用程序基于其他用户也共享的服务器。 所以任何人都可以登录 SSH 并杀死 httpd 和 mysql。当 httpd 没有运行时,它开始给出 503 错误。 这可能是一个仍然存在的安全整体(2014 年 3 月)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-06
      • 1970-01-01
      • 1970-01-01
      • 2017-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-12
      相关资源
      最近更新 更多