# Getting Started with 7.9.2 on Debian 10

**URL:** <https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411>\
**Category:** Elasticsearch\
**Created:** [September 29, 2020, 8:01pm UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411 "2020-09-29T20:01:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![epretorious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/epretorious/32/76398_2.png) [@epretorious](https://discuss.elastic.co/u/epretorious)\
**Post date:** [September 29, 2020, 8:01pm UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/1 "2020-09-29T20:01:58Z")

</div>

Hello, All!

I've [installed Elasticsearch using the .tar.gz method](https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html) onto my Debian 10 host. But when I attempt to verify that Elasticsearch is listening and responding to inquiries _by sending an HTTP request to port `9200` on `localhost`_ I get this error:

```
eric@foobar:~/Projects/elasticsearch-7.9.2$ telnet 127.0.0.1 9200
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /
HTTP/1.0 400 Bad Request
content-type: application/json; charset=UTF-8
content-length: 203

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"text is empty (possibly HTTP/0.9)"}],"type":"illegal_argument_exception","reason":"text is empty (possibly HTTP/0.9)"},"status":400}Connection closed by foreign host.

```

What's causing this error?

TIA,  
Eric P.  
Portland, Oregon

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 29, 2020, 9:12pm UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/2 "2020-09-29T21:12:26Z")

</div>

You need to specify the HTTP version in your request.

Use

```auto
GET / HTTP/1.0

```

You can also test using curl

```auto
curl 127.0.0.1:9200

```

---

<div class="post-metadata">

**Author:** ![epretorious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/epretorious/32/76398_2.png) [@epretorious](https://discuss.elastic.co/u/epretorious)\
**Post date:** [September 30, 2020, 12:02am UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/3 "2020-09-30T00:02:54Z")

</div>

Thanks, Leandro! But specifying the version of HTTP just creates a _different_ error:

**No HTTP version information:**  
eric@foobar:~/Projects/elasticsearch-7.9.2$ telnet 127.0.0.1 9200  
Trying 127.0.0.1...  
Connected to 127.0.0.1.  
Escape character is '^]'.  
GET /  
HTTP/1.0 400 Bad Request  
content-type: application/json; charset=UTF-8  
content-length: 203

```
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"text is empty (possibly HTTP/0.9)"}],"type":"illegal_argument_exception","reason":"text is empty (possibly HTTP/0.9)"},"status":400}Connection closed by foreign host.

```

**When specifying HTTP version 1.0:**  
eric@foobar:~/Projects/elasticsearch-7.9.2$ telnet 127.0.0.1 9200  
Trying 127.0.0.1...  
Connected to 127.0.0.1.  
Escape character is '^]'.  
GET / HTTP/1.0  
.  
HTTP/1.0 400 Bad Request  
content-type: application/json; charset=UTF-8  
content-length: 165

```
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No colon found"}],"type":"illegal_argument_exception","reason":"No colon found"},"status":400}Connection closed by foreign host.

```

**When specifying HTTP version 1.1:**  
eric@flex-5:~/Projects/elasticsearch-7.9.2$ telnet 127.0.0.1 9200  
Trying 127.0.0.1...  
Connected to 127.0.0.1.  
Escape character is '^]'.  
GET / HTTP/1.1  
.  
HTTP/1.1 400 Bad Request  
content-type: application/json; charset=UTF-8  
content-length: 165

```
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No colon found"}],"type":"illegal_argument_exception","reason":"No colon found"},"status":400}

```

Notice that, _in the last session_, the foreign host doesn't close the connection!

Ideas? Suggestions?

TIA,  
Eric P.  
Portland, Oregon

---

<div class="post-metadata">

**Author:** ![epretorious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/epretorious/32/76398_2.png) [@epretorious](https://discuss.elastic.co/u/epretorious)\
**Post date:** [September 30, 2020, 12:09am UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/4 "2020-09-30T00:09:18Z")

</div>

But your other suggestion (i.e., curl) works as-expected! 🤔

```
eric@foobar:~/Projects/elasticsearch-7.9.2$ curl 127.0.0.1:9200
{
  "name" : "foobar",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "lMCQ03R1QMqG5uR9aatE-A",
  "version" : {
    "number" : "7.9.2",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",
    "build_date" : "2020-09-23T00:45:33.626720Z",
    "build_snapshot" : false,
    "lucene_version" : "8.6.2",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

```

What could be causing this inconsistent behavior?

TIA,  
Eric P.  
Portland, Oregon

---

<div class="post-metadata">

**Author:** ![epretorious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/epretorious/32/76398_2.png) [@epretorious](https://discuss.elastic.co/u/epretorious)\
**Post date:** [September 30, 2020, 12:50am UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/5 "2020-09-30T00:50:59Z")

</div>

And Mozilla Firefox also works as-expected:

```
{
  "name" : "flex-5",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "lMCQ03R1QMqG5uR9aatE-A",
  "version" : {
    "number" : "7.9.2",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",
    "build_date" : "2020-09-23T00:45:33.626720Z",
    "build_snapshot" : false,
    "lucene_version" : "8.6.2",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

```

HTH,  
Eric P.  
Portland, Oregon

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 30, 2020, 1:21am UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/6 "2020-09-30T01:21:57Z")

</div>

You are sending a dot `.` in your request, just press `enter` instead of using a `.` and it will work.

When you use `HTTP/1.1` the connection is persisted unless you specify it should not be persisted, you should use.

```auto
GET / HTTP/1.1
Connection: close

```

But using `curl` is simpler, it just one command, no need to use telnet.

---

<div class="post-metadata">

**Author:** ![epretorious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/epretorious/32/76398_2.png) [@epretorious](https://discuss.elastic.co/u/epretorious)\
**Post date:** [September 30, 2020, 3:48pm UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/7 "2020-09-30T15:48:33Z")

</div>

One last thing, Leandro:

How can I suggest/make improvements and/or corrections to [the instructions that I'd referenced](https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html)?

TIA,  
Eric P.  
Portland, Oregon

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 30, 2020, 4:56pm UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/8 "2020-09-30T16:56:06Z")

</div>

You could try opening an issue on [github](https://github.com/elastic/elasticsearch), but I don't think there is the need for it in this case.

The instructions to check if elasticsearch is running is to _Send a HTTP Request_, it does not say what you should use to do that, you could use Postman, a Browser, a Python Script, anything.

To make things easier it also has a link to copy the request using `curl` so you just paste it in your terminal.

The problem is that when making an HTTP Request you should include the HTTP Protocol version, this is speficied in the [RFC 2616](https://tools.ietf.org/html/rfc2616#section-5).

This is what a HTTP request looks like

```auto
Method SP Request-URI SP HTTP-Version CRLF

```

So the correct way to check if elasticsearch is running using telnet is to make the following request.

```auto
GET / HTTP/1.0

```

Since you didn't include the HTTP version in your first request, it was as Bad Request. This is not an elasticsearch error, but a Request error.

---

<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 28, 2020, 4:56pm UTC](https://discuss.elastic.co/t/getting-started-with-7-9-2-on-debian-10/250411/9 "2020-10-28T16:56:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
