【发布时间】: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 df→display free disk space(维基百科说它代表“无磁盘”) -
啊,这是系统范围的.. 显示文件系统.. %Used 等?
-
当然。你为什么不做一个
man df?
标签: python database macos redis redistimeseries