-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to Update RocketChat Helm Chart #90
Comments
same problem |
Oh... there the solutions https://github.com/RocketChat/helm-charts/tree/master/rocketchat just do
just install by And THEN! ) edit file values.yml, set P.S.
|
To resolve the issue, I performed the following steps:
After completing these steps, my problem was resolved. |
I believe it's the same issue as described in #93. |
You can't dump mongo 4.4 and restore to 5 or 6 version, dump and restore in mongodb work only in version to version |
I have the same issue, looks like pod XXXXXX-pre-upgrade doesn't have configmap with XXXXXX-scripts before the upgrade. |
Hello, how I upgrade RocketChat : Previous version :
Steps :
#rocket-chat-rocketchat-scripts.yml
apiVersion: v1
kind: ConfigMap
metadata:
name: rocket-chat-rocketchat-scripts
namespace: rocketchat
labels:
app.kubernetes.io/instance: rocket-chat
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: rocketchat
helm.sh/chart: rocketchat-6.3.4
k8slens-edit-resource-version: v1
annotations:
meta.helm.sh/release-name: rocket-chat
meta.helm.sh/release-namespace: rocketchat
selfLink: /api/v1/namespaces/rocketchat/configmaps/rocket-chat-rocketchat-scripts
data:
verifyMongodb.js: >
const versions = [
"4.0",
"4.2",
"4.4",
"5.0",
"6.0"
];
// [0]=mongosh path, [1]=mongosh path, [2]=connection string, [3]=script
path, [4]=new tag
const newVersion = process.argv[4].split('.').splice(0, 2).join('.');
const currentVersion = db.version().split('.').splice(0, 2).join('.');
if (currentVersion === newVersion) quit(0);
const featureCompatibilityVersionResp = db.adminCommand({ getParameter:
1, featureCompatibilityVersion: 1 });
if (!featureCompatibilityVersionResp.ok) {
print("failed to read current feature compatibility version");
quit(1);
}
const featureCompatibilityVersion =
featureCompatibilityVersionResp.featureCompatibilityVersion.version;
if (featureCompatibilityVersion !== currentVersion) {
print("current feature compatibility version is incompatible with the mongodb version you're trying to update to");
quit(1);
}
if (versions.indexOf(newVersion) - versions.indexOf(currentVersion) !== 1) {
print("you can't skip a mongodb version while updating, please read our update documentation for more information");
quit(1);
}
quit(0);
Targetd Version :
|
Description
I attempted to update the RocketChat Helm chart from version 5.3.2 to 5.4.3, but I encountered an error message.
Error Message
The error message I received was:
Previous Version
In the previous version (v5.3.2), there were two configmaps available:
rocketchat-mongodb-fix-clustermonitor-...
androcketchat-mongodb-scripts
. There was norocketchat-rocketchat-scripts
.Expected Behavior
I expected the update to proceed successfully without any errors.
Actual Behavior
The update failed due to the error message above.
Steps to Reproduce
Possible Solution
It appears that the
rocketchat-rocketchat-scripts
configmap is missing. It may need to be added or updated in order for the update to proceed successfully.Environment
The text was updated successfully, but these errors were encountered: