# Installing filebeats Ubuntu 16.04 repo timeout

**URL:** <https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825>\
**Category:** Beats\
**Created:** [September 26, 2017, 10:25am UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825 "2017-09-26T10:25:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![drenriza](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@drenriza](https://discuss.elastic.co/u/drenriza)\
**Post date:** [September 26, 2017, 10:25am UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/1 "2017-09-26T10:25:37Z")

</div>

When looking over the installation documentation for APT it is stated that you need to download and add the elasticsearch GPG key, and than add the following repo

> deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable main

Resource

> **[Repositories for APT and YUM | Filebeat Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/setup-repositories.html)**

> **[Install Elasticsearch with Debian Package | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html#deb-repo)**

Than run

```
apt-get update
apt-get install filebeat

```

The problem is that i get an connection timeout for the update command for the repo

> Err:5 [https://packages.elastic.co/beats/apt](https://packages.elastic.co/beats/apt) stable InRelease  
> Connection timed out after 120000 milliseconds

Anyone who can advice, are the repo broken or is their a fix?

Thanks in advance  
Best regards.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [September 26, 2017, 1:31pm UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/2 "2017-09-26T13:31:05Z")

</div>

It should be connecting to [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) when running `update` if you are using the 5.x repo. You should double check the sources you have configured.

[https://packages.elastic.co/beats/apt](https://packages.elastic.co/beats/apt) is used to serve the 1.x beats releases. In any case I can confirm that both repos are still available (tested from Virginia, US). I tested the instructions for both 5.x and 1.x on an Ubuntu 17.04 machine.

---

<div class="post-metadata">

**Author:** ![drenriza](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@drenriza](https://discuss.elastic.co/u/drenriza)\
**Post date:** [September 26, 2017, 2:16pm UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/3 "2017-09-26T14:16:28Z")

</div>

Thank you for your reply andrewkroh!

> [@andrewkroh](#):
>
> You should double check the sources you have configured

I used the following command from the documentation page, step 3 under APT  
`echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list`

So when i run

> cat /etc/apt/sources.list.d/elastic-5.x.list

i get

> deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable main

And the error i get is as follows

> Err:5 [https://packages.elastic.co/beats/apt](https://packages.elastic.co/beats/apt) stable InRelease  
> Connection timed out after 120000 milliseconds

Which you say is for the 1.x repo?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [September 26, 2017, 2:52pm UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/4 "2017-09-26T14:52:36Z")

</div>

> [@drenriza](#):
>
> Which you say is for the 1.x repo?

Yes, `https://packages.elastic.co/beats/apt` is the location of the 1.x beats APT repo. And it is online so it should not be resulting in a connection time-out.

Can you please check to see what other sources you have configured.

`cat /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -v ^#`

---

<div class="post-metadata">

**Author:** ![drenriza](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@drenriza](https://discuss.elastic.co/u/drenriza)\
**Post date:** [September 26, 2017, 7:40pm UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/5 "2017-09-26T19:40:40Z")

</div>

It is a very basic server installation, so not a whole lot is in sources lists

`cat /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -v ^#`

> deb [http://dk.archive.ubuntu.com/ubuntu/](http://dk.archive.ubuntu.com/ubuntu/) xenial main restricted  
> deb [http://dk.archive.ubuntu.com/ubuntu/](http://dk.archive.ubuntu.com/ubuntu/) xenial-updates main restricted  
> deb [http://dk.archive.ubuntu.com/ubuntu/](http://dk.archive.ubuntu.com/ubuntu/) xenial universe  
> deb [http://dk.archive.ubuntu.com/ubuntu/](http://dk.archive.ubuntu.com/ubuntu/) xenial-updates universe  
> deb [http://dk.archive.ubuntu.com/ubuntu/](http://dk.archive.ubuntu.com/ubuntu/) xenial multiverse  
> deb [http://dk.archive.ubuntu.com/ubuntu/](http://dk.archive.ubuntu.com/ubuntu/) xenial-updates multiverse  
> deb [http://dk.archive.ubuntu.com/ubuntu/](http://dk.archive.ubuntu.com/ubuntu/) xenial-backports main restricted universe multiverse  
> deb [Index of /ubuntu](http://security.ubuntu.com/ubuntu) xenial-security main restricted  
> deb [Index of /ubuntu](http://security.ubuntu.com/ubuntu) xenial-security universe  
> deb [Index of /ubuntu](http://security.ubuntu.com/ubuntu) xenial-security multiverse  
> deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable main

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [September 26, 2017, 7:44pm UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/6 "2017-09-26T19:44:53Z")

</div>

That looks to me. So I'm surprised you are seeing it even try to connect to `https://packages.elastic.co/beats/apt`.

Let's see if we can get someone else to try and reproduce the issue.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [September 26, 2017, 8:25pm UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/7 "2017-09-26T20:25:44Z")

</div>

Hi,

I tried to reproduce the issue on Debian 9 (Stretch) from Central Europe, but it works for me.

---

<div class="post-metadata">

**Author:** ![drenriza](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@drenriza](https://discuss.elastic.co/u/drenriza)\
**Post date:** [September 28, 2017, 5:34pm UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/8 "2017-09-28T17:34:26Z")

</div>

Is their anything that i can do about this?

---

<div class="post-metadata">

**Author:** ![drenriza](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@drenriza](https://discuss.elastic.co/u/drenriza)\
**Post date:** [October 10, 2017, 8:59am UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/9 "2017-10-10T08:59:42Z")

</div>

My god this is **unprofessional**.

Even after contacting support no response what so ever.

If the products reflect the way you deal with problems, it cannot be very good overall.  
Which so far results in an epic fail that even makes the products inaccessible, good job guys.

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [October 10, 2017, 9:26am UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/10 "2017-10-10T09:26:46Z")

</div>

@drenriza I'm sorry for the bad experience. It seems like we cannot reproduce the timeout that you are seeing. Perhaps there's a firewall or router getting in the way?

I can't find your support ticket in our systems, can you email the ticket number to me, please? ([tudor@elastic.co](mailto:tudor@elastic.co)). I can check whether something went wrong on that side.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [October 10, 2017, 2:27pm UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/11 "2017-10-10T14:27:04Z")

</div>

Just to be absolutely sure the Filebeat APT [instructions](https://www.elastic.co/guide/en/beats/filebeat/5.6/setup-repositories.html) are working as expected I did another test. I used newly provisioned Ubuntu 16.04 from europe-west1-b (St. Ghislain, Belgium) on GCE. Filebeat installed without any timeouts.

The artifacts are served from AWS in us-east-1.

```auto
bash-3.2$ ssh gce-ubuntu-1604
The authenticity of host '104.155.xx.xx (104.155.xx.xx)' can't be established.
ECDSA key fingerprint is SHA256:83KvxJHMT0u23EqeAfq/RMJsBWlO58MjP85Qe3Ue9ZM.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '104.155.xx.xx' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-35-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

andrew_kroh@instance-1:~$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
OK

andrew_kroh@instance-1:~$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.2.24).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

andrew_kroh@instance-1:~$ echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
deb https://artifacts.elastic.co/packages/5.x/apt stable main

andrew_kroh@instance-1:~$ sudo apt-get update && sudo apt-get install filebeat
Hit:1 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:4 http://archive.canonical.com/ubuntu xenial InRelease                                                 
Get:5 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]                 
Get:6 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]                  
Get:7 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]    
Get:8 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                              
Get:9 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]                            
Get:10 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates/main Sources [278 kB]
Get:11 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [3,404 B]
Get:12 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [176 kB]
Get:13 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [7,208 B]
Get:14 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [639 kB]
Get:15 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [267 kB]
Get:16 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [538 kB]
Get:17 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [218 kB]
Ign:18 https://artifacts.elastic.co/packages/5.x/apt stable InRelease               
Get:19 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-backports/main Sources [3,432 B]
Get:20 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [4,376 B]
Get:21 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,860 B]
Get:22 https://artifacts.elastic.co/packages/5.x/apt stable Release [4,360 B]
Get:23 https://artifacts.elastic.co/packages/5.x/apt stable Release.gpg [473 B]
Get:24 http://security.ubuntu.com/ubuntu xenial-security/main Sources [93.1 kB]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,600 B]   
Get:26 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [43.4 kB]
Get:27 https://artifacts.elastic.co/packages/5.x/apt stable/main amd64 Packages [26.9 kB]
Get:28 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,140 B]
Get:29 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [360 kB]
Get:30 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [159 kB]
Get:31 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [169 kB]
Get:32 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [90.3 kB]
Fetched 12.2 MB in 2s (4,887 kB/s)                               
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  filebeat
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 9,316 kB of archives.
After this operation, 30.4 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/5.x/apt stable/main amd64 filebeat amd64 5.6.2 [9,316 kB]
Fetched 9,316 kB in 1s (5,815 kB/s)    
Selecting previously unselected package filebeat.
(Reading database ... 66553 files and directories currently installed.)
Preparing to unpack .../filebeat_5.6.2_amd64.deb ...
Unpacking filebeat (5.6.2) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up filebeat (5.6.2) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...

andrew_kroh@instance-1:~$ filebeat.sh -version
filebeat version 5.6.2 (amd64), libbeat 5.6.2

andrew_kroh@instance-1:~$ exit
logout
Connection to 104.155.xx.xx closed.

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 17, 2017, 10:25am UTC](https://discuss.elastic.co/t/installing-filebeats-ubuntu-16-04-repo-timeout/101825/12 "2017-10-17T10:25:43Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
