Description
Without any reasons stopped working push, market app. In logs I see errors.
My instance works behind http-proxy. Suddenly it stopped using proxy-server and try send requests directly.
Server Setup Information
- Version of Rocket.Chat Server: 4.4.0
- Operating System:
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog: on
- NodeJS Version: 14.18.1
- MongoDB Version: 4.0.28
- Proxy: haproxy
Any additional Information
{"level":50,"time":"2022-02-02T15:09:03.978Z","pid":9,"hostname":"1fcd4251f4cf","name":"","name":"System","err":{"type":"FetchError","message":"request to https://cloud.rocket.chat/api/oauth/token failed, reason: getaddrinfo ENOTFOUND cloud.rocket.chat","stack":"FetchError: request to https://cloud.rocket.chat/api/oauth/token failed, reason: getaddrinfo ENOTFOUND cloud.rocket.chat<br> at ClientRequest.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/fetch/node_modules/node-fetch/lib/index.js:1444:11)<br> at ClientRequest.emit (events.js:400:28)<br> at ClientRequest.emit (domain.js:475:12)<br> at TLSSocket.socketErrorListener (_http_client.js:475:9)<br> at TLSSocket.emit (events.js:400:28)<br> at TLSSocket.emit (domain.js:475:12)<br> at emitErrorNT (internal/streams/destroy.js:106:8)<br> at emitErrorCloseNT (internal/streams/destroy.js:74:3)<br> at processTicksAndRejections (internal/process/task_queues.js:82:21)","errno":"ENOTFOUND","code":"ENOTFOUND","name":"FetchError"},"msg":"request to https://cloud.rocket.chat/api/oauth/token failed, reason: getaddrinfo ENOTFOUND cloud.rocket.chat"}
{"level":40,"time":"2022-02-02T15:09:14.068Z","pid":9,"hostname":"1fcd4251f4cf","name":"","name":"Rocket.Chat Apps","msg":"Unable to access Marketplace. Does the server has access to the internet? 'request to https://marketplace.rocket.chat/v1/apps failed, reason: getaddrinfo ENOTFOUND marketplace.rocket.chat'"}
Rocket.chat’s docker-compose part:
version: '3.1'
services:
rocketchat:
image: rocketchat/rocket.chat:4.4.0
command: >
bash -c
"for i in `seq 1 30`; do
node main.js &&
s=$$? && break || s=$$?;
echo \"Tried $$i times. Waiting 5 secs...\";
sleep 5;
done; (exit $$s)"
volumes:
- /var/data/rchat/uploads:/app/uploads
environment:
- PORT=3000
#- INSTANCE_IP=rchat.example.loc
- ROOT_URL=https://rchat.example.loc
- MONGO_URL=mongodb://mongo_2:27017,mongo_3:27017,mongo_1:27017/rocketchat?replicaSet=rs0&readPreference=nearest&w=majority
- MONGO_OPLOG_URL=mongodb://mongo_2:27017,mongo_3:27017,mongo_1:27017/local?replicaSet=rs0
- HTTP_PROXY=http://a.b.c.d:3128
- HTTPS_PROXY=http://a.b.c.d:3128
ports:
- 3000:3000