Вопрос или проблема
У меня бесплатная версия mongodb на Windows 10.
Сервис и база данных работают два дня. Затем сервис перестает запускаться, и мне нужно очистить каталог базы данных, чтобы сервис заработал.
С тех пор циклы повторяются: сервис (либо с помощью запуска mongod.exe
, либо с автоматическим запуском сервиса при загрузке системы) работает нормально в первые 2-3 запуска после последней “очистки”, а затем каждая последующая попытка терпит неудачу до следующей “очистки”.
Сервис вылетает после успешного выполнения восстановления и воспроизведения журналов.
"Запись файла диагностики минидампа","attr":{"dumpName":"C:\\mongodb\\bin\\mongod.2024-12-13T16-12-07.mdmp"}}
"*** немедленный выход из-за необработанного исключения"
Полный журнал выполнения mongod.exe
(неудача):
[{"t":{"$date":"2024-12-13T18:12:05.892+02:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"thread1","msg":"Автоматически отключен TLS 1.0, чтобы принудительно включить TLS 1.0, укажите --sslDisabledProtocols 'none'"}
,{"t":{"$date":"2024-12-13T18:12:05.893+02:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"thread1","msg":"Инициализирован многопоточный режим"}
,{"t":{"$date":"2024-12-13T18:12:05.894+02:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"thread1","msg":"Не доступен неявный TCP FastOpen. Если требуется TCP FastOpen, установите хотя бы один из соответствующих параметров","attr":{"relatedParameters":["tcpFastOpenServer","tcpFastOpenClient","tcpFastOpenQueueSize"]}}
,{"t":{"$date":"2024-12-13T18:12:05.895+02:00"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"thread1","msg":"Инициализирована спецификация проводов","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":25},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":25},"outgoing":{"minWireVersion":6,"maxWireVersion":25},"isInternalClient":true}}}
,{"t":{"$date":"2024-12-13T18:12:05.898+02:00"},"s":"I", "c":"TENANT_M", "id":7091600, "ctx":"thread1","msg":"Запуск регистратора блокировщика доступа миграции арендаторов"}
,{"t":{"$date":"2024-12-13T18:12:05.898+02:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB запускается","attr":{"pid":9752,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"DESKTOP-JABS99V"}}
,{"t":{"$date":"2024-12-13T18:12:05.898+02:00"},"s":"I", "c":"CONTROL", "id":23398, "ctx":"initandlisten","msg":"Минимальная версия целевой операционной системы","attr":{"targetMinOS":"Windows 7/Windows Server 2008 R2"}}
,{"t":{"$date":"2024-12-13T18:12:05.898+02:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Информация о сборке","attr":{"buildInfo":{"version":"8.0.3","gitVersion":"89d97f2744a2b9851ddfb51bdf22f687562d9b06","modules":[],"allocator":"tcmalloc-gperf","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}}
,{"t":{"$date":"2024-12-13T18:12:05.898+02:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Операционная система","attr":{"os":{"name":"Microsoft Windows 10","version":"10.0 (build 19045)"}}}
,{"t":{"$date":"2024-12-13T18:12:05.899+02:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Опции, установленные через командную строку","attr":{"options":{}}}
,{"t":{"$date":"2024-12-13T18:12:05.902+02:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Обнаружен движок хранения для использования на основе файлов данных","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
,{"t":{"$date":"2024-12-13T18:12:05.902+02:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Открытие WiredTiger","attr":{"config":"create,cache_size=3528M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],prefetch=(available=true,default=false),"}}
,{"t":{"$date":"2024-12-13T18:12:05.981+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106325,"ts_usec":981027,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Восстановление лога 4 через 5"}}}
,{"t":{"$date":"2024-12-13T18:12:06.095+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":94776,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Восстановление лога 5 через 5"}}}
,{"t":{"$date":"2024-12-13T18:12:06.248+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":247678,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Главный цикл восстановления: начинается с 4/384 до 5/256"}}}
,{"t":{"$date":"2024-12-13T18:12:06.471+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":471543,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Восстановление лога 4 через 5"}}}
,{"t":{"$date":"2024-12-13T18:12:06.608+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":607456,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Восстановление лога 5 через 5"}}}
,{"t":{"$date":"2024-12-13T18:12:06.701+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":701403,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Воспроизведение журнала восстановления успешно завершено и длилось 721 миллисекунду"}}}
,{"t":{"$date":"2024-12-13T18:12:06.702+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":701403,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Установлен глобальный временной штамп восстановления: (0, 0)"}}}
,{"t":{"$date":"2024-12-13T18:12:06.702+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":702399,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Установлен глобальный самый старый временной штамп: (0, 0)"}}}
,{"t":{"$date":"2024-12-13T18:12:06.705+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":705107,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Откат восстановления на стабильный успешно завершен и длился 2 миллисекунды"}}}
,{"t":{"$date":"2024-12-13T18:12:06.720+02:00"},"s":"I", "c":"WTCHKPT", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":720085,"thread":"9752:140732063570064","session_name":"WT_SESSION.checkpoint","category":"WT_VERB_CHECKPOINT_PROGRESS","category_id":7,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Сохранение снимка контрольной точки мин: 1, максимальный снимок: 1, количество снимков: 0, самый старый временной штамп: (0, 0), временной штамп контрольной точки: (0, 0), базовое поколение записи: 33"}}}
,{"t":{"$date":"2024-12-13T18:12:06.790+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":790326,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Восстановление контрольной точки успешно завершено и длилось 84 миллисекунды"}}}
,{"t":{"$date":"2024-12-13T18:12:06.791+02:00"},"s":"I", "c":"WTRECOV", "id":22430, "ctx":"initandlisten","msg":"Сообщение WiredTiger","attr":{"message":{"ts_sec":1734106326,"ts_usec":790627,"thread":"9752:140732063570064","session_name":"txn-recover","category":"WT_VERB_RECOVERY_PROGRESS","category_id":34,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Восстановление было завершено успешно и заняло 810 мс, включая 721 мс на воспроизведение журнала, 2 мс на откат к стабильному и 84 мс на контрольную точку."}}}
,{"t":{"$date":"2024-12-13T18:12:06.808+02:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger открыт","attr":{"durationMillis":906}}
,{"t":{"$date":"2024-12-13T18:12:06.808+02:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"Время восстановления WiredTiger","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
,{"t":{"$date":"2024-12-13T18:12:06.822+02:00"},"s":"F", "c":"CONTROL", "id":23134, "ctx":"initandlisten","msg":"Необработанное исключение","attr":{"exceptionString":"0xC000001D","addressString":"0x00007FF6BAACCBAF"}}
,{"t":{"$date":"2024-12-13T18:12:06.822+02:00"},"s":"F", "c":"CONTROL", "id":23136, "ctx":"initandlisten","msg":"*** трассировка стека для необработанного исключения:"}
,{"t":{"$date":"2024-12-13T18:12:07.458+02:00"},"s":"I", "c":"CONTROL", "id":31380, "ctx":"initandlisten","msg":"BACKTRACE","attr":{"bt":{"backtrace":[{"a":"7FF6BAACCBAF","module":"mongod.exe","file":".../src/third_party/snappy/dist/snappy.cc","line":1493,"s":"snappy::SnappyDecompressor::DecompressAllTags<snappy::SnappyArrayWriter>","s+":"16F"},{"a":"7FF6BAACE088","module":"mongod.exe","file":".../src/third_party/snappy/dist/snappy.cc","line":2082,"s":"snappy::RawUncompress","s+":"F8"},{"a":"7FF6BAACE3DD","module":"mongod.exe","file":".../src/third_party/snappy/dist/snappy-c.cc","line":58,"s":"snappy_uncompress","s+":"4D"},{"a":"7FF6BAE25C94","module":"mongod.exe","file":".../src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c","line":179,"s":"snappy_decompression","s+":"54"},{"a":"7FF6BAEE8387","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/block_cache/block_io.c","line":189,"s":"__wt_blkcache_read","s+":"717"},{"a":"7FF6BAEB8C3B","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/btree/bt_handle.c","line":833,"s":"__btree_preload","s+":"3AB"},{"a":"7FF6BAEB956B","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/btree/bt_handle.c","line":149,"s":"__wt_btree_open","s+":"36B"},{"a":"7FF6BAE21EEB","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/conn/conn_dhandle.c","line":561,"s":"__wt_conn_dhandle_open","s+":"39B"},{"a":"7FF6BAE8FC67","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_dhandle.c","line":953,"s":"__wt_session_get_dhandle","s+":"B7"},{"a":"7FF6BAE8FFD5","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_dhandle.c","line":946,"s":"__wt_session_get_dhandle","s+":"425"},{"a":"7FF6BAE8F571","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_dhandle.c","line":477,"s":"__wt_session_get_btree_ckpt","s+":"F1"},{"a":"7FF6BAE41251","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/cursor/cur_file.c","line":1215,"s":"__wt_curfile_open","s+":"3E1"},{"a":"7FF6BADC94E8","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_api.c","line":699,"s":"__session_open_cursor_int","s+":"C8"},{"a":"7FF6BADD5109","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_api.c","line":739,"s":"__wt_open_cursor","s+":"89"},{"a":"7FF6BAE63119","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/cursor/cur_table.c","line":1102,"s":"__wt_curtable_open","s+":"E9"},{"a":"7FF6BADC94AC","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_api.c","line":606,"s":"__session_open_cursor_int","s+":"8C"},{"a":"7FF6BADC909D","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_api.c","line":802,"s":"__session_open_cursor","s+":"3FD"},{"a":"7FF6B95B3DA1","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp","line":98,"s":"mongo::`anonymous namespace'::_openCursor","s+":"41"},{"a":"7FF6B95B4720","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp","line":146,"s":"mongo::WiredTigerSession::getNewCursor","s+":"20"},{"a":"7FF6B95CA56E","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp","line":1832,"s":"mongo::WiredTigerRecordStore::getLargestKey","s+":"9E"},{"a":"7FF6B9581672","module":"mongod.exe","file":".../src/mongo/db/catalog/collection_impl.cpp","line":334,"s":"mongo::CollectionImpl::SharedState::SharedState","s+":"2A2"},{"a":"7FF6B9580DF0","module":"mongod.exe","file":".../src/mongo/db/catalog/collection_impl.cpp","line":355,"s":"mongo::CollectionImpl::CollectionImpl","s+":"170"},{"a":"7FF6B958D5F5","module":"mongod.exe","file":".../src/mongo/db/catalog/collection_impl.cpp","line":374,"s":"mongo::CollectionImpl::FactoryImpl::make","s+":"125"},{"a":"7FF6B96051A7","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_impl.cpp","line":479,"s":"mongo::StorageEngineImpl::_initCollection","s+":"257"},{"a":"7FF6B9608A04","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_impl.cpp","line":446,"s":"mongo::StorageEngineImpl::loadCatalog","s+":"1D54"},{"a":"7FF6B9601D0F","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_impl.cpp","line":167,"s":"mongo::StorageEngineImpl::StorageEngineImpl","s+":"1CF"},{"a":"7FF6B95A007F","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp","line":162,"s":"mongo::`anonymous namespace'::WiredTigerFactory::create","s+":"80F"},{"a":"7FF6B9693557","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_init.cpp","line":188,"s":"mongo::initializeStorageEngine","s+":"7F7"},{"a":"7FF6B88B9A47","module":"mongod.exe","file":".../src/mongo/db/mongod_main.cpp","line":597,"s":"`mongo::`anonymous namespace'::_initAndListen'::`2'::<lambda_2>::operator()","s+":"77"},{"a":"7FF6B88BC02A","module":"mongod.exe","file":".../src/mongo/db/mongod_main.cpp","line":591,"s":"mongo::`anonymous namespace'::_initAndListen","s+":"B3A"},{"a":"7FF6B88BF41E","module":"mongod.exe","file":".../src/mongo/db/mongod_main.cpp","line":1221,"s":"mongo::`anonymous namespace'::initAndListen","s+":"1E"},{"a":"7FF6B88C27AF","module":"mongod.exe","file":".../src/mongo/db/mongod_main.cpp","line":2224,"s":"mongo::mongod_main","s+":"7BF"},{"a":"7FF6B88A69BA","module":"mongod.exe","file":".../src/mongo/db/mongod.cpp","line":41,"s":"wmain","s+":"2A"},{"a":"7FF6BB0057DC","module":"mongod.exe","file":"d:/a01/_work/43/s/src/vctools/crt/vcstartup/src/startup/exe_common.inl","line":288,"s":"__scrt_common_main_seh","s+":"10C"},{"a":"7FFEBCA87374","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}]}},"tags":[]}
,{"t":{"$date":"2024-12-13T18:12:07.472+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAACCBAF","module":"mongod.exe","file":".../src/third_party/snappy/dist/snappy.cc","line":1493,"s":"snappy::SnappyDecompressor::DecompressAllTags<snappy::SnappyArrayWriter>","s+":"16F"}}}
,{"t":{"$date":"2024-12-13T18:12:07.473+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAACE088","module":"mongod.exe","file":".../src/third_party/snappy/dist/snappy.cc","line":2082,"s":"snappy::RawUncompress","s+":"F8"}}}
,{"t":{"$date":"2024-12-13T18:12:07.474+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAACE3DD","module":"mongod.exe","file":".../src/third_party/snappy/dist/snappy-c.cc","line":58,"s":"snappy_uncompress","s+":"4D"}}}
,{"t":{"$date":"2024-12-13T18:12:07.475+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAE25C94","module":"mongod.exe","file":".../src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c","line":179,"s":"snappy_decompression","s+":"54"}}}
,{"t":{"$date":"2024-12-13T18:12:07.476+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAEE8387","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/block_cache/block_io.c","line":189,"s":"__wt_blkcache_read","s+":"717"}}}
,{"t":{"$date":"2024-12-13T18:12:07.476+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAEB8C3B","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/btree/bt_handle.c","line":833,"s":"__btree_preload","s+":"3AB"}}}
,{"t":{"$date":"2024-12-13T18:12:07.477+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAEB956B","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/btree/bt_handle.c","line":149,"s":"__wt_btree_open","s+":"36B"}}}
,{"t":{"$date":"2024-12-13T18:12:07.478+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAE21EEB","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/conn/conn_dhandle.c","line":561,"s":"__wt_conn_dhandle_open","s+":"39B"}}}
,{"t":{"$date":"2024-12-13T18:12:07.479+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAE8FC67","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_dhandle.c","line":953,"s":"__wt_session_get_dhandle","s+":"B7"}}}
,{"t":{"$date":"2024-12-13T18:12:07.480+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAE8FFD5","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_dhandle.c","line":946,"s":"__wt_session_get_dhandle","s+":"425"}}}
,{"t":{"$date":"2024-12-13T18:12:07.481+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAE8F571","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_dhandle.c","line":477,"s":"__wt_session_get_btree_ckpt","s+":"F1"}}}
,{"t":{"$date":"2024-12-13T18:12:07.494+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAE41251","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/cursor/cur_file.c","line":1215,"s":"__wt_curfile_open","s+":"3E1"}}}
,{"t":{"$date":"2024-12-13T18:12:07.495+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BADC94E8","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_api.c","line":699,"s":"__session_open_cursor_int","s+":"C8"}}}
,{"t":{"$date":"2024-12-13T18:12:07.498+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BADD5109","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_api.c","line":739,"s":"__wt_open_cursor","s+":"89"}}}
,{"t":{"$date":"2024-12-13T18:12:07.499+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BAE63119","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/cursor/cur_table.c","line":1102,"s":"__wt_curtable_open","s+":"E9"}}}
,{"t":{"$date":"2024-12-13T18:12:07.499+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BADC94AC","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_api.c","line":606,"s":"__session_open_cursor_int","s+":"8C"}}}
,{"t":{"$date":"2024-12-13T18:12:07.500+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BADC909D","module":"mongod.exe","file":".../src/third_party/wiredtiger/src/session/session_api.c","line":802,"s":"__session_open_cursor","s+":"3FD"}}}
,{"t":{"$date":"2024-12-13T18:12:07.501+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B95B3DA1","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp","line":98,"s":"mongo::`anonymous namespace'::_openCursor","s+":"41"}}}
,{"t":{"$date":"2024-12-13T18:12:07.502+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B95B4720","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp","line":146,"s":"mongo::WiredTigerSession::getNewCursor","s+":"20"}}}
,{"t":{"$date":"2024-12-13T18:12:07.503+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B95CA56E","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp","line":1832,"s":"mongo::WiredTigerRecordStore::getLargestKey","s+":"9E"}}}
,{"t":{"$date":"2024-12-13T18:12:07.507+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B9581672","module":"mongod.exe","file":".../src/mongo/db/catalog/collection_impl.cpp","line":334,"s":"mongo::CollectionImpl::SharedState::SharedState","s+":"2A2"}}}
,{"t":{"$date":"2024-12-13T18:12:07.508+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B9580DF0","module":"mongod.exe","file":".../src/mongo/db/catalog/collection_impl.cpp","line":355,"s":"mongo::CollectionImpl::CollectionImpl","s+":"170"}}}
,{"t":{"$date":"2024-12-13T18:12:07.509+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B958D5F5","module":"mongod.exe","file":".../src/mongo/db/catalog/collection_impl.cpp","line":374,"s":"mongo::CollectionImpl::FactoryImpl::make","s+":"125"}}}
,{"t":{"$date":"2024-12-13T18:12:07.510+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B96051A7","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_impl.cpp","line":479,"s":"mongo::StorageEngineImpl::_initCollection","s+":"257"}}}
,{"t":{"$date":"2024-12-13T18:12:07.511+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B9608A04","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_impl.cpp","line":446,"s":"mongo::StorageEngineImpl::loadCatalog","s+":"1D54"}}}
,{"t":{"$date":"2024-12-13T18:12:07.512+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B9601D0F","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_impl.cpp","line":167,"s":"mongo::StorageEngineImpl::StorageEngineImpl","s+":"1CF"}}}
,{"t":{"$date":"2024-12-13T18:12:07.512+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B95A007F","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp","line":162,"s":"mongo::`anonymous namespace'::WiredTigerFactory::create","s+":"80F"}}}
,{"t":{"$date":"2024-12-13T18:12:07.513+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B9693557","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_init.cpp","line":188,"s":"mongo::initializeStorageEngine","s+":"7F7"}}}
,{"t":{"$date":"2024-12-13T18:12:07.526+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B88B9A47","module":"mongod.exe","file":".../src/mongo/db/mongod_main.cpp","line":597,"s":"`mongo::`anonymous namespace'::_initAndListen'::`2'::<lambda_2>::operator()","s+":"77"}}}
,{"t":{"$date":"2024-12-13T18:12:07.528+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B88BC02A","module":"mongod.exe","file":".../src/mongo/db/mongod_main.cpp","line":591,"s":"mongo::`anonymous namespace'::_initAndListen","s+":"B3A"}}}
,{"t":{"$date":"2024-12-13T18:12:07.529+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B88BF41E","module":"mongod.exe","file":".../src/mongo/db/mongod_main.cpp","line":1221,"s":"mongo::`anonymous namespace'::initAndListen","s+":"1E"}}}
,{"t":{"$date":"2024-12-13T18:12:07.530+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B88C27AF","module":"mongod.exe","file":".../src/mongo/db/mongod_main.cpp","line":2224,"s":"mongo::mongod_main","s+":"7BF"}}}
,{"t":{"$date":"2024-12-13T18:12:07.531+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6B88A69BA","module":"mongod.exe","file":".../src/mongo/db/mongod.cpp","line":41,"s":"wmain","s+":"2A"}}}
,{"t":{"$date":"2024-12-13T18:12:07.532+02:00"},"s":"I", "c":"CONTROL", "id":31445, "ctx":"initandlisten","msg":"Фрейм","attr":{"frame":{"a":"7FF6BB0057DC","module":"mongod.exe","file":"d:/a01/_work/43/s/src/vctools/crt/vcstartup/src/startup/exe_common.inl","line":288,"s":"__scrt_common_main_seh","s+":"10C"}}}
,{"t":{"$date":"2024-12-13T18:12:07.533+02:00"},"s":"I", "c":"CONTROL", "id":23132, "ctx":"initandlisten","msg":"Запись файла диагностики минидампа","attr":{"dumpName":"C:\\mongodb\\bin\\mongod.2024-12-13T16-12-07.mdmp"}}
,{"t":{"$date":"2024-12-13T18:12:07.669+02:00"},"s":"F", "c":"CONTROL", "id":23137, "ctx":"initandlisten","msg":"*** немедленный выход из-за необработанного исключения"}
]
Информация о сборке:
{
"version": "8.0.3",
"gitVersion": "89d97f2744a2b9851ddfb51bdf22f687562d9b06",
"modules": [],
"allocator": "tcmalloc-gperf",
"environment": {
"distmod": "windows",
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
Информация о процессоре: Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
Файлы программы находятся в C:\mongodb
.
Я попробовал использовать как C:\mongodb\data
, так и C:\data\db
в качестве пути к базе данных.
Все пользователи имеют полный доступ к обоим путям базы данных.
Я пытался удалять и переустанавливать.
Размер каталога базы данных составляет около 200 МБ до неудачных и успешных попыток, а основной объем жесткого диска имеет более 100 неиспользуемых ГБ.
Я пытался запускать приложение от имени администратора.
Проверил запуск .\mongod.exe --wiredTigerCollectionBlockCompressor zstd --wiredTigerJournalCompressor zstd
и .\mongod.exe --wiredTigerCollectionBlockCompressor zlib --wiredTigerJournalCompressor zlib
, но я всё еще получаю ту же ошибку из dist/snappy.cc:1493
.
Любая помощь была бы оценена.
Ответ или решение
Проблема с запуском сервера MongoDB на Windows 10, возникающая в виде необработанного исключения 0xC000001D, заслуживает тщательного разбора. Давайте детально рассмотрим причины, возможные решения и рекомендации по устранению этой неисправности.
Описание проблемы
Вы наблюдаете, что MongoDB работает стабильно в течение первых 2-3 дней, после чего не может запуститься, и единственным решением является очистка каталога с данными. Логи указывают на успешное выполнение восстановления, но после этого возникает необработанное исключение, что приводит к аварийному завершению приложения.
В логах выделяется важный момент:
Unhandled exception, attr: {"exceptionString":"0xC000001D"}
Это указание на внутреннюю ошибку, вероятно, связанную с операциями с данными. В частности, ошибка происходит в коде, связанном с декомпрессией данных с использованием библиотеки Snappy (snappy.cc:1493
).
Возможные причины
-
Проблемы с компрессией данных: Ошибки при декомпрессии могут возникать в результате повреждения файлов данных или нестабильности работы самого механизма сжатия.
-
Недостаток ресурсов: Хотя на первый взгляд у вас достаточно свободного места на диске, стоит проверить ресурсы системы в момент работы MongoDB (например, оперативная память и загрузка процессора).
-
Повреждение данных: С файлами данных или журнала может что-то пойти не так, что приводит к их порче. Это часто связано с неполными записями данных при неожиданном завершении работы сервера.
-
Конфигурации и параметры старта: Использование нестандартных параметров при запуске может повлиять на работу сервера. Вы уже пробовали разные компрессоры для WiredTiger, но все же стоит убедиться, что они совместимы с вашими данными.
Решения и рекомендации
-
Очистка данных: Поскольку вы уже используете очистку каталога как временное решение, следует рассмотреть альтернативные методы резервного копирования данных и восстановлению. Например, используйте механизм
mongodump
для создания резервной копии перед очисткой, а затем восстановите данные. -
Проверка на наличие поврежденных данных: Проверьте журнал данных на наличие повреждений. Возможно, инструменты, такие как
mongorestore
, помогут исправить нестабильности. -
Обновление версии MongoDB: Убедитесь, что используете последнюю стабильную версию MongoDB, так как в обновлениях могут быть исправления для известных проблем, включая работу с декомпрессией данных.
-
Изменение настроек конфигурации: Попробуйте минимизировать количество операций, которые MongoDB выполняет в момент запуска, используя параметры командной строки, например, отключите сжатие при старте для диагностики:
mongod --storageEngine=wiredTiger --wiredTigerCollectionBlockCompressor=none
-
Мониторинг ресурсов системы: Используйте диспетчер задач Windows или такие утилиты, как Process Explorer, чтобы следить за загрузкой системы во время работы MongoDB и выявить возможные узкие места.
-
Логи и трассировка ошибок: Убедитесь, что логи MongoDB записываются в файл. Это может дать более глубокое понимание появления исключений и других проблем.
Заключение
Проблема с запуском MongoDB, связанная с необработанным исключением, требует внимания и системного подхода к ее решению. Следуя вышеизложенным рекомендациям, вы сможете диагностировать и, возможно, устранить проблему. Не забывайте о резервном копировании данных и обновлении ПО для обеспечения стабильности работы вашего сервера MongoDB.
Если проблема не исчезнет, участие службы технической поддержки MongoDB или форума сообщества может быть очень полезным для дополнительной помощи.