Breaking bug: xml-encryption module not found on docker upon login
Sorry, an annoying error occured
Error: Cannot find module 'xml-encryption'
Close Window
on docker
No crash
Sorry, an annoying error occured
Error: Cannot find module 'xml-encryption'
Close Window
rocketchat_1 | โ +-------------------------------------------------+
rocketchat_1 | โ | SERVER RUNNING |
rocketchat_1 | โ +-------------------------------------------------+
rocketchat_1 | โ | |
rocketchat_1 | โ | Rocket.Chat Version: 0.74.0 |
rocketchat_1 | โ | NodeJS Version: 8.11.4 - x64 |
rocketchat_1 | โ | Platform: linux |
rocketchat_1 | โ | Process Port: 3000 |
rocketchat_1 | โ | Site URL: https://c*********** |
rocketchat_1 | โ | ReplicaSet OpLog: Enabled |
rocketchat_1 | โ | Commit Hash: cc5391e58c |
rocketchat_1 | โ | Commit Branch: HEAD |
rocketchat_1 | โ | |
rocketchat_1 | โ +-------------------------------------------------+
Login via simplesaml
Probably related to https://github.com/RocketChat/Rocket.Chat/pull/12153
Same here in docker release.
@zenman94 temporary fix:
copy/paste:
docker-compose exec rocketchat /bin/bash
cd /app/bundle/programs/server
npm install xml-encryption
exit
Thank you for the patch but we are on Kubernetes cluster.
Looks like xml-encryption was removed in 687c3c572aaba7b7cb67ea5683b3100f54bfcb53 while it is still used here:
https://github.com/RocketChat/Rocket.Chat/blob/483f7d5c752679a9795f6324a73e7c03f36601fc/packages/meteor-accounts-saml/server/saml_utils.js#L396
If you are using the stable/rocketchat helm chart to deploy rocketchat you can set securityContext.runAsUser=99999 and then follow the example from helm status <rocketchat-release> to open a shell where the workaround from https://github.com/RocketChat/Rocket.Chat/issues/13271#issuecomment-458034489 works.
We prefer wait a correct docker image before push this in production :)
when will this be fixed?
Temporary workaround for snap:
sudo snap revert rocketchat-server
You should always make a backup first:
sudo systemctl stop snap.rocketchat-server.rocketchat-server
sudo rocketchat-server.backupdb
sudo snap revert rocketchat-server
sudo systemctl restart snap.rocketchat-server.rocketchat-server
Thank you so much @adanielvv , is there an option to disable automatic SNAP updates?
@GuilleGlad I looked at the snap manpages and couldn't find a hold option.
I found a command option that shows the impending updates:
sudo snap refresh --list
On my system (after the revert) it comes up empty.
I guess it jumps the reverted version.
By the way, the snap revert command is listed in the Rocket.Chat docs. See also the manpage above to understand more fully what happens.
Most helpful comment
@zenman94 temporary fix:
copy/paste: