社区运营 本站之前遭遇 redis 入侵,导致阅读数都清空了

cmlanche · 2019年10月11日 · 最后由 cmlanche 回复于 2019年10月11日 · 230 次阅读

错误:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error

Method:      GET
URL:         /topics/27
Controller:  topics#show
RequestId:   04250229-9fcd-42cb-a0ad-67d3ce94c1c5
User-Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Remote IP:   172.18.0.8
Language:    zh-CN,zh;q=0.9,en;q=0.8,la;q=0.7
Server:      e536cfb1d223
Process:     27

--------------------------------------------------

#<Redis::CommandError: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.>


/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/redis-4.1.2/lib/redis/client.rb:126:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/redis-4.1.2/lib/redis.rb:760:in `block in incrby'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/redis-4.1.2/lib/redis.rb:52:in `block in synchronize'
/usr/local/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/redis-4.1.2/lib/redis.rb:52:in `synchronize'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/redis-4.1.2/lib/redis.rb:759:in `incrby'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/redis-objects-1.4.3/lib/redis/counter.rb:74:in `block in increment'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/redis-objects-1.4.3/lib/redis/base_object.rb:28:in `allow_expiration'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/redis-objects-1.4.3/lib/redis/counter.rb:73:in `increment'
/home/app/homeland/app/controllers/topics_controller.rb:48:in `show'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/abstract_controller/base.rb:196:in `process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/callbacks.rb:135:in `run_callbacks'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:180:in `block in instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:180:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.0.rc1/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/abstract_controller/base.rb:136:in `process'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.0.rc1/lib/action_view/rendering.rb:39:in `process'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_controller/metal.rb:191:in `dispatch'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_controller/metal.rb:252:in `dispatch'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/routing/route_set.rb:51:in `dispatch'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/routing/route_set.rb:33:in `serve'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/journey/router.rb:49:in `block in serve'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/journey/router.rb:32:in `each'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/journey/router.rb:32:in `serve'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/routing/route_set.rb:837:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:192:in `call!'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:169:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:57:in `block in call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:182:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:56:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:14:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:57:in `block in call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:182:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:56:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/rack-attack-6.0.0/lib/rack/attack.rb:158:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:57:in `block in call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:182:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:56:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/exception_notification-4.3.0/lib/exception_notification/rack.rb:41:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:57:in `block in call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:182:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:56:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/warden-1.2.8/lib/warden/manager.rb:36:in `block in call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/warden-1.2.8/lib/warden/manager.rb:34:in `catch'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/warden-1.2.8/lib/warden/manager.rb:34:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:57:in `block in call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:182:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:56:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/tempfile_reaper.rb:15:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:57:in `block in call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:182:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:56:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/etag.rb:25:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:57:in `block in call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/notifications.rb:182:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:56:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/conditional_get.rb:25:in `call'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.0.rc1/lib/action_dispatch/middleware/stack.rb:57:in `block in call'
/home/app/homeland/vendor/bundle/ruby

此贴已暂时被屏蔽!
此贴因内容原因不符合要求,被管理员屏蔽,请根据管理员给出的原因进行调整
共收到 2 条回复

以后再也不打卡防火墙了

重启vps,重启homeland就正常了

cmlanche 屏蔽了此话题:不需要了 10月16日 23:34
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册