4 / 5
Feb 2022

Hi all,
I have installed new server with egroupware 21.1 CE docker installation and configure ssl with let’s encrypt certificate, I have installed rocketchat with command "HTTP_HOST=meet.atsrl.net apt install egroupware-rocketchat"
but when i try to connect https://meet.atsrl.net/rocketchat1 I receive 502 bad gateway, I see the nginx log and I see this error:

2022/01/26 21:59:46 [error] 25095#25095: *370 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 151.24.22.65, server: meet.atsrl.net, request: "GET /                                    rocketchat/api/info HTTP/1.1", upstream: "http://127.0.0.1:3000/rocketchat/api/info", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/egroupware/index.php?cd=yes"
2022/01/26 22:02:31 [error] 25095#25095: *390 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 151.24.22.65, server: meet.atsrl.net, request: "GET /                                    rocketchat/api/info HTTP/1.1", upstream: "http://127.0.0.1:3000/rocketchat/api/info", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/egroupware/index.php?cd=yes"
2022/01/26 22:02:32 [error] 25095#25095: *390 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 151.24.22.65, server: meet.atsrl.net, request: "GET /                                    rocketchat/api/info HTTP/1.1", upstream: "http://127.0.0.1:3000/rocketchat/api/info", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/egroupware/index.php?cd=yes"
2022/01/26 22:02:36 [error] 25095#25095: *378 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 151.24.22.65, server: meet.atsrl.net, request: "GET /                                    rocketchat/api/info HTTP/1.1", upstream: "http://127.0.0.1:3000/rocketchat/api/info", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/egroupware/index.php?cd=yes"
2022/01/26 22:02:47 [error] 25095#25095: *378 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 151.24.22.65, server: meet.atsrl.net, request: "GET /                                    rocketchat HTTP/1.1", upstream: "http://127.0.0.1:3000/rocketchat", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/egroupware/index.php?cd=yes"
2022/01/26 22:02:48 [error] 25095#25095: *378 open() "/var/www/html/favicon.ico" failed (2: No such file or directory), client: 151.24.22.65, server: meet.atsrl.net, request: "GET /favicon.ico HTTP/                                    1.1", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/rocketchat"
2022/01/26 22:02:52 [error] 25095#25095: *378 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 151.24.22.65, server: meet.atsrl.net, request: "GET /                                    rocketchat/api/info HTTP/1.1", upstream: "http://127.0.0.1:3000/rocketchat/api/info", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/egroupware/index.php?cd=yes"
2022/01/26 22:03:56 [error] 25095#25095: *378 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 151.24.22.65, server: meet.atsrl.net, request: "GET /                                    rocketchat/api/info HTTP/1.1", upstream: "http://127.0.0.1:3000/rocketchat/api/info", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/egroupware/index.php?cd=yes"
2022/01/26 22:08:13 [error] 25095#25095: *432 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 151.24.22.65, server: meet.atsrl.net, request: "GET /                                    rocketchat/api/info HTTP/1.1", upstream: "http://127.0.0.1:3000/rocketchat/api/info", host: "meet.atsrl.net", referrer: "https://meet.atsrl.net/egroupware/index.php?cd=yes"

I have try to connect rocketchat with curl command I receive this error:

root@ecm2:/etc/egroupware-docker# curl https://localhost:3000/rocketchat
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:3000
root@ecm2:/etc/egroupware-docker# curl https://meet.atsrl.net:3000/rocketchat
curl: (7) Failed to connect to meet.atsrl.net port 3000: Connection refused
root@ecm2:/etc/egroupware-docker# curl https://meet.atsrl.net/rocketchat
^C
root@ecm2:/etc/egroupware-docker# curl https://localhost/rocketchat
curl: (60) SSL: no alternative certificate subject name matches target host name 'localhost'
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
root@ecm2:/etc/egroupware-docker# curl https://localhost:3000/rocketchat
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:3000
root@ecm2:/etc/egroupware-docker# curl http://localhost:3000/rocketchat
curl: (56) Recv failure: Connection reset by peer
root@ecm2:/etc/egroupware-docker#

This is my container:

CONTAINER ID   IMAGE                                     COMMAND                  CREATED       STATUS                   PORTS                      NAMES
4c4210109aee   quay.io/egroupware/rocket.chat:stable     "docker-entrypoint.s…"   2 hours ago   Up 2 hours               127.0.0.1:3000->3000/tcp   rocketchat
ecfdb09fdf17   mongo:4.0                                 "docker-entrypoint.s…"   2 hours ago   Exited (0) 2 hours ago                              egroupware-rocketchat_mongo-init-replica_1
cec72c31d63d   mongo:4.0                                 "docker-entrypoint.s…"   2 hours ago   Up 2 hours               27017/tcp                  rocketchat-mongo
b1380e4f8770   nginx:stable-alpine                       "/docker-entrypoint.…"   2 hours ago   Up 2 hours               127.0.0.1:8080->80/tcp     egroupware-nginx
1ca7cca60311   phpswoole/swoole:4.6-php7.4-alpine        "docker-php-entrypoi…"   2 hours ago   Up 2 hours                                          egroupware-push
bea6f4cc2170   containrrr/watchtower:latest              "/watchtower --sched…"   2 hours ago   Up 2 hours               8080/tcp                   egroupware-watchtower
764361ece8ff   egroupware/egroupware:21.1                "/entrypoint.sh php-…"   2 hours ago   Up 2 hours               9000/tcp                   egroupware
38da4ad10685   mariadb:10.4                              "docker-entrypoint.s…"   2 hours ago   Up 2 hours               3306/tcp                   egroupware-db
eb81dade91ba   quay.io/egroupware/collabora-key:stable   "/start-collabora-on…"   2 hours ago   Up 2 hours               127.0.0.1:9980->9980/tcp   collabora-key

can you help me please?
Regards

  • created

    Jan '22
  • last reply

    Feb '22
  • 4

    replies

  • 1.5k

    views

  • 3

    users

  • 5

    links

11 days later

I had to do a Rocket.Chat installation for a customer yesterday and the automatic installation failed.

I had to do a manual installation and created a ticket for myself to fix the installation in the next days.

If you want to do a manual installation you have to stop all RC containers (cd /etc/egroupware-rocketchat; docker-compose stop; docker-compose rm -f), then delete the MongoDB volume (docker volume rm egroupware-rocketchat_mongo). If you have not given the fully qualified domain-name during installation, you need to add it as URL to the docker-compose.override.yml file and finally start the containers again (cd /etc/egroupware-rocketchat; docker-compose up -d).

The follow the manual installations instrunctions in our wiki:

Ralf

Hi Ralf , thanks for reply, I try to install rocketchat with your istructions.
Best regards
Giuseppe

Hi Giuseppe.

Please note:

One problem/question => one topic

and please mark this topic as solved:

Stefan