【问题标题】:REDIS BGSAVE Assertion failed, terminated by signal 6. (macos / python)REDIS BGSAVE 断言失败,由信号 6 终止。(macos / python)
【发布时间】:2020-05-05 09:12:34
【问题描述】:

Redis 新手(3 天,哈哈)在一般情况下都可以正常工作,但出现此错误。

              _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 5.0.7 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 53149
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

53149:M 18 Jan 2020 21:02:34.415 # Server initialized
53149:M 18 Jan 2020 21:02:34.426 * Module 'timeseries' loaded from /Users/ash/RedisTimeSeries/bin/macosx-x64-release/redistimeseries.so
53149:M 18 Jan 2020 21:02:35.238 * DB loaded from disk: 0.812 seconds
53149:M 18 Jan 2020 21:02:35.238 * Ready to accept connections
53149:M 18 Jan 2020 21:11:40.475 * Background saving started by pid 53691
Assertion failed: (leading + blocksize <= BINW), function readV, file gorilla.c, line 432.
53149:M 18 Jan 2020 21:11:40.630 # Background saving terminated by signal 6

根据我在 Stackoverflow 上阅读的先前问题的答案,我已经将 rdb 文件的位置更改为可写位置。

事实上,我的脚本成功地重复执行了 BGSAVE 一段时间,然后在某个时间点它开始抛出上述错误。

我重新启动了服务器,只是为了“看到”,因此上面的代码 sn-p 没有显示成功的尝试。但是您可以将DB loaded from disk 视为这一点的指标。

感谢您直接提供任何帮助,或者进一步阅读与此相关的有用主题。

谢谢

【问题讨论】:

  • 你的磁盘怎么样? df 好吗?
  • 磁盘应该没问题。说了这么多,df是什么?
  • df 是您需要将答案中的“应该”替换为“是”的命令:man dfdisplay free disk space(维基百科说它代表“无磁盘”)
  • 啊,这是系统范围的.. 显示文件系统.. %Used 等?
  • 当然。你为什么不做一个man df

标签: python database macos redis redistimeseries


【解决方案1】:

这是一个错误。 Two issues 在过去几天内开放。

A PR was published 即将合并。

感谢您的意见。

【讨论】:

  • PR 现已合并,将成为 v1.2.1 的一部分
猜你喜欢
  • 1970-01-01
  • 2013-09-04
  • 1970-01-01
  • 2012-07-29
  • 1970-01-01
  • 2016-11-10
  • 2019-09-18
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多