# Push notifications not working (dns error)

**URL:** <https://forums.rocket.chat/t/push-notifications-not-working-dns-error/11348>\
**Category:** Community Support\
**Created:** [June 7, 2021, 9:53am UTC](https://forums.rocket.chat/t/push-notifications-not-working-dns-error/11348 "2021-06-07T09:53:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![greyset](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@greyset](https://forums.rocket.chat/u/greyset)\
**Post date:** [June 7, 2021, 9:53am UTC](https://forums.rocket.chat/t/push-notifications-not-working-dns-error/11348/1 "2021-06-07T09:53:48Z")

</div>

### Description

Push notifications are not working. Where are errors in log.

### Server Setup Information

- Version of Rocket.Chat Server: 3.15.0
- Operating System: Debian 10
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog: on
- NodeJS Version: v12.22.1
- MongoDB Version: 4.0.23
- Proxy: apache
- Firewalls involved: no

### Any additional Information

Errors in logs when trying to send a message:  
I20210607-08:55:05.770(0) server.js:204 Push ➔ error Error sending push to gateway (0 try) → Error: getaddrinfo EAI\_AGAIN gateway.rocket.chat at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) at GetAddrInfoReqWrap.callbackTrampoline (internal/async\_hooks.js:126:14) { errno: ‘EAI\_AGAIN’, code: ‘EAI\_AGAIN’, syscall: ‘getaddrinfo’, hostname: ‘gateway.rocket.chat’ }  
On the host system DNS resolving works well: gateway.rocket.chat has 51.81.11.138 and 51.81.11.198 address.  
What’s wrong in rockerchat server app?

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 7, 2021, 11:54am UTC](https://forums.rocket.chat/t/push-notifications-not-working-dns-error/11348/2 "2021-06-07T11:54:06Z")

</div>

I did a quick search in the interwebs for your error

‘EAI\_AGAIN’, syscall: ‘getaddrinfo’, hostname: ‘gateway.rocket.chat’ }

I found this which is likely the issue (because is it a DNS lookup error). The Host system may have working DNS but that doesn’t mean the docker container does.

> [@Push notifications not working...again](https://forums.rocket.chat/t/push-notifications-not-working-again/3701/3):
>
> You probably ought to visit [https://open.rocket.chat](https://open.rocket.chat) At a guess it was probably a DNS Issue looking at this : Error: getaddrinfo EAI\_AGAIN gateway.rocket.chat:443 At a guess your docker networking was awry, or your proxy setup. Those are the two most common issues.

You can shell into the container and test from there as well - something like this:

`docker exec -ti my_container sh`

---

<div class="post-metadata">

**Author:** ![greyset](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@greyset](https://forums.rocket.chat/u/greyset)\
**Post date:** [June 7, 2021, 12:13pm UTC](https://forums.rocket.chat/t/push-notifications-not-working-dns-error/11348/3 "2021-06-07T12:13:22Z")

</div>

There are no test tool in docker. How i can do test dns?

---

<div class="post-metadata">

**Author:** ![greyset](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@greyset](https://forums.rocket.chat/u/greyset)\
**Post date:** [June 7, 2021, 2:51pm UTC](https://forums.rocket.chat/t/push-notifications-not-working-dns-error/11348/4 "2021-06-07T14:51:47Z")

</div>

I found the cause of the problem: broken firewall. The firewall was missing docker chains. Reinstalling docker solved the issue.

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 7, 2021, 4:16pm UTC](https://forums.rocket.chat/t/push-notifications-not-working-dns-error/11348/5 "2021-06-07T16:16:08Z")

</div>

Cool - glad you got it sorted!
