CouchDB 1.3.0数据库压缩 - 错误grondot.couch.compact:没有这样的文件

时间:2013-05-07 14:55:03

标签: linux ubuntu couchdb couchdb-futon

由于我们将CouchDB从1.2.0升级到1.3.0,因此在压缩数据库时遇到了问题。其他所有工作都很顺利,但是当压缩数据库时(通过Futon,或通过Cron / CURL命令),它不会压缩数据库。查看压缩工作正常。每次触发数据库压缩时,我们都会在couch.log文件中收到此错误:

[Tue, 07 May 2013 02:00:01 GMT] [error] [<0.1264.1402>] Could not open file /usr/local/var/lib/couchdb/grondot.couch.compact: no such file or directory

.couch文件的位置是正确的,但压缩时没有生成.compact文件。

有人知道(或已经解决)这个问题吗?

1 个答案:

答案 0 :(得分:0)

我担心同样的错误消息,但事实证明,在尝试查找CouchDB可能未记录的现有压缩文件时,似乎是内部错误。如果您将日志级别更改为“debug”,您会注意到它完成了压缩,尽管显示了错误:

[info] [<0.319.0>] Starting compaction for db "core-configuration"
[debug] [<0.896.0>] Compaction process spawned for db "core-configuration"
[info] [<0.130.0>] 192.168.1.20 - - POST /core-configuration/_compact 202
[error] [<0.896.0>] Could not open file /var/data/couchdb/core-configuration.couch.compact: no such file or directory
[debug] [<0.88.0>] New task status for <0.896.0>: [{changes_done,3981},
                                                   {database,
                                                    <<"core-configuration">>},
                                                   {progress,49},
                                                   {started_on,1368262489},
                                                   {total_changes,8082},
                                                   {type,database_compaction},
                                                   {updated_on,1368262490}]
[debug] [<0.88.0>] New task status for <0.896.0>: [{changes_done,7959},
                                                   {database,
                                                    <<"core-configuration">>},
                                                   {progress,98},
                                                   {started_on,1368262489},
                                                   {total_changes,8082},
                                                   {type,database_compaction},
                                                   {updated_on,1368262492}]
[debug] [<0.319.0>] CouchDB swapping files /var/data/couchdb/core-configuration.couch and /var/data/couchdb/core-configuration.couch.compact.
[info] [<0.319.0>] Compaction for db "core-configuration" completed.