Skip to content

[BREAK] Prevent start if incompatible mongo version#13927

Merged
rodrigok merged 2 commits intodevelopfrom
show-mongodb-version
Apr 3, 2019
Merged

[BREAK] Prevent start if incompatible mongo version#13927
rodrigok merged 2 commits intodevelopfrom
show-mongodb-version

Conversation

@geekgonecrazy
Copy link
Contributor

@geekgonecrazy geekgonecrazy commented Mar 28, 2019

image

I thought about showing an alert.. but i'm not sure how we are injecting .node_version.txt or i'd try to do the same for mongodb.

I thought about hard coding ^3.2.0 but meteor cli doesn't even ship with that yet 🤦‍♂️

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13927 March 28, 2019 02:27 Inactive
msg += ['', '', 'YOUR CURRENT NODEJS VERSION IS NOT SUPPORTED,', `PLEASE UPGRADE / DOWNGRADE TO VERSION ${ desiredNodeVersionMajor }.X.X`].join('\n');
SystemLogger.error_box(msg, 'SERVER ERROR');

return process.exit();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we call this as [BREAK] because of this? like, people will need to know before hand if they upgrade and are using a not desired node or mongo version the server will not start.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ll change title. I think that’s fair. But it actually wouldn’t work anyways before it was leading to tickets open.

Better to do this as a breaking change now with 1.0 then after

@geekgonecrazy geekgonecrazy changed the title [NEW] Show mongo version in startup [BREAK] Prevent start if incompatible mongo version Apr 2, 2019
@rodrigok rodrigok added this to the 1.0.0 milestone Apr 3, 2019
@rodrigok rodrigok merged commit 59e5e92 into develop Apr 3, 2019
@rodrigok rodrigok deleted the show-mongodb-version branch April 3, 2019 13:10
@rodrigok rodrigok mentioned this pull request Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments