# Rasa telegram problem on Ubuntu 18.04 server

**URL:** <https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850>\
**Category:** Rasa Open Source\
**Created:** [September 18, 2019, 1:45pm UTC](https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850 "2019-09-18T13:45:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alphaisnice](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@alphaisnice](https://forum.rasa.com/u/alphaisnice)\
**Post date:** [September 18, 2019, 1:45pm UTC](https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850/1 "2019-09-18T13:45:47Z")

</div>

Hi, When I add the following settings to my credential.yml

```
telegram:
  access_token: "mybotToken"
  verify: "BotName"
  webhook_url: "https://myserver-ipaddress-here/webhooks/telegram/webhook"

```

I get the following error after using `rasa run`:

`WARNING telegram.vendor.ptb_urllib3.urllib3.connectionpool - Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f23c2447fd0>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')': /bot{TOKEN}/setWebhook`

and Finally I get something like this:

`Failed to establish a new connection: [Errno 101] Network is unreachable`

I have tested the same thing on my localhost but instead of putting myserver-ipaddress I used the Ngrok URL there and it works on Ubuntu 18.04 desktop. Note that I am not using docker. Please help!

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [September 19, 2019, 2:30pm UTC](https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850/2 "2019-09-19T14:30:29Z")

</div>

I assume you put a real address for `myserver-ipaddress-here`, didn’t you? Are you maybe using a firewall on your server which blocks outgoing requests?

---

<div class="post-metadata">

**Author:** ![alphaisnice](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@alphaisnice](https://forum.rasa.com/u/alphaisnice)\
**Post date:** [September 19, 2019, 4:27pm UTC](https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850/3 "2019-09-19T16:27:21Z")

</div>

Yes I have put real ip address there ( Ip address of my server). There has been UFW firewall on server(Ubuntu 18.04 LTS). I even disabled the firewall by stopping the service and checking the status. For being sure I added rules for ports like 5005. I still cannot connect to telegram. Any suggestions would be appreciated!

---

<div class="post-metadata">

**Author:** ![FelixKing](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@FelixKing](https://forum.rasa.com/u/FelixKing)\
**Post date:** [September 19, 2019, 6:46pm UTC](https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850/4 "2019-09-19T18:46:54Z")

</div>

No idea if it is related, but I know the deploy server stats but every time I deploy it I use 16.04 since that is the given requirements. Too many errors following instructions loosely, so now I do my best to follow to the T

---

<div class="post-metadata">

**Author:** ![alphaisnice](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@alphaisnice](https://forum.rasa.com/u/alphaisnice)\
**Post date:** [September 21, 2019, 9:42am UTC](https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850/5 "2019-09-21T09:42:52Z")

</div>

Why would you offer 16.04 as a default working environment? Is there any difference? I think there is a firewall on the server which I don’t have access to. Anyways, any suggestions would be appreciated! I have been able to run Rasa on server but could not connect to telegram servers.

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [September 23, 2019, 6:03pm UTC](https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850/6 "2019-09-23T18:03:02Z")

</div>

Are you doing this from a company server? Could also be that some company firewall is blocking it?

---

<div class="post-metadata">

**Author:** ![freshprince10p](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@freshprince10p](https://forum.rasa.com/u/freshprince10p)\
**Post date:** [September 30, 2022, 9:05pm UTC](https://forum.rasa.com/t/rasa-telegram-problem-on-ubuntu-18-04-server/15850/7 "2022-09-30T21:05:23Z")

</div>

I have the same problem in my ubuntu server 22.04 deploy in a EC2 in AWS. Did you solve it?
