RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.65k stars 10.65k forks source link

v4.7.0 not starting #25396

Closed ali-alhaidary closed 2 years ago

ali-alhaidary commented 2 years ago

Is there any specific instruction of upgrade from v4.6.3 to 4.7.0 ? I have been using the following scrip to update: sudo systemctl stop rocketchat sudo rm -r /opt/Rocket.Chat.old sudo mv /opt/Rocket.Chat /opt/Rocket.Chat.old sudo n install 14.18.3 curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz tar -xzf /tmp/rocket.chat.tgz -C /tmp cd /tmp/bundle/programs/server sudo npm install sudo mv /tmp/bundle /opt/Rocket.Chat sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat sudo systemctl start rocketchat

ymch commented 2 years ago

Me too. After updating from version 4.6.3 to 4.7.0, the Rocket.Chat process will not start. My OS is CentOS Linux 7.9.2009.

# systemctl start rocketchat
# systemctl status rocketchat -l
* rocketchat.service - The Rocket.Chat server
   Loaded: loaded (/usr/lib/systemd/system/rocketchat.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2022-05-05 02:43:30 JST; 8s ago
 Main PID: 12715 (node)
   CGroup: /system.slice/rocketchat.service
           `-12715 /usr/local/bin/node /opt/Rocket.Chat/main.js

rocketchat[12715]: at Socket.emit (events.js:400:28)
rocketchat[12715]: at Socket.emit (domain.js:475:12)
rocketchat[12715]: at addChunk (internal/streams/readable.js:293:12)
rocketchat[12715]: at readableAddChunk (internal/streams/readable.js:267:9)
rocketchat[12715]: at Socket.Readable.push (internal/streams/readable.js:206:10)
rocketchat[12715]: at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
rocketchat[12715]: at TCP.callbackTrampoline (internal/async_hooks.js:130:17)
rocketchat[12715]: (Use `node --trace-warnings ...` to show where the warning was created)
rocketchat[12715]: (node:12715) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
rocketchat[12715]: (node:12715) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
ali-alhaidary commented 2 years ago

Yes, same here, the service failed to start.

Ali

On 5/4/22 21:24, ymch wrote:

Me too. After updating from version 4.6.3 to 4.7.0, the process did not start. The OS is CentOS Linux 7.9.2009.

`# systemctl start rocketchat

systemctl status rocketchat -l

  • rocketchat.service - The Rocket.Chat server Loaded: loaded (/usr/lib/systemd/system/rocketchat.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2022-05-05 02:43:30 JST; 8s ago Main PID: 12715 (node) CGroup: /system.slice/rocketchat.service `-12715 /usr/local/bin/node /opt/Rocket.Chat/main.js

rocketchat[12715]: at Socket.emit (events.js:400:28) rocketchat[12715]: at Socket.emit (domain.js:475:12) rocketchat[12715]: at addChunk (internal/streams/readable.js:293:12) rocketchat[12715]: at readableAddChunk (internal/streams/readable.js:267:9) rocketchat[12715]: at Socket.Readable.push (internal/streams/readable.js:206:10) rocketchat[12715]: at TCP.onStreamRead (internal/stream_base_commons.js:188:23) rocketchat[12715]: at TCP.callbackTrampoline (internal/async_hooks.js:130:17) rocketchat[12715]: (Use |node --trace-warnings ...| to show where the warning was created) rocketchat[12715]: (node:12715) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag |--unhandled-rejections=strict| (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) rocketchat[12715]: (node:12715) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. `

— Reply to this email directly, view it on GitHub https://github.com/RocketChat/Rocket.Chat/issues/25396#issuecomment-1117664510, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6ACJ7S2XVZKMAY3AAESPLVIK6EJANCNFSM5VCW4VRQ. You are receiving this because you authored the thread.Message ID: @.***>

Sh0uld commented 2 years ago

I can confirm this with the docker version (ubuntu 20.04, docker version 20.10.14, mongodb version 5.0.8).

Additional to the comments above I get the following error message on startup: UnhandledPromiseRejectionWarning: MongoError: An equivalent index already exists with the same name but different options. Requested index: { v: 2, key: { _updatedAt: 1 }, name: "_updatedAt_1", expireAfterSeconds: 2592000 }, existing index: { v: 2, key: { _updatedAt: 1 }, name: "_updatedAt_1", ns: "parties.rocketchat_integration_history" }

serviceman commented 2 years ago

same issue

May 04 16:29:07 s162525.wholesaleinternet.net rocketchat-general[20160]: /opt/Rocket.Chat-4.7.0/programs/server/node_modules/fibers/future.js:280 May 04 16:29:07 s162525.wholesaleinternet.net rocketchat-general[20160]: throw(ex); May 04 16:29:07 s162525.wholesaleinternet.net rocketchat-general[20160]: ^ May 04 16:29:07 s162525.wholesaleinternet.net rocketchat-general[20160]: Error: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /opt/Rocket.Chat-4.7.0/programs/server/npm/node_modules/@rocket.chat/forked-m...-x64-gnu.node)May 04 16:29:07 s162525.wholesaleinternet.net rocketchat-general[20160]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18) May 04 16:29:07 s162525.wholesaleinternet.net rocketchat-general[20160]: at Module.load (internal/modules/cjs/loader.js:950:32) May 04 16:29:07 s162525.wholesaleinternet.net rocketchat-general[20160]: at Module.Mp.load (/opt/Rocket.Chat-4.7.0/programs/server/runtime.js:46:33) May 04 16:29:07 s162525.wholesaleinternet.net systemd[1]: rocketchat-general.service: main process exited, code=exited, status=1/FAILURE May 04 16:29:07 s162525.wholesaleinternet.net systemd[1]: Unit rocketchat-general.service entered failed state. May 04 16:29:07 s162525.wholesaleinternet.net systemd[1]: rocketchat-general.service failed.

Also mobile iphone on ios (NOT APP) is effectively broken. Uploads don't work, side menu is unusable, chat relaods entire pages when changing channels, etc. I Really wish we would have a version dedicated to bug fixes instead of adding new features. The upload has been broken for over 6 months now.

asarubbo commented 2 years ago

Here:

(node:15260) UnhandledPromiseRejectionWarning: MongoError: Index with name: _updatedAt_1 already exists with different options
    at MessageStream.messageHandler (/opt/rocket-4.7.0/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connection.js:272:20)
    at MessageStream.emit (events.js:400:28)
    at MessageStream.emit (domain.js:470:12)
    at processIncomingData (/opt/rocket-4.7.0/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
    at MessageStream._write (/opt/rocket-4.7.0/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at MessageStream.Writable.write (internal/streams/writable.js:303:10)
    at Socket.ondata (internal/streams/readable.js:726:22)
    at Socket.emit (events.js:400:28)
    at Socket.emit (domain.js:470:12)
    at addChunk (internal/streams/readable.js:290:12)
    at readableAddChunk (internal/streams/readable.js:265:9)
    at Socket.Readable.push (internal/streams/readable.js:204:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
    at TCP.callbackTrampoline (internal/async_hooks.js:131:17)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:15260) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:15260) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
LocalStore: store created at 
LocalStore: store created at 
LocalStore: store created at 
/opt/rocket-4.7.0/programs/server/node_modules/fibers/future.js:280
                                                throw(ex);
                                                ^

ReferenceError: Intl is not defined
    at Object.<anonymous> (/opt/rocket-4.7.0/programs/server/npm/node_modules/matrix-js-sdk/lib/utils.js:760:18)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Module.Mp._compile (/opt/rocket-4.7.0/programs/server/runtime.js:99:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Module.Mp.load (/opt/rocket-4.7.0/programs/server/runtime.js:46:33)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (/opt/rocket-4.7.0/programs/server/npm/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.js:14:37)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Module.Mp._compile (/opt/rocket-4.7.0/programs/server/runtime.js:99:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Module.Mp.load (/opt/rocket-4.7.0/programs/server/runtime.js:46:33)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
paulchen commented 2 years ago

At least the UnhandledPromiseRejectionWarning does not keep Rocket.Chat from starting up; my instance (running the official Docker image) is running, although it logs this warning during startup.

ymch commented 2 years ago

The log I posted was only partially copied. I checked /var/log/messages again.

rocketchat: (node:12715) UnhandledPromiseRejectionWarning: MongoError: Index with name: _updatedAt_1 already exists with different options
rocketchat: at MessageStream.messageHandler (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connection.js:272:20)
rocketchat: at MessageStream.emit (events.js:400:28)
rocketchat: at MessageStream.emit (domain.js:475:12)
rocketchat: at processIncomingData (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
rocketchat: at MessageStream._write (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
rocketchat: at writeOrBuffer (internal/streams/writable.js:358:12)
rocketchat: at MessageStream.Writable.write (internal/streams/writable.js:303:10)
rocketchat: at Socket.ondata (internal/streams/readable.js:731:22)
rocketchat: at Socket.emit (events.js:400:28)
rocketchat: at Socket.emit (domain.js:475:12)
rocketchat: at addChunk (internal/streams/readable.js:293:12)
rocketchat: at readableAddChunk (internal/streams/readable.js:267:9)
rocketchat: at Socket.Readable.push (internal/streams/readable.js:206:10)
rocketchat: at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
rocketchat: at TCP.callbackTrampoline (internal/async_hooks.js:130:17)
rocketchat: (Use `node --trace-warnings ...` to show where the warning was created)
rocketchat: (node:12715) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
rocketchat: (node:12715) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
rocketchat: LocalStore: store created at
rocketchat: LocalStore: store created at
rocketchat: LocalStore: store created at
rocketchat: /opt/Rocket.Chat/programs/server/node_modules/fibers/future.js:280
rocketchat: throw(ex);
rocketchat: ^
rocketchat: Error: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/lib/index.linux-x64-gnu.node)
rocketchat: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
rocketchat: at Module.load (internal/modules/cjs/loader.js:950:32)
rocketchat: at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:46:33)
rocketchat: at Function.Module._load (internal/modules/cjs/loader.js:790:12)
rocketchat: at Module.require (internal/modules/cjs/loader.js:974:19)
rocketchat: at require (internal/modules/cjs/helpers.js:93:18)
rocketchat: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/lib/napi-module.js:145:31)
rocketchat: at Module._compile (internal/modules/cjs/loader.js:1085:14)
rocketchat: at Module.Mp._compile (/opt/Rocket.Chat/programs/server/runtime.js:99:23)
rocketchat: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
rocketchat: at Module.load (internal/modules/cjs/loader.js:950:32)
rocketchat: at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:46:33)
rocketchat: at Function.Module._load (internal/modules/cjs/loader.js:790:12)
rocketchat: at Module.require (internal/modules/cjs/loader.js:974:19)
rocketchat: at require (internal/modules/cjs/helpers.js:93:18)
rocketchat: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/lib/napi.js:24:11) {
rocketchat: code: 'ERR_DLOPEN_FAILED'
rocketchat: }
systemd: rocketchat.service: main process exited, code=exited, status=1/FAILURE
systemd: Unit rocketchat.service entered failed state.
systemd: rocketchat.service failed.

Perhaps this is the reason why Rocket.Chat proccess does not start.

Error: /lib64/libc.so.6: version `GLIBC_2.25' not found

Maybe the version of glibc is different between the built environment and CentOS7.

On CentOS7...

# ldd --version
ldd (GNU libc) 2.17

See, I knew it...

# yum update glibc
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp-srv2.kddilabs.jp
 * epel: ftp.iij.ad.jp
 * extras: ftp-srv2.kddilabs.jp
 * remi: ftp.riken.jp
 * remi-safe: ftp.riken.jp
 * updates: ftp-srv2.kddilabs.jp
No packages marked for update

I guess 2.17 is the latest on the CentOS7 repository.

Incidentally, index.linux-x64-gnu.node, which requires GLIBC_2.25, is a binary file.

ali-alhaidary commented 2 years ago

@ymch we are running 18.04 LTS, with the same issue...

ali-alhaidary commented 2 years ago

May 05 12:09:11 mersaal rocketchat[13821]: at Module.load (internal/modules/cjs/loader.js:950:32) May 05 12:09:11 mersaal rocketchat[13821]: at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:46:33) May 05 12:09:11 mersaal rocketchat[13821]: at Function.Module._load (internal/modules/cjs/loader.js:790:12) May 05 12:09:11 mersaal rocketchat[13821]: at Module.require (internal/modules/cjs/loader.js:974:19) May 05 12:09:11 mersaal rocketchat[13821]: at require (internal/modules/cjs/helpers.js:93:18) May 05 12:09:11 mersaal rocketchat[13821]: at Object. (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/lib/napi.js:24:11) { May 05 12:09:11 mersaal rocketchat[13821]: code: 'ERR_DLOPEN_FAILED'

dudanogueira commented 2 years ago

Hi!

Thank you for pointing this out and for the debug info!

Our team is looking into this.

Also, if interested, join our Beta Testers Channel and help us catch this errors at release candidate stage.

Thanks!

geekgonecrazy commented 2 years ago

Any that have this can you list your OS and output of ldd --version looks like we have to target an older version of glibc but will be good to know how much older.

— A workaround if stuck can be to go to: programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/

then rm lib/index.linux-x64-gnu.node

Finally then run yarn. It will recompile the module using your version of glibc. You will likely need rust installed from: https://www.rust-lang.org/tools/install

I usually use their one line: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

you’ll probably need build-essential or the centos equivalent installed as well.

if it throws a cmake error you might need newer version of cmake.

We will try and get this fixed asap

ali-alhaidary commented 2 years ago

Thank you @geekgonecrazy ldd (Ubuntu GLIBC 2.27-3ubuntu1.5) 2.27 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.

ali-alhaidary commented 2 years ago

yarn install v1.22.18 [1/4] Resolving packages... success Already up-to-date. $ node check-exists.js yarn run v1.22.18 $ yarn build:types && napi build --js ./lib/napi-module.js --dts napi-module.d.ts ./lib $ napi build --js ./lib/napi-module.js --dts napi-module.d.ts --platform ./lib /bin/sh: 1: rustup: not found Internal Error: Command failed: rustup show active-toolchain /bin/sh: 1: rustup: not found

/bin/sh: 1: rustup: not found

at checkExecSyncError (child_process.js:790:11)
at Object.execSync (child_process.js:863:15)
at BuildCommand.<anonymous> (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/node_modules/@napi-rs/cli/scripts/index.js:12609:55)
at Generator.next (<anonymous>)
at /opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/node_modules/@napi-rs/cli/scripts/index.js:1678:71
at new Promise (<anonymous>)
at __awaiter$1 (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/node_modules/@napi-rs/cli/scripts/index.js:1674:12)
at BuildCommand.execute (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/node_modules/@napi-rs/cli/scripts/index.js:12598:16)
at BuildCommand.validateAndExecute (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/node_modules/@napi-rs/cli/scripts/index.js:204:37)
at /opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/node_modules/@napi-rs/cli/scripts/index.js:1261:53

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

ali-alhaidary commented 2 years ago

echo $PATH /home/the5stars.servant/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

ankar84 commented 2 years ago

Guess some issues (UnhandledPromiseRejectionWarning: MongoError: Index with name) here a related to https://github.com/RocketChat/Rocket.Chat/pull/25087

ankar84 commented 2 years ago

We updated our test workspace on docker without any issues image

markus07 commented 2 years ago

The same problem. Red Hat Enterprise Linux Server release 7.9 (Maipo) ldd (GNU libc) 2.17

May 6 14:12:55 devel rocketchat: Error: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/lib/index.linux-x64-gnu.node)

ali-alhaidary commented 2 years ago

Any idea on fixing the problem?

galaxycube commented 2 years ago

Same Problem as above

ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27 Ubuntu 18.04.3 LTS (GNU/Linux 5.4.34-1-pve x86_64)

ali-alhaidary commented 2 years ago

Hi @galaxycube did you try the work around suggested by @geekgonecrazy ?

whitetiger264 commented 2 years ago

@geekgonecrazy your comment:

Finally then run yarn. It will recompile the module using your version of glibc.

Can you tell us, not so tech-savvy, guys what exactly we need to run here, please? I am stuck here as I am not so sure.

whitetiger264 commented 2 years ago

I reverted back to 4.6.3 to get the system running again, however, upgrading to 4.7.x gives this error:

rocketchat[87485]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
rocketchat[87485]: at Module.load (internal/modules/cjs/loader.js:1034:32)
rocketchat[87485]: at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:46:33)
rocketchat[87485]: at Function.Module._load (internal/modules/cjs/loader.js:923:14)
rocketchat[87485]: at Module.require (internal/modules/cjs/loader.js:1074:19)
rocketchat[87485]: at require (internal/modules/cjs/helpers.js:72:18)
rocketchat[87485]: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/forked-matrix-sdk-crypto-nodejs/lib/napi.js:24:11)
systemd[1]: rocketchat.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Unit rocketchat.service entered failed state.
systemd[1]: rocketchat.service failed.

Anyone that can help me with this, please?

EDIT:

@dudanogueira do your team maybe have something for us?

ali-alhaidary commented 2 years ago

Before updating to new version, I usually rename the old one to .old folder, and if the update fails, I just delete the new version folder and rename the .old folder to only the name. I do not reinstall the old version.

Ali

On 5/16/22 11:57, Granwille wrote:

I tried reverting back to 4.6.3 but I am still getting this error:

|May 16 10:52:38 core.namhost.com rocketchat[87485]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10) May 16 10:52:38 core.namhost.com rocketchat[87485]: at Module.load (internal/modules/cjs/loader.js:1034:32) May 16 10:52:38 core.namhost.com rocketchat[87485]: at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:46:33) May 16 10:52:38 core.namhost.com rocketchat[87485]: at Function.Module._load (internal/modules/cjs/loader.js:923:14) May 16 10:52:38 core.namhost.com rocketchat[87485]: at Module.require (internal/modules/cjs/loader.js:1074:19) May 16 10:52:38 core.namhost.com rocketchat[87485]: at require (internal/modules/cjs/helpers.js:72:18) May 16 10:52:38 core.namhost.com rocketchat[87485]: at Object. @.***/forked-matrix-sdk-crypto-nodejs/lib/napi.js:24:11) May 16 10:52:38 core.namhost.com systemd[1]: rocketchat.service: main process exited, code=exited, status=1/FAILURE May 16 10:52:38 core.namhost.com systemd[1]: Unit rocketchat.service entered failed state. May 16 10:52:38 core.namhost.com systemd[1]: rocketchat.service failed. |

Anyone that can help me with this, please?

— Reply to this email directly, view it on GitHub https://github.com/RocketChat/Rocket.Chat/issues/25396#issuecomment-1127408486, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6ACJ7EEQLB7LV2LHQ3TULVKIEXLANCNFSM5VCW4VRQ. You are receiving this because you authored the thread.Message ID: @.***>

ali-alhaidary commented 2 years ago

@whitetiger264 I am not that techi, but did you check your cert ?

whitetiger264 commented 2 years ago

@ali-alhaidary

Before updating to new version, I usually rename the old one to .old folder, and if the update fails, I just delete the new version folder and rename the .old folder to only the name. I do not reinstall the old version.

I will definitely keep this in mind next time. In the meantime, downgrading to 4.6.3 (https://releases.rocket.chat/4.6.3/download) got production back up and running again.

asarubbo commented 2 years ago

Any that have this can you list your OS and output of ldd --version looks like we have to target an older version of glibc but will be good to know how much older.

Hello @geekgonecrazy , here is the output:

ldd (Gentoo 2.34-r10 p15) 2.34

However for the stacktrace I pasted, I do not have glibc errors. Usually they comes up when something is compiled with a newer version than the local one.

hw-p commented 2 years ago

got same problems on ubuntu 18 - ldd (Ubuntu GLIBC 2.27-3ubuntu1.4) 2.27

geekgonecrazy commented 2 years ago

Linked a fix to this that will at least prevent from starting. Discussing with team to see if we can release a patch. :pray: and working on long term fix with the package maintainers.

casalsgh commented 2 years ago

Fix mentioned by @geekgonecrazy was on rocket.chat patch release 4.7.2

whitetiger264 commented 2 years ago

Fix mentioned by @geekgonecrazy was on rocket.chat patch release 4.7.2

Works 100% from 4.7.2, thank you!

ymch commented 2 years ago

Fix mentioned by @geekgonecrazy was on rocket.chat patch release 4.7.2

Works fine. Thank you very much.

antgel commented 2 years ago

@simonflutilliant For what it's worth, Debian Stretch is on life support, you have six more days before LTS finishes. https://wiki.debian.org/LTS

springfeld commented 1 year ago

Any that have this can you list your OS and output of ldd --version looks like we have to target an older version of glibc but will be good to know how much older.

Tried to compile on Windows 10, failed with the same error. Ran npm run ldd --version, got: 6.14.18.

Just downloaded env and sources.