hello
I use meteor up for deployment to my server.
but I need to use newer version for mongodb. so I choose mongo 4.4.4, but I got error.
this is my mup.js
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: '1.2.3.4',
username: 'myusername',
pem: './myusername.ppk',
password: 'mypassword'
// or neither for authenticate from ssh-agent
}
},
app: {
// TODO: change app name and path
name: 'my-app',
path: '../',
servers: {
one: {},
},
buildOptions: {
serverOnly: true,
},
env: {
// TODO: Change to your app's url
// If you are using ssl, it needs to start with https://
ROOT_URL: 'http://1.2.3.4',
MONGO_URL: 'mongodb://mongodb/meteor',
MONGO_OPLOG_URL: 'mongodb://mongodb/local',
MAIL_URL: "mail mail here"
},
docker: {
image: 'zodern/meteor:latest',
},
// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true,
deployCheckWaitTime: 300
},
mongo: {
version: '4.4.4',
servers: {
one: {}
}
},
// (Optional)
// Use the proxy to setup ssl or to route requests to the correct
// app when there are several apps
proxy: {
domains: 'some.com',
ssl: {
// Enable Let's Encrypt
letsEncryptEmail: 'server@some.com'
}
}
};
and my error when I use mup deploy
:
------------------------------------STDERR------------------------------------
:28:54.140+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2021-08-03T13:28:54.140+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
2021-08-03T13:28:54.140+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=256M,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],
2021-08-03T13:28:54.798+0000 I STORAGE [initandlisten] WiredTiger message [1627997334:798334][1:0x7f089714ab00], txn-recover: Recovering log 210 through 211
2021-08-03T13:28:54.889+0000 I STORAGE [initandlisten] WiredTiger message [1627997334:889462][1:0x7f089714ab00], txn-recover: Recovering log 211 through 211
2021-08-03T13:28:54.975+0000 I STORAGE [initandlisten] WiredTiger message [1627997334:975092][1:0x7f089714ab00], txn-recover: Main recovery loop: starting at 210/768 to 211/256
2021-08-03T13:28:55.087+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:87607][1:0x7f089714ab00], txn-recover: Recovering log 210 through 211
2021-08-03T13:28:55.155+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:155584][1:0x7f089714ab00], txn-recover: Recovering log 211 through 211
2021-08-03T13:28:55.207+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:207939][1:0x7f089714ab00], txn-recover: Set global recovery timestamp: (0,0)
2021-08-03T13:28:55.226+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2021-08-03T13:28:55.230+0000 I STORAGE [initandlisten] WiredTigerKVEngine shutting down
2021-08-03T13:28:55.230+0000 I STORAGE [initandlisten] Shutting down session sweeper thread
2021-08-03T13:28:55.230+0000 I STORAGE [initandlisten] Finished shutting down session sweeper thread
2021-08-03T13:28:55.230+0000 I STORAGE [initandlisten] Shutting down journal flusher thread
2021-08-03T13:28:55.327+0000 I STORAGE [initandlisten] Finished shutting down journal flusher thread
2021-08-03T13:28:55.328+0000 I STORAGE [initandlisten] Shutting down checkpoint thread
2021-08-03T13:28:55.328+0000 I STORAGE [initandlisten] Finished shutting down checkpoint thread
2021-08-03T13:28:55.328+0000 I STORAGE [initandlisten] Downgrading WiredTiger datafiles.
2021-08-03T13:28:55.361+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:361851][1:0x7f089714ab00], txn-recover: Recovering log 211 through 212
2021-08-03T13:28:55.417+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:417077][1:0x7f089714ab00], txn-recover: Recovering log 212 through 212
2021-08-03T13:28:55.505+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:505692][1:0x7f089714ab00], txn-recover: Main recovery loop: starting at 211/2048 to 212/256
2021-08-03T13:28:55.622+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:622089][1:0x7f089714ab00], txn-recover: Recovering log 211 through 212
2021-08-03T13:28:55.717+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:717379][1:0x7f089714ab00], txn-recover: Recovering log 212 through 212
2021-08-03T13:28:55.789+0000 I STORAGE [initandlisten] WiredTiger message [1627997335:789928][1:0x7f089714ab00], txn-recover: Set global recovery timestamp: (0,0)
2021-08-03T13:28:55.912+0000 I STORAGE [initandlisten] exception in initAndListen: MustDowngrade: Collection does not have UUID in KVCatalog. Collection: admin.system.version, terminating
2021-08-03T13:28:55.912+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2021-08-03T13:28:55.912+0000 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
2021-08-03T13:28:55.912+0000 I - [initandlisten] Stopping further Flow Control ticket acquisitions.
2021-08-03T13:28:55.913+0000 I CONTROL [initandlisten] now exiting
2021-08-03T13:28:55.913+0000 I CONTROL [initandlisten] shutting down with code:100
------------------------------------STDOUT------------------------------------
1-08-03T13:28:40.003+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2021-08-03T13:28:40.006+0000 F - [main] exception: connect failed
2021-08-03T13:28:40.006+0000 E - [main] exiting with code 1
MongoDB shell version v4.2.2
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2021-08-03T13:28:41.458+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2021-08-03T13:28:41.462+0000 F - [main] exception: connect failed
2021-08-03T13:28:41.462+0000 E - [main] exiting with code 1
MongoDB shell version v4.2.2
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2021-08-03T13:28:42.755+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2021-08-03T13:28:42.758+0000 F - [main] exception: connect failed
2021-08-03T13:28:42.758+0000 E - [main] exiting with code 1
MongoDB shell version v4.2.2
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2021-08-03T13:28:45.176+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2021-08-03T13:28:45.179+0000 F - [main] exception: connect failed
2021-08-03T13:28:45.179+0000 E - [main] exiting with code 1
OCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknown
MongoDB shell version v4.2.2
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2021-08-03T13:28:48.723+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2021-08-03T13:28:48.726+0000 F - [main] exception: connect failed
2021-08-03T13:28:48.726+0000 E - [main] exiting with code 1
MongoDB shell version v4.2.2
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2021-08-03T13:28:50.052+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2021-08-03T13:28:50.055+0000 F - [main] exception: connect failed
2021-08-03T13:28:50.055+0000 E - [main] exiting with code 1
MongoDB shell version v4.2.2
2021-08-03T13:28:54.587+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2021-08-03T13:28:54.591+0000 F - [main] exception: connect failed
2021-08-03T13:28:54.591+0000 E - [main] exiting with code 1
MongoDB shell version v4.2.2
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2021-08-03T13:28:55.914+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2021-08-03T13:28:55.917+0000 F - [main] exception: connect failed
2021-08-03T13:28:55.917+0000 E - [main] exiting with code 1
------------------------------------------------------------------------------
it only happen if I use mongo version 4 or newer
but when I use mongo older than 4, it works fine.
please help me how to solve this
thanks