Open athoik opened 1 year ago
I want to work on this issue,please assign me to this ?
As you mentioned above,"Manual Installation" means do you download the production version of the package or package it yourself?
I konw meteor will start a proxy port. 3000 is the proxy port, random port is the listening port that provides the real service.
By manual installation I mean the procedure documented here: https://docs.rocket.chat/deploy/deploy-rocket.chat/additional-deployment-methods/deploy-on-debian
Process id that runs RocketChat, starts a random port (33085 as seen below), listening on all interfaces.
root@rocket-chat:~# ss -tunpl | egrep "node|Netid"
Netid State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
tcp LISTEN 0 511 127.0.0.1:3000 0.0.0.0:* users:(("node",pid=5490,fd=40))
tcp LISTEN 0 511 *:33085 *:* users:(("node",pid=5490,fd=31))
Connecting to that port shows the moleculer error bellow.
Oct 28 22:29:13 rocket-chat rocketchat[5490]: +-------------------------------------------------------------+
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | SERVER RUNNING |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: +-------------------------------------------------------------+
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | Rocket.Chat Version: 6.4.4 |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | NodeJS Version: 14.21.3 - x64 |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | MongoDB Version: 5.0.21 |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | MongoDB Engine: wiredTiger |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | Platform: linux |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | Process Port: 3000 |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | Site URL: https://rocket-chat.local |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | ReplicaSet OpLog: Enabled |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | Commit Hash: d994a6ff33 |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | Commit Branch: HEAD |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: | |
Oct 28 22:29:13 rocket-chat rocketchat[5490]: +-------------------------------------------------------------+
Oct 28 22:31:39 rocket-chat rocketchat[5490]: [2023-10-28T19:31:39.905Z] WARN a6597d77-58bb-4d83-afa8-1428a0db5317/TRANSPORTER: Packet parser error! Error: Invalid packet CRC! 57
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at Parser._write (/opt/Rocket.Chat/programs/server/npm/node_modules/moleculer/src/transporters/tcp/parser.js:56:15)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at writeOrBuffer (internal/streams/writable.js:358:12)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at Parser.Writable.write (internal/streams/writable.js:303:10)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at Socket.ondata (internal/streams/readable.js:731:22)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at Socket.emit (events.js:400:28)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at Socket.emit (domain.js:475:12)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at addChunk (internal/streams/readable.js:293:12)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at readableAddChunk (internal/streams/readable.js:267:9)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at Socket.Readable.push (internal/streams/readable.js:206:10)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
Oct 28 22:31:39 rocket-chat rocketchat[5490]: at TCP.callbackTrampoline (internal/async_hooks.js:130:17)
The same problem with Rocket.Chat Version: 6.4.5
Description:
Hi,
I am having the latest version of rocketchat
6.4
, and after inspecting the system ports, I noticed that rocketchat is listening on two ports.The service already has PORT=3000 and BIND_IP=127.0.0.1 but that doesn't seem to affect the second port.
As you can notice above as expected, the RocketChat honors BIND_IP and PORT, but the second random port, ignores them.
Connecting to that port (eg via telnet or using curl http://localhost:random-port) show the following error in logs:
From above log I guess is related with moleculer.
Searching on RocketChat didn't notice any instructions how to disable that port or make it listening on loopback only etc.
This blog mentions that you are already working with moleculer but no further instructions.
How can we change that port to listen only on loopback? Or how we can disable it?
Thanks a lot.
Server Setup Information: