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/rocketchat 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