Wrong IP Server

Description

Hi,

I have a problem with configuring RocketChat & snap.

RC is installed with snap. When I use the command “snap set rocketchat-server caddy-url = https myRC.com”, I get the error “Your public IP doesn’t match the one resolved for caddy-url, disabling https”.

I noticed in the code that RC uses the command “curl ipinfo.io/ip” in order to find the IP of the server. But on my server, the IP of our proxy servers is found. So I have to configure RC with “caddy-url = https /myPROXY.com” for it to work, and then change the url in the desktop app settings. But I have to do it regularly because the proxy url reconfigures itself automatically.

How to fix this? Can developers change the way to retrieve the server name based on the name (like
a good old nslookup command ^^)

Thanks for your help :wink:

Server Setup Information

  • Version of Rocket.Chat Server: 3.18.3
  • Operating System: Debian 10
  • Deployment Method: snap 16-2.53.2

Hi! Sorry for the late response. :frowning:

Not sure if nslookup will solve it here, as it can have multiple IPs or not be a valid IP yet (like, not propagated)

Do you still have this problem? Seems like an edge case. If you do, I can escalate it with our deployment specialist.

THanks!

Yes I still have the problem. You can escalate it :wink:

Thanks!

HI!

You will need to upgrade to 4.x snaps in order to use the caddy builtin.

I have found this that shows how to use Nginx instead:

It seems that with version 4.x we are losing LDAP functionality. Do you confirm ? If this is the case we cannot update because we absolutely need this functionality.

I am using version RocketChat 4.2 and it still has LDAP for sign in. I hope it isn’t going away with a newer version.

LDAP will still work.

Advanced sync (role/channel mapping and background sync) was moved to EE.

You can still implement those features by scripting with REST APIs.

Check out this doc where you can see what features is in EE x CE:

Hi,

After few weeks for testing Nginx instead of Caddy, now I can say that the problem is fixed :slight_smile:

Thank you for your help !

But now, since upgrade to 4.5.1, notications no longer work :frowning:

“name”:“Push”,“msg”:"Error sending push to gateway (2 try) → {“message”:“network timeout at: https://gateway.rocket.chat/push/gcm/send",“type”:"request-timeout

We using RocketChat behind a proxy. Proxy is configured in /etc/environment file and in snapd.service.

Do you have any idea to fix that ?

I believe you have hit this issue:

If that’s the case, a fix is being worked.

I found plenty of threads except this one.

So I’m waiting for the next update.