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

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

问题描述

我在 Django/Python 3 中使用 Openshift.截至昨天,我一直无法更新我的服务器.当我推送更改时,推送成功.使用 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 stop 似乎成功停止了该应用程序,但我的网站可以不受阻碍地运行.(我以前从未尝试过停止,但假设它应该杀死网站.)

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 三月博文

@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天全站免登陆