RocketChat / Rocket.Chat

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

Rocket.Chat service starts but does not listen on port 3000 #30795

Open paymanzafar1 opened 10 months ago

paymanzafar1 commented 10 months ago

Description:

Until version 6.4.1 I had no problem. I built and run the package following the below command sequence:

yarn install yarn build cd apps/meteor meteor build /home/admin --architecture os.linux.x86_64 cd /opt cp /home/admin/meteor.tar.gz . tar -xzf meteor.tar.gz cd bundle/programs/server yarn install

From version 6.4.2 till the latest version (6.4.4) I do not receive any error message. The service starts, but it does not listen on any port (including 3000). The SERVER RUNNING banner does not shown. I mean the below one:

+-----------------------------------------------+ SERVER RUNNING +-----------------------------------------------+
Rocket.Chat Version: 6.4.4
NodeJS Version: 14.21.3 - x64
MongoDB Version: 6.0.8
MongoDB Engine: wiredTiger
Platform: linux
Process Port: 3000
Site URL: ***
ReplicaSet OpLog: Enabled
Commit Hash: d994a6ff33
Commit Branch: HEAD

+-----------------------------------------------+

This is the last items shown after starting the service:

Oct 28 12:58:18 chat rocketchat[85578]: LocalStore: store created at Oct 28 12:58:18 chat rocketchat[85578]: LocalStore: store created at Oct 28 12:58:18 chat rocketchat[85578]: LocalStore: store created at Oct 28 12:58:18 chat rocketchat[85578]: MessageType.render is deprecated. Use MessageType.message instead. livechat_webrtc_video_call Oct 28 12:58:19 chat rocketchat[85578]: {"level":40,"time":"2023-10-28T09:28:19.052Z","pid":85578,"hostname":"chat","name":"VoIPService","msg":"Voip> Oct 28 12:58:20 chat rocketchat[85578]: {"level":51,"time":"2023-10-28T09:28:20.059Z","pid":85578,"hostname":"chat","name":"Migrations","msg":"Not m>

Server Setup Information:

krenuser commented 10 months ago

Seems like duplicate to mine #30794 Excepting that I deploy RC using Docker

adamwgray commented 10 months ago

same issue. Builds work in 6.3.x 6.4.x they don't work. Same issue with yarn dsv as well. node starts but server start up never completes.

Output from yarn dsv

Rocket.Chat$ yarn dsv • Packages in scope: @rocket.chat/account-utils, @rocket.chat/agenda, @rocket.chat/api-client, @rocket.chat/base64, @rocket.chat/cas-validate, @rocket.chat/core-services, @rocket.chat/core-typings, @rocket.chat/cron, @rocket.chat/ddp-client, @rocket.chat/eslint-config, @rocket.chat/favicon, @rocket.chat/fuselage-ui-kit, @rocket.chat/gazzodown, @rocket.chat/i18n, @rocket.chat/instance-status, @rocket.chat/livechat, @rocket.chat/log-format, @rocket.chat/logger, @rocket.chat/meteor, @rocket.chat/mock-providers, @rocket.chat/model-typings, @rocket.chat/models, @rocket.chat/omnichannel-services, @rocket.chat/pdf-worker, @rocket.chat/poplib, @rocket.chat/presence, @rocket.chat/random, @rocket.chat/rest-typings, @rocket.chat/server-fetch, @rocket.chat/sha256, @rocket.chat/tools, @rocket.chat/ui-client, @rocket.chat/ui-composer, @rocket.chat/ui-contexts, @rocket.chat/ui-theming, @rocket.chat/ui-video-conf, @rocket.chat/web-ui-registration • Running dsv in 37 packages • Remote caching disabled @rocket.chat/i18n:build: cache bypass, force executing 33e273e95ad9bf2a @rocket.chat/tools:build: cache hit (outputs already on disk), replaying logs e89c091b326915da @rocket.chat/sha256:build: cache hit (outputs already on disk), replaying logs 34ed0d7e5427a41c @rocket.chat/server-fetch:build: cache hit (outputs already on disk), replaying logs d0384129d368a144 @rocket.chat/cas-validate:build: cache hit (outputs already on disk), replaying logs 8da72cab6bbf20a9 @rocket.chat/account-utils:build: cache hit (outputs already on disk), replaying logs c37544f7018da9b5 @rocket.chat/log-format:build: cache hit (outputs already on disk), replaying logs 05a190286d1c99ae @rocket.chat/agenda:build: cache hit (outputs already on disk), replaying logs d7afd5056567d4ce @rocket.chat/favicon:build: cache hit (outputs already on disk), replaying logs 796c5585608f0259 @rocket.chat/ui-composer:build: cache hit (outputs already on disk), replaying logs 06082905217ff1ef @rocket.chat/base64:build: cache hit (outputs already on disk), replaying logs caa663bc9ea10995 @rocket.chat/logger:build: cache hit (outputs already on disk), replaying logs e4fb6b2aa04ecbd8 @rocket.chat/core-typings:build: cache hit (outputs already on disk), replaying logs 22f6a955984a332e @rocket.chat/random:build: cache hit (outputs already on disk), replaying logs 72400de10c9aad28 @rocket.chat/rest-typings:build: cache hit (outputs already on disk), replaying logs a388e55252ac5658 @rocket.chat/ui-contexts:build: cache bypass, force executing 4789373d1a8dcf44 @rocket.chat/pdf-worker:build: cache hit (outputs already on disk), replaying logs daecb45dfc956337 @rocket.chat/model-typings:build: cache hit (outputs already on disk), replaying logs 92acf53be516c1e0 @rocket.chat/api-client:build: cache hit (outputs already on disk), replaying logs 91335a275b6c7e8d @rocket.chat/ddp-client:build: cache hit (outputs already on disk), replaying logs b0010ddb16a09a7f @rocket.chat/models:build: cache hit (outputs already on disk), replaying logs bfb4f281ba35dd2f @rocket.chat/cron:build: cache hit (outputs already on disk), replaying logs 93c00d39b1571bfd @rocket.chat/instance-status:build: cache hit (outputs already on disk), replaying logs 3c213ea8d0b600ac @rocket.chat/core-services:build: cache hit (outputs already on disk), replaying logs 7f64ab747cc75dca @rocket.chat/presence:build: cache hit (outputs already on disk), replaying logs 3f44135e51805aec @rocket.chat/omnichannel-services:build: cache hit (outputs already on disk), replaying logs d4ace6de5f49c023 @rocket.chat/ui-theming:build: cache hit (outputs already on disk), replaying logs d5197bfda2d2de82 @rocket.chat/ui-video-conf:build: cache hit (outputs already on disk), replaying logs 271fe6043145e50e @rocket.chat/mock-providers:build: cache hit (outputs already on disk), replaying logs 743d5d77dd6bd1b4 @rocket.chat/ui-client:build: cache hit (outputs already on disk), replaying logs 4cbd7c3f026a572a @rocket.chat/gazzodown:build: cache hit (outputs already on disk), replaying logs bb9da59a57731abf @rocket.chat/web-ui-registration:build: cache hit (outputs already on disk), replaying logs 7a3ca1fdf37752e3 @rocket.chat/fuselage-ui-kit:build: cache hit (outputs already on disk), replaying logs 9cdb47376e36b4a2 @rocket.chat/livechat:build: cache hit (outputs already on disk), replaying logs b78619b6a5e3f792 @rocket.chat/livechat:build: [BABEL] Note: The code generator has deoptimised the styling of /home/ubuntu/Rocket.Chat/node_modules/katex/dist/katex.js as it exceeds the max of 500KB. @rocket.chat/livechat:build: Child @rocket.chat/livechat:build:
@rocket.chat/livechat:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). @rocket.chat/livechat:build: This can impact web performance. @rocket.chat/livechat:build: Assets: @rocket.chat/livechat:build: 2.chunk.c8d94.js (264 KiB) @rocket.chat/livechat:build: 6.chunk.0b590.js (484 KiB) @rocket.chat/livechat:build: 7.chunk.d17af.js (951 KiB) @rocket.chat/livechat:build: 8.chunk.97b85.js (666 KiB) @rocket.chat/livechat:build: 9.chunk.9bab8.js (1.08 MiB) @rocket.chat/livechat:build: 10.chunk.2d57e.js (650 KiB) @rocket.chat/meteor:dsv: cache bypass, force executing f881d7c00bc93dd7 @rocket.chat/meteor:dsv: @rocket.chat/meteor:dsv: > @rocket.chat/meteor@6.4.6 dev /home/ubuntu/Rocket.Chat/apps/meteor @rocket.chat/meteor:dsv: > meteor --exclude-archs "web.browser.legacy, web.cordova" @rocket.chat/meteor:dsv: @rocket.chat/meteor:dsv: [[[[[ ~/Rocket.Chat/apps/meteor ]]]]] @rocket.chat/meteor:dsv: @rocket.chat/meteor:dsv: => Started proxy. @rocket.chat/meteor:dsv: => Started MongoDB. @rocket.chat/meteor:dsv: => Linted your app. No linting errors. @rocket.chat/meteor:dsv: I20231117-18:47:03.952(0)? [2023-11-17T18:47:03.903Z] ERROR (System/37758 on rocketchatdev): Invalid setting code SMS_Mobex_from_number: Setting SMS_Mobex_from_number is of type int but got string @rocket.chat/meteor:dsv: I20231117-18:47:04.464(0)? [2023-11-17T18:47:04.335Z] ERROR (System/37758 on rocketchatdev): Invalid setting code Cloud_Workspace_Client_Secret_Expires_At: Setting Cloud_Workspace_Client_Secret_Expires_At is of type int but got string @rocket.chat/meteor:dsv: W20231117-18:47:10.495(0)? (STDERR) strict mode: missing type "object" for keyword "additionalProperties" at "#" (strictTypes) @rocket.chat/meteor:dsv: W20231117-18:47:10.495(0)? (STDERR) strict mode: missing type "object" for keyword "properties" at "#" (strictTypes) @rocket.chat/meteor:dsv: W20231117-18:47:10.544(0)? (STDERR) strict mode: use allowUnionTypes to allow union type keyword at "#/properties/value" (strictTypes) @rocket.chat/meteor:dsv: W20231117-18:47:11.418(0)? (STDERR) strict mode: "items" is 1-tuple, but minItems or maxItems/additionalItems are not specified or different at path "#/properties/matrixIds" @rocket.chat/meteor:dsv: W20231117-18:47:12.272(0)? (STDERR) (node:37758) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023. @rocket.chat/meteor:dsv: W20231117-18:47:12.272(0)? (STDERR) @rocket.chat/meteor:dsv: W20231117-18:47:12.273(0)? (STDERR) Please migrate your code to use AWS SDK for JavaScript (v3). @rocket.chat/meteor:dsv: W20231117-18:47:12.273(0)? (STDERR) For more information, check the migration guide at https://a.co/7PzMCcy @rocket.chat/meteor:dsv: W20231117-18:47:12.273(0)? (STDERR) (Use node --trace-warnings ... to show where the warning was created) @rocket.chat/meteor:dsv: I20231117-18:47:12.376(0)? LocalStore: store created at @rocket.chat/meteor:dsv: I20231117-18:47:12.377(0)? LocalStore: store created at @rocket.chat/meteor:dsv: I20231117-18:47:12.377(0)? LocalStore: store created at @rocket.chat/meteor:dsv: W20231117-18:47:12.394(0)? (STDERR) MessageType.render is deprecated. Use MessageType.message instead. livechat_webrtc_video_call @rocket.chat/meteor:dsv: I20231117-18:47:13.519(0)? [2023-11-17T18:47:12.712Z] WARN (VoIPService/37758 on rocketchatdev): Voip is not enabled. Cant start the service

paymanzafar1 commented 9 months ago

I manged to download the 6.4.8 version source files, and build it as mentioned in the main comment. It is working.

I do not know what was the problem in previous versions.

adamwgray commented 9 months ago

I am still seeing the same issue with 6.4.8. No difference.

paymanzafar1 commented 9 months ago

On version 6.5.0, again I got some errors during build process. Then I used:

git clone https://github.com/RocketChat/Rocket.Chat.git Rocket.Chat-6.5.0

to download the source code to Rocket.Chat-6.5.0 folder, and used "git checkout 6.5.0" to select this version instead of develop branch.

The problem was solved.