这个错误是什么?

时间:2014-08-08 21:48:32

标签: ruby ruby-on-rails-3 unicorn

我完全不知道我改变了什么。 unicorn配置已经静止了几个月。突然间我开始看到这个错误 - 它似乎与工作人员有关,但这是在开发人员,我在我的应用程序中禁用了该部分。我对发生的事情感到非常难过 - 对独角兽的一些更新?

编辑:我应该更清楚。我知道这是一个路线问题。麻烦的是,我不知道是什么叫/告知。在我的书面代码中,我没有在任何地方调用它。这意味着一些宝石期待在/告知有资源,它似乎与Unicorn有关。但是我在6个多月内没有改变任何与Unicorn有关的事情。这让我相信有一段时间我运行bundle install会带来一个新版本的gem。

尽可能地尝试,我无法确定改变了什么以及在哪里。

 Started POST "/inform" for 192.168.1.9 at 2014-08-08 16:46:01 -0500


ActionController::RoutingError (No route matches [POST] "/inform"):
  actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.5) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.5) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
  railties (3.2.13) lib/rails/engine.rb:479:in `call'
  railties (3.2.13) lib/rails/application.rb:223:in `call'
  railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
  rack (1.4.5) lib/rack/lint.rb:48:in `_call'
  rack (1.4.5) lib/rack/lint.rb:36:in `call'
  rack (1.4.5) lib/rack/showexceptions.rb:24:in `call'
  rack (1.4.5) lib/rack/commonlogger.rb:33:in `call'
  rack (1.4.5) lib/rack/chunked.rb:43:in `call'
  rack (1.4.5) lib/rack/content_length.rb:14:in `call'
  unicorn (4.8.0) lib/unicorn/http_server.rb:571:in `process_client'
  unicorn (4.8.0) lib/unicorn/http_server.rb:658:in `worker_loop'
  unicorn (4.8.0) lib/unicorn/http_server.rb:520:in `spawn_missing_workers'
  unicorn (4.8.0) lib/unicorn/http_server.rb:140:in `start'
  unicorn (4.8.0) bin/unicorn:126:in `<top (required)>'
  /usr/local/rvm/gems/ruby-2.0.0-p451/bin/unicorn:23:in `load'
  /usr/local/rvm/gems/ruby-2.0.0-p451/bin/unicorn:23:in `<main>'
  /usr/local/rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `eval'
  /usr/local/rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `<main>'

我添加了一条假路线来填充收集到的任何内容:

在2014-08-14 20:48:45 -0500开始发布“/ inform”for 192.168.1.9 由ApiController处理#通知为HTML 警告:无法验证CSRF令牌的真实性 MONGODB(0.5ms)creative_development ['admins']。find({:_ id =&gt; nil})。limit(-1) 重定向到http://192.168.x.x/login 过滤器链停止为:require_login呈现或重定向 完成302发现在1ms 192.168.1.9 - - [14 / Aug / 2014 20:48:45]“POST / inform HTTP / 1.1”302 - 0.0150

当然它停止了因为这不是我的应用程序的一部分并且没有经过身份验证。仍然不知道是什么导致了它。

0 个答案:

没有答案