# Problem with Rocket.Chat Cloud Connect

**URL:** <https://forums.rocket.chat/t/problem-with-rocket-chat-cloud-connect/13010>\
**Category:** Community Support\
**Tags:** cloud\
**Created:** [January 10, 2022, 1:44pm UTC](https://forums.rocket.chat/t/problem-with-rocket-chat-cloud-connect/13010 "2022-01-10T13:44:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IARI](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/iari/32/3404_2.png) [@IARI](https://forums.rocket.chat/u/IARI)\
**Post date:** [January 10, 2022, 1:44pm UTC](https://forums.rocket.chat/t/problem-with-rocket-chat-cloud-connect/13010/1 "2022-01-10T13:44:13Z")

</div>

### Description

I cannot connect my Rocket Chat instance to Rocket.Chat Cloud Connect successfully.  
Here’s exactly what happens:

- 
  1. logged into my [rocket.chat](http://rocket.chat/) cloud account and navigated to “Workspaces”

- 
  1. clicked “Register self-managed” on the top right =\> I am shown a Dialog with a registration token

- 
  1. Naviagte to “Connectivity Services” inside my running [Rocket.Chat](http://rocket.chat/) instance

- 
  1. I am presented with an input-field where I am prompted to enter the token. Entered the token I got form cloud inside this input field.

- 
  1. pressed the “connect” button below the input field. the following error displayed:  
 ![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/b/b6ce9412db8be143014ad9853fdedae2be0acb92.png)

At the same time the rocket.chat container logs the following:

> {“level”:50,“time”:“2022-01-10T13:30:23.672Z”,“pid”:10,“hostname”:“ba3f7a85bdc3”,“name”:“System”,“err”:{“type”:“Error”,“message”:“tunneling socket could not be established, cause=self signed certificate”,“stack”:“Error: tunneling socket could not be established, cause=self signed certificate\n at ClientRequest.onError (/app/bundle/programs/server/npm/node\_modules/meteor/http/node\_modules/tunnel-agent/index.js:177:17)\n at Object.onceWrapper (events.js:421:26)\n at ClientRequest.emit (events.js:314:20)\n at ClientRequest.EventEmitter.emit (domain.js:483:12)\n at TLSSocket.socketErrorListener (\_http\_client.js:427:9)\n at TLSSocket.emit (events.js:314:20)\n at TLSSocket.EventEmitter.emit (domain.js:483:12)\n at emitErrorNT (internal/streams/destroy.js:92:8)\n at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n at processTicksAndRejections (internal/process/task\_queues.js:84:21)”,“code”:“ECONNRESET”},“msg”:“tunneling socket could not be established, cause=self signed certificate”}

Every time I log in, I am reminded that the cloud registration is pending.

### Server Setup Information

- Rocket.Chat version 4.3.0
- Operating System: container using rocket.chat:4.3.0 running within Debian 10
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog: sorry, not sure what to report here.
- NodeJS Version: with the docker image
- MongoDB Version: 5.0.5-focal
- Proxy: traefik
- Firewalls involved: -

### Any additional Information

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [January 11, 2022, 2:59pm UTC](https://forums.rocket.chat/t/problem-with-rocket-chat-cloud-connect/13010/2 "2022-01-11T14:59:59Z")

</div>

Hi!  
Did you ask this question at [http://open.rocket.chat/channel/support](http://open.rocket.chat/channel/support)?

There is a similar issue there.

Looks like a connectivity issue to me.

My suggestion is to create a server at your local machine, using docker if possible and trying to replicate that on a different connection.

Does the server where you user facing this issue has any kind of firewall restriction?

---

<div class="post-metadata">

**Author:** ![IARI](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/iari/32/3404_2.png) [@IARI](https://forums.rocket.chat/u/IARI)\
**Post date:** [January 12, 2022, 1:03pm UTC](https://forums.rocket.chat/t/problem-with-rocket-chat-cloud-connect/13010/3 "2022-01-12T13:03:20Z")

</div>

yes, I did ask that question in the #support channel as well.  
I do not think that there is any firewall restriction.

Also other containers that I have running which need to connect to servers on the outside and do name resolution appear to be working fine.

I could try running the docker compose stack locally, but then I would have to modify it, because that won’t work with traefik at all, and then (whether the clodu registration works or does not locally) I am still left with the issue that I do not know how to test if it is in fact a connectivity issue.  
Without the likes of `ping` or `wget` or `apt` (to temporarily install something) available inside the container I don’t know how to properly test this.

---

<div class="post-metadata">

**Author:** ![IARI](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/iari/32/3404_2.png) [@IARI](https://forums.rocket.chat/u/IARI)\
**Post date:** [January 18, 2022, 1:53pm UTC](https://forums.rocket.chat/t/problem-with-rocket-chat-cloud-connect/13010/4 "2022-01-18T13:53:59Z")

</div>

Turns out, in the end I had to remove the two env variables from my docker-compose file

```auto
- HTTP_PROXY=<domain>
- HTTPS_PROXY=<domain>

```

Just as suggested in [custom oauth is ignoring /etc/hosts · Issue #13592 · RocketChat/Rocket.Chat · GitHub](https://github.com/RocketChat/Rocket.Chat/issues/13592)
