Tutor_local_mongodb_1 not starting after upgrade Lilac to Maple

Container tutor_local_mongodb_1 is not starting anymore (tries restart every so many seconds) after upgrading to Maple from Lilac.

Part of log file:

df81710d597a        mongo:4.2.17                                 "docker-entrypoint.s…"   14 hours ago        Restarting (62) 26 seconds ago                                              tutor_local_mongodb_1

2021-12-23T09:38:48.503+0000 I  CONTROL  [initandlisten]
2021-12-23T09:38:48.513+0000 F  CONTROL  [initandlisten] ** IMPORTANT: UPGRADE PROBLEM: Found an invalid featureCompatibilityVersion document (ERROR: BadValue: Invalid value for version, found 3.6, expected '4.2' or '4.0'. Contents of featureCompatibilityVersion document in admin.system.version: { _id: "featureCompatibilityVersion", version: "3.6" }. See https://docs.mongodb.com/manual/release-notes/4.2-compatibility/#feature-compatibility.). If the current featureCompatibilityVersion is below 4.0, see the documentation on upgrading at https://docs.mongodb.com/manual/release-notes/4.2/#upgrade-procedures.
2021-12-23T09:38:48.513+0000 I  REPL     [initandlisten] Stepping down the ReplicationCoordinator for shutdown, waitTime: 10000ms
2021-12-23T09:38:48.513+0000 I  SHARDING [initandlisten] Shutting down the WaitForMajorityService
2021-12-23T09:38:48.513+0000 I  NETWORK  [initandlisten] shutdown: going to close listening sockets...
2021-12-23T09:38:48.513+0000 I  NETWORK  [initandlisten] Shutting down the global connection pool
2021-12-23T09:38:48.513+0000 I  STORAGE  [initandlisten] Shutting down the FlowControlTicketholder
2021-12-23T09:38:48.513+0000 I  -        [initandlisten] Stopping further Flow Control ticket acquisitions.
2021-12-23T09:38:48.513+0000 I  STORAGE  [initandlisten] Shutting down the PeriodicThreadToAbortExpiredTransactions
2021-12-23T09:38:48.513+0000 I  STORAGE  [initandlisten] Shutting down the PeriodicThreadToDecreaseSnapshotHistoryIfNotNeeded
2021-12-23T09:38:48.513+0000 I  REPL     [initandlisten] Shutting down the ReplicationCoordinator
2021-12-23T09:38:48.513+0000 I  SHARDING [initandlisten] Shutting down the ShardingInitializationMongoD
2021-12-23T09:38:48.513+0000 I  REPL     [initandlisten] Enqueuing the ReplicationStateTransitionLock for shutdown
2021-12-23T09:38:48.513+0000 I  -        [initandlisten] Killing all operations for shutdown
2021-12-23T09:38:48.513+0000 I  COMMAND  [initandlisten] Shutting down all open transactions
2021-12-23T09:38:48.513+0000 I  REPL     [initandlisten] Acquiring the ReplicationStateTransitionLock for shutdown
2021-12-23T09:38:48.513+0000 I  INDEX    [initandlisten] Shutting down the IndexBuildsCoordinator
2021-12-23T09:38:48.513+0000 I  NETWORK  [initandlisten] Shutting down the ReplicaSetMonitor
2021-12-23T09:38:48.513+0000 I  CONTROL  [initandlisten] Shutting down free monitoring
2021-12-23T09:38:48.513+0000 I  FTDC     [initandlisten] Shutting down full-time data capture
2021-12-23T09:38:48.513+0000 I  STORAGE  [initandlisten] Shutting down the HealthLog
2021-12-23T09:38:48.513+0000 I  STORAGE  [initandlisten] Shutting down the storage engine
2021-12-23T09:38:48.513+0000 I  STORAGE  [initandlisten] Deregistering all the collections
2021-12-23T09:38:48.513+0000 I  STORAGE  [initandlisten] Timestamp monitor shutting down
2021-12-23T09:38:48.514+0000 I  STORAGE  [initandlisten] WiredTigerKVEngine shutting down
2021-12-23T09:38:48.514+0000 I  STORAGE  [initandlisten] Shutting down session sweeper thread
2021-12-23T09:38:48.514+0000 I  STORAGE  [initandlisten] Finished shutting down session sweeper thread
2021-12-23T09:38:48.514+0000 I  STORAGE  [initandlisten] Shutting down checkpoint thread
2021-12-23T09:38:48.514+0000 I  STORAGE  [initandlisten] Finished shutting down checkpoint thread
2021-12-23T09:38:48.514+0000 I  STORAGE  [initandlisten] Downgrading WiredTiger datafiles.
2021-12-23T09:38:49.010+0000 I  STORAGE  [initandlisten] WiredTiger message [1640252329:10679][1:0x7f88acdb9b00], txn-recover: Set global recovery timestamp: (0, 0)
2021-12-23T09:38:50.420+0000 I  STORAGE  [initandlisten] shutdown: removing fs lock...
2021-12-23T09:38:50.420+0000 I  -        [initandlisten] Dropping the scope cache for shutdown
2021-12-23T09:38:50.420+0000 I  CONTROL  [initandlisten] now exiting
2021-12-23T09:38:50.420+0000 I  CONTROL  [initandlisten] shutting down with code:62

It’s strange that your Mongodb featureCompatibilityVersion is 3.6. It should have been set to 4.0 in Lilac. Are you quite sure that you have correctly upgraded from Koa?

Please try the following:

tutor local upgrade --from=koa
1 Like

Thanks Regis, that did the trick!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.