[RC][Docker latest] Proxy Error

Hi,

since today I have some trouble to login into my Rocket.Chat instanz. I use the latest Dockerimage (which pulls a new version every night if availible) and i use apache2 as reverse Proxy.

My config looks like:

  • VPS
  • Rocket.Chat Server Version: rocketchat/rocket.chat:latest
  • OS: Debian 10
  • Deploy via Docker
  • One instance with one replica set
  • MongoDB Version 4.2 via docker

What i have checked…

The error if on the website

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: Error reading from remote server

The apache2 logfiles

[Fri Apr 08 10:02:46.578218 2022] [proxy_http:error] [pid 5707] (104)Connection reset by peer: [client ****:36620] AH01102: error reading status line from remote server localhost:3000
[Fri Apr 08 10:02:46.578274 2022] [proxy:error] [pid 5707] [client ****:36620] AH00898: Error reading from remote server returned by /api/info
[Fri Apr 08 10:02:46.578435 2022] [proxy_http:error] [pid 5975] (104)Connection reset by peer: [client 46.114.109.206:62322] AH01102: error reading status line from remote server localhost:3000
[Fri Apr 08 10:02:46.578458 2022] [proxy:error] [pid 5975] [client ****:62322] AH00898: Error reading from remote server returned by /api/v1/settings.public
[Fri Apr 08 10:06:34.123804 2022] [proxy_http:error] [pid 5702] (104)Connection reset by peer: [client 2.204.184.69:59164] AH01102: error reading status line from remote server localhost:3000, referer: https://sub.domain.tdl/home
[Fri Apr 08 10:06:34.123838 2022] [proxy:error] [pid 5702] [client 2.204.184.69:59164] AH00898: Error reading from remote server returned by /_timesync, referer: https://sub.domain.tdl/home
[Fri Apr 08 10:16:34.138239 2022] [proxy_http:error] [pid 5702] (104)Connection reset by peer: [client 2.204.184.69:59167] AH01102: error reading status line from remote server localhost:3000, referer: https://sub.domain.tdl/home
[Fri Apr 08 10:16:34.138276 2022] [proxy:error] [pid 5702] [client 2.204.184.69:59167] AH00898: Error reading from remote server returned by /_timesync, referer: https://sub.domain.tdl/home

The Docker and Mogo container are running

***@****:/# docker ps
CONTAINER ID   IMAGE                           COMMAND                  CREATED          STATUS          PORTS                                       NAMES
3cff8fa8b37f   rocketchat/rocket.chat:latest   "docker-entrypoint.s…"   4 minutes ago    Up 4 minutes    0.0.0.0:3000->3000/tcp, :::3000->3000/tcp   rocketchat
34cdbc77b34c   mongo:4.2                       "docker-entrypoint.s…"   25 minutes ago   Up 25 minutes   27017/tcp                                   mongo

The Port 3000 from the Rocket.Chat Container is open:

***@***:/var/log/apache2# lsof -i -P |grep 3000
docker-pr 7492     root    4u  IPv4 3616737743      0t0  TCP *:3000 (LISTEN)
docker-pr 7500     root    4u  IPv6 3616765140      0t0  TCP *:3000 (LISTEN)

The Logs of the Rocketchat Container looks like:

{"level":40,"time":"2022-04-08T08:23:53.253Z","pid":1,"hostname":"db0955035f11","name":"","name":"Migrations","msg":"Not migrating, control is locked. Attempt 4/30. Trying again in 10 seconds."}
{"level":40,"time":"2022-04-08T08:24:03.257Z","pid":1,"hostname":"db0955035f11","name":"","name":"Migrations","msg":"Not migrating, control is locked. Attempt 5/30. Trying again in 10 seconds."}
{"level":40,"time":"2022-04-08T08:24:13.261Z","pid":1,"hostname":"db0955035f11","name":"","name":"Migrations","msg":"Not migrating, control is locked. Attempt 6/30. Trying again in 10 seconds."}
{"level":40,"time":"2022-04-08T08:24:23.266Z","pid":1,"hostname":"db0955035f11","name":"","name":"Migrations","msg":"Not migrating, control is locked. Attempt 7/30. Trying again in 10 seconds."}

Any ideas?

Best regards

Hi,

after some kind of searching … I am not sure where i stand…

I try :4.6 from which i thourght is the offical repostitory. I had some trouble to pull the image. At the end I stumbled over

Docker Hub ← this Dockerhub repo
Docker Hub <. and this Dockerhub repo

On the first Repo the :latest image where updated 16 hours ago the other repo where updated 3 days ago.

root@h2911572:~# docker images
REPOSITORY                      TAG       IMAGE ID       CREATED         SIZE
rocketchat/rocket.chat   latest    ce22602e8be9   16 hours ago    948MB
rocket.chat                          4.6       9a12f919af4d   3 days ago      878MB

The 4,6 image from the second repo works fine… but i am not sure what are the differents between the two repos?

I think this problem is caused by VPS being turned on. Maybe you should disable VPS and try logging in from your IP. You can also try to find the answer on YouTube, as I’m sure someone has encountered the same problem as you. There is a lot of useful information and tools online to work with. I have been using https://soax.com/online-facebook-messenger-proxy for several years to collect competitor pricing data. Thanks to this, our company always knows how to proceed.