POW,OS X - 代理超时 - 502错误

时间:2016-02-09 23:06:03

标签: ruby-on-rails ruby macos rack-pow

我在OSX上运行POW来为RoR应用程序提供开发服务。有一天,我的一个应用程序突然返回502错误。页面似乎正在加载,直到它突然显示此消息:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /index.html.

Reason: Error reading from remote server

502

我已经检查了日志,没有任何东西 - 没有执行Ruby代码,所以Rails甚至没有被触及。我在终端输入 rails s ,应用程序正常运行。

此外,我将GIT我的应用程序恢复到发布之前的阶段,甚至一开始,结果也一样。

* .dev域中的其他开发者应用正常运行。

不确定问题出在哪里以及我应该在哪里寻找它。我非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

已经解决。

我必须在〜/ Library / Logs / Pow / app /中看到日志,并发现Ruby bug。 http://pow.cx/manual.html#section_2.6

[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING /Users/***/.rvm/gems/ruby-2.2.2/gems/json-1.8.3/lib/json/ext.rb:13:in `require'
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING 
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING -- Machine register context ------------------------------------------------
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING  rax: 0x0000000000000000 rbx: 0x00007fdfad2f4450 rcx: 0x0000000000000000
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING  rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000025
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING  rbp: 0x00007fff57954310 rsp: 0x00007fff579542b0  r8: 0x0000000000000000
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING   r9: 0x00007fff71bb2110 r10: 0x00007fff98b8e401 r11: 0x00007fff8f847140
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING  r12: 0x0000000108d0ece0 r13: 0x0000000000000000 r14: 0x0000000000000025
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING  r15: 0x0000000000000000 rip: 0x0000000108d58886 rfl: 0x0000000000010202
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING 
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING -- C level backtrace information -------------------------------------------
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING 0   libruby.2.2.0.dylib                 0x0000000108440655 rb_vm_bugreport + 149
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING 1   libruby.2.2.0.dylib                 0x00000001082e82f2 rb_bug_context + 466
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING 2   libruby.2.2.0.dylib                 0x00000001083bccf3 sigsegv + 83
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING 3   libsystem_platform.dylib            0x00007fff841a352a _sigtramp + 26
[Wed Feb 10 2016 01:46:33 GMT+0100 (CET)] WARNING 4   libruby.2.2.0.dylib                 0x0000000108d58886 newobj_of + 45

我已降级Ruby 2.2.2 - > 2.2.1并且它有效。所以我打赌就是这样,对我来说问题是为什么它在运行 rails s 时工作正常。