- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
蒙戈版本:蒙戈:4.2.6
我正在遵循手册 Convert a Standalone to a Replica Set以副本集模式运行 MongoDB。
当我尝试使用命令 mongod --replSet rs0
启动 MongoDB 时 - 我收到下一条日志:***fassert() 失败后中止
mongodb-hotbot_1 | 2020-11-29T07:54:06.233+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 W ASIO [main] No TransportLayer configured during NetworkInterface startup
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=8c7762d33a84
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] db version v4.2.6
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] git version: 20364840b8f1af16917e4c23c1b5f5efd8b352f8
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] allocator: tcmalloc
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] modules: none
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] build environment:
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] distmod: ubuntu1804
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] distarch: x86_64
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] target_arch: x86_64
mongodb-hotbot_1 | 2020-11-29T07:54:06.235+0000 I CONTROL [initandlisten] options: { net: { bindIp: "*" }, replication: { replSet: "rs0" } }
mongodb-hotbot_1 | 2020-11-29T07:54:06.237+0000 W STORAGE [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
mongodb-hotbot_1 | 2020-11-29T07:54:06.240+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
mongodb-hotbot_1 | 2020-11-29T07:54:06.241+0000 W STORAGE [initandlisten] Recovering data from the last clean checkpoint.
mongodb-hotbot_1 | 2020-11-29T07:54:06.242+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=483M,cache_overflow=(file_max=0M),session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
mongodb-hotbot_1 | 2020-11-29T07:54:06.737+0000 I STORAGE [initandlisten] WiredTiger message [1606636446:737260][1:0x7fb7b9e5bb00], txn-recover: Recovering log 548 through 549
mongodb-hotbot_1 | 2020-11-29T07:54:07.233+0000 I STORAGE [initandlisten] WiredTiger message [1606636447:233737][1:0x7fb7b9e5bb00], txn-recover: Recovering log 549 through 549
mongodb-hotbot_1 | 2020-11-29T07:54:07.735+0000 I STORAGE [initandlisten] WiredTiger message [1606636447:735489][1:0x7fb7b9e5bb00], txn-recover: Main recovery loop: starting at 548/256 to 549/256
mongodb-hotbot_1 | 2020-11-29T07:54:07.739+0000 I STORAGE [initandlisten] WiredTiger message [1606636447:739240][1:0x7fb7b9e5bb00], txn-recover: Recovering log 548 through 549
mongodb-hotbot_1 | 2020-11-29T07:54:07.792+0000 I STORAGE [initandlisten] WiredTiger message [1606636447:792369][1:0x7fb7b9e5bb00], txn-recover: Recovering log 549 through 549
mongodb-hotbot_1 | 2020-11-29T07:54:07.826+0000 I STORAGE [initandlisten] WiredTiger message [1606636447:826673][1:0x7fb7b9e5bb00], txn-recover: Set global recovery timestamp: (1598047236, 1)
mongodb-hotbot_1 | 2020-11-29T07:54:07.849+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(1598047236, 1)
mongodb-hotbot_1 | 2020-11-29T07:54:07.890+0000 I STORAGE [initandlisten] Starting OplogTruncaterThread local.oplog.rs
mongodb-hotbot_1 | 2020-11-29T07:54:07.890+0000 I STORAGE [initandlisten] The size storer reports that the oplog contains 1372748 records totaling to 335339428 bytes
mongodb-hotbot_1 | 2020-11-29T07:54:07.890+0000 I STORAGE [initandlisten] Sampling the oplog to determine where to place markers for truncation
mongodb-hotbot_1 | 2020-11-29T07:54:07.901+0000 I STORAGE [initandlisten] Sampling from the oplog between Aug 6 11:40:28:1 and Aug 22 01:00:20:2 to determine where to place markers for truncation
mongodb-hotbot_1 | 2020-11-29T07:54:07.901+0000 I STORAGE [initandlisten] Taking 24 samples and assuming that each section of oplog contains approximately 554226 records totaling to 135388162 bytes
mongodb-hotbot_1 | 2020-11-29T07:54:07.992+0000 I STORAGE [initandlisten] Placing a marker at optime Feb 17 12:37:42:1
mongodb-hotbot_1 | 2020-11-29T07:54:07.992+0000 I STORAGE [initandlisten] Placing a marker at optime Jun 16 13:50:38:524
mongodb-hotbot_1 | 2020-11-29T07:54:07.992+0000 I STORAGE [initandlisten] WiredTiger record store oplog processing took 101ms
mongodb-hotbot_1 | 2020-11-29T07:54:07.995+0000 I STORAGE [initandlisten] Timestamp monitor starting
mongodb-hotbot_1 | 2020-11-29T07:54:07.997+0000 I CONTROL [initandlisten]
mongodb-hotbot_1 | 2020-11-29T07:54:07.997+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
mongodb-hotbot_1 | 2020-11-29T07:54:07.997+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
mongodb-hotbot_1 | 2020-11-29T07:54:07.997+0000 I CONTROL [initandlisten]
mongodb-hotbot_1 | 2020-11-29T07:54:08.057+0000 I SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
mongodb-hotbot_1 | 2020-11-29T07:54:08.074+0000 I STORAGE [initandlisten] Flow Control is enabled on this deployment.
mongodb-hotbot_1 | 2020-11-29T07:54:08.074+0000 I SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
mongodb-hotbot_1 | 2020-11-29T07:54:08.074+0000 I SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
mongodb-hotbot_1 | 2020-11-29T07:54:08.083+0000 I SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
mongodb-hotbot_1 | 2020-11-29T07:54:08.084+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
mongodb-hotbot_1 | 2020-11-29T07:54:08.085+0000 I SHARDING [initandlisten] Marking collection local.replset.minvalid as collection version: <unsharded>
mongodb-hotbot_1 | 2020-11-29T07:54:08.086+0000 I SHARDING [initandlisten] Marking collection local.replset.election as collection version: <unsharded>
mongodb-hotbot_1 | 2020-11-29T07:54:08.096+0000 I REPL [initandlisten] Rollback ID is 1
mongodb-hotbot_1 | 2020-11-29T07:54:08.096+0000 F REPL [initandlisten] This instance has been repaired and may contain modified replicated data that would not match other replica set members. To see your repaired data, start mongod without the --replSet option. When you are finished recovering your data and would like to perform a complete re-sync, please refer to the documentation here: https://docs.mongodb.com/manual/tutorial/resync-replica-set-member/
mongodb-hotbot_1 | 2020-11-29T07:54:08.096+0000 F - [initandlisten] Fatal Assertion 50923 at src/mongo/db/repl/replication_coordinator_impl.cpp 527
mongodb-hotbot_1 | 2020-11-29T07:54:08.096+0000 F - [initandlisten]
mongodb-hotbot_1 |
mongodb-hotbot_1 | ***aborting after fassert() failure
mongodb-hotbot_1 |
mongodb-hotbot_1 |
以下是中止进程之前日志末尾的消息:
此实例已修复,并且可能包含与其他副本集成员不匹配的修改的复制数据。要查看修复的数据,请在不带 --replSet 选项的情况下启动 mongod。当您完成数据恢复并想要执行完整的重新同步时,请参阅此处的文档:https://docs.mongodb.com/manual/tutorial/resync-replica-set-member/
所以我尝试按照下一个手册 Recover a Standalone after an Unexpected Shutdown 修复我的数据
最终我在 dbPath 目录中得到了空文件 mongod.lock
,据我了解,这是恢复成功完成的信号。
然后我以独立模式启动 mongodb,一切正常,所以我优雅地关闭它,并仔细检查 mongod.lock
文件之后仍然为空。
最后,我尝试使用空的 mongod.lock 启动命令 mongod --replSet rs0
但我再次遇到相同的错误,并且 mongod.lock
文件更新为 1在...之后的第一行
有什么想法可以解决此问题并使用我的数据在副本集模式下启动 mongo 吗?
最佳答案
这是我为解决该问题所做的操作:
mongod --dbpath/data/db --repair
mongod --dbpath/data/db
mongodump --host=localhost --port=27017 --out=/tmp/dumps/1
mongo "mongodb://localhost:27017/admin"
& db.shutdownServer()
mongod --dbpath/data/db_recovered --replSet rs0
mongo "mongodb://localhost:27017/admin"
& rs.initiate()
& db.isMaster()
mongorestore --host=localhost --port=27017/tmp/dumps/1
关于MongoDB:***在将独立数据集转换为副本集期间,fassert() 失败错误后中止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65058364/
我已经在 kubernetes 中部署了一个 3 pod mongodb statefulset,并且我正在尝试使用新的 mongodb+srv 连接字符串 (mongodb 3.6) 连接到具有 S
我已经创建了 MongoDB Atlas 帐户,并尝试连接。但出现以下错误。 MongoDB 连接错误 MongoNetworkError: 首次连接时无法连接到服务器 [cluster0-shard
我正在使用 Node-WebKit 创建桌面应用程序。该应用程序基本上是创建文档(员工日常工作的详细信息),任何注册用户都可以对这些文档发表评论。我正在创建的文档将被分成几个部分。用户将对特定部分发表
我正在尝试使用官方网站上的安装程序在我的本地机器上安装 mongo DB。但是我不断收到这条消息,有人可以帮忙吗? 我试过提供的解决方案 here但没有帮助。 最佳答案 我建议执行以下操作: 按 Wi
我对 MongoDB 和 MongoDB Compass 非常陌生。 我的客户集合中有大约 1000 条记录。如何通过 MongoDB 指南针一次删除所有记录。 非常感谢, 最佳答案 您可以使用 Mo
当我尝试在我的 Ubuntu 机器中安装 mongodb 时,apt-get 会显示以下选项 mongodb mongodb-clients mongodb-dev mongodb-server 谁能
如何将 Robomongo(或任何其他 mongodb 客户端)连接到由本地 Meteor 应用程序创建的 mongodb 实例? 最佳答案 确保 Meteor 正在本地主机上运行。打开终端窗口并运行
我需要在 MongoDB 中生成一个简单的频率表。假设我在名为 books 的集合中有以下文档。 { "_id": 1, genre: [ "Fantasy", "Crime"
我如何在 mongos mapreduce 中指定一个条件,就像我们在 mongos group 函数中所做的那样。 我的数据是这样的 {lid:1000, age:23}, {lid:3000, a
我的 mongodb 数据库文档中有几个 ID。我需要通过脚本在这些 ID 上创建索引,这样我就不必一次又一次地运行 ensureIndex 命令。 db.getCollection("element
在我的数据库中,每个包含项目的文档中都有一个嵌套的元素数组,格式如下: elements:[ { "elem_id": 12, items: [ {"i_id": 1
我正在构建一个应用程序,其中用户可以位于不同的时区,并且我运行的查询对他们的时区很敏感。 我遇到的问题是 MongoDB 似乎在查询时忽略了时区! 这是日期字段“2019-09-29T23:52:13
我正在研究使用 mongodb 进行分片,我有以下结构: 1 个 Mongod 到我的 ConfigServer,在 ReplicaSet 中只有 1 个成员 2 个分片,每个分片在 ReplicaS
我正在尝试获取一个 mongoDB 对象,例如 Friend1 包含另一个 mongoDB 对象 Friend2,该对象又包含第一个对象 Friend1本质上使它成为一个循环对象引用。 要么这样,要么
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 9年前关闭。 Improve this que
Mongo 版本 5.0.2。 Ubuntu 20.0 我在本地主机中启用了 MongoDB 连接的安全性。 我正在尝试通过以下命令使用身份验证详细信息连接我的本地主机 MongoDBmongo ad
我即将将分片的 MongoDB 环境从 2.0.7 升级到 2.2.9,最终我想升级到 2.4.9,但显然我需要通过 2.2 来完成。 2.2 的发行说明声明配置服务器应该首先升级其二进制文件,然后是
目前,我无法在我的虚拟 Ubuntu 机器上远程连接 mongodb 服务器。我无法使用在我的 Windows PC 上运行的 Robomongo 客户端连接,该 PC 也运行 vm。 这是两台电脑的
我创建了一个免费的 mongodb 集群。我创建了一个用户,设置了与 mongodb compass 的连接,复制了连接字符串,然后打开了我的 mongodb compass。将复制的字符串粘贴到那里
我使用 java 代码创建了 mongo 数据库集合索引 dbCollection.createIndex("accountNumber"); 当我看到索引使用 db.accounts.getInde
我是一名优秀的程序员,十分优秀!