Just revisiting this again as I am getting pressure to have the federation functionality working.
Previously I managed to get one of my RocketChat servers testing successfully publishing details in DNS but I couldn’t get an almost identical server to successfully test the DNS settings.
I constantly get the following in the log:
I20200304-11:26:53.154(0) server.js:204 Federation ➔ dns.error { Error: failed [503] Service Unavailable at Object.exports.makeErrorByStatus (packages/http.js:176:10) at Request._callback (packages/http.js:140:24) at Request.self.callback (/snap/rocketchat-server/1427/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (/snap/rocketchat-server/1427/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:1161:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage.<anonymous> (/snap/rocketchat-server/1427/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickDomainCallback (internal/process/next_tick.js:219:9) response: { statusCode: 503, content: 'Service Unavailable', headers: { date: 'Wed, 04 Mar 2020 11:26:53 GMT', 'content-length': '19', 'content-type': 'text/plain; charset=utf-8', connection: 'close' }, data: null } }
I have run some external tests on the external DNS zone and discovered that my SRV record had a ‘.’ missing and so was effectively this with the domain doubled:
_rocketchat._tcp.domain.com. 1H IN SRV 1 1 443 chat.domain.com.domain.com
Thinking that was my problem I fixed that and tested but it still fails.
So I go and check that record on the server that was testing OK and that also has the double domain problem.
I fix that and now that fails the test too!! Also reverting it back now fails the test.
So there is something broken with the whole DNS verification process.
Could it be because my servers are behind a reverse https proxy?
Is it since the rocketchat installation has been updated to the latest?
Version 2.4.11
Apps Engine Version 1.11.2
Database Migration 170
Database Migration Date March 4, 2020 12:23 AM