Openshift:OSError Errno 98无法更新服务器 [英] Openshift: OSError Errno 98 can't update server

查看:161
本文介绍了Openshift:OSError Errno 98无法更新服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Django / Python中使用Openshift 3.截至昨天,我一直无法更新我的服务器。当我推动变革时,推动是成功的。使用SCP查看服务器上的文件,更新的文件将出现。使用rhc git-pull也可以下载正确的文件。但是,模板是通过推送实际上在应用程序上发生变化的唯一的事情。没有更改python文件会对应用程序产生影响。

I'm using Openshift with Django/Python 3. As of yesterday, I've been unable to update my server. When I push a change, the push is successful. Using SCP to view the files on the server, the updated files are present. Using rhc git-pull downloads the correct files as well. However, the templates are the only thing that actually get changed on the app by the push. No changes to python files cause an effect on the app.

当我尝试使用'rhc tail'时,我收到以下错误:

When I try to use 'rhc tail', I get the following error:

OSError: [Errno 98] Address already in use

搜索此错误导致我相信我的应用程序运行多个服务器进程。我不知道如何运行建议的诊断,因为我不控制服务器。有任何想法吗?重新启动应用程序不会修复它。运行rhc停止似乎成功停止应用程序,但我的网站不受阻碍地工作。 (我从来没有试过停止,但是假设它应该是杀死网站。)

Searching this error leads me to believe there are multiple server processes running for my app. I'm not sure how to run suggested diagnostics, as I don't control the server. Any ideas? Restarting the app does not fix it. Running rhc stop appears to successfully stop the app, yet my website works unhindered. (I've never tried stopping before, but assume it's supposed to kill the website.)

推荐答案

我今天下午发现这个帖子有人有同样的问题。看起来Openshift改变了我们的一些事情。我没有获得备忘录:(。

I found this post this afternoon by somebody having the same problem. It looks like Openshift changed some things on us. I didn't get the memo :(.

阅读这里:
Openshift March Blog post

@MSDOS,它类似于你的答案,我想发布可能影响大多数人的通用答案。

@MSDOS, it is similar to your answer but I wanted to post the generic answer that is probably affecting most people.

对我来说,我只需要将app.py(我的旧wsgi入口点)重命名为wsgi。 py和一切都应该是应该的:) :)现在我必须弄清楚他们改变了cron的工作:(

For me, I just had to rename app.py (my old wsgi entry point) to wsgi.py and everything worked as it should. :) Now I have to figure what they changed to the cron jobs :(

这篇关于Openshift:OSError Errno 98无法更新服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆