简体   繁体   English

OpenShift:503服务不可用

[英]OpenShift: 503 Service Unavailable

I've been working on my Ghost theme for the last few hours, and suddenly this error. 最近几个小时,我一直在研究我的Ghost主题,突然出现了这个错误。 Attached is a copy of my HAProxy status output. 随附的是我的HAProxy状态输出的副本。

在此处输入图片说明

I've restarted both NodeJS and HAProxy. 我已经重新启动了NodeJS和HAProxy。 Neither restart fixed the issue, and both are showing as running in the console. 重新启动均未解决问题,并且均显示为在控制台中运行。

Does anyone know how to fix this issue? 有人知道如何解决此问题吗?

I've found the culprit. 我找到了罪魁祸首。 In the nodejs log, I found the following: 在nodejs日志中,我发现了以下内容:

ERROR: [default.hbs] The partial contact could not be found 
Rendering Error Page 
Ghost caught a processing error in the middleware layer.

I returned to the theme I was editing when this problem occurred and cross-referenced all requests for partials with the partials files themselves, and found that I had misspelled one. 发生此问题时,我返回了正在编辑的主题,并将所有对partials的请求与partials文件本身进行了交叉引用,发现我拼错了一个。 Correcting that, fixed this issue immediately. 更正该问题后,请立即解决此问题。

My 503 was specific to an error in my Ghost theme. 我的503特定于我的Ghost主题中的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM