# Dev tools error

**URL:** <https://discuss.elastic.co/t/dev-tools-error/124484>\
**Category:** Kibana\
**Created:** [March 19, 2018, 6:12am UTC](https://discuss.elastic.co/t/dev-tools-error/124484 "2018-03-19T06:12:33Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 19, 2018, 6:12am UTC](https://discuss.elastic.co/t/dev-tools-error/124484/1 "2018-03-19T06:12:33Z")

</div>

When trying to execute

GET /\_search  
{

"query": {

```
"match_all": {}

```

}

}

Getting error Failed to connect to Console's backend.  
Please check the Kibana server is up and running

Confirmed that my Kibana server is up and running.

Could you please help

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 19, 2018, 1:02pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/2 "2018-03-19T13:02:53Z")

</div>

Hey,

could you please open the Dev Tools in your Browser (F12 or Cmd+Alt+I on Mac) and check the Network tab. You should see a failed request, could you somehow screenshot or copy information about that request, and also about the URL, that you are using to access Kibana in your Browser.

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 19, 2018, 1:07pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/3 "2018-03-19T13:07:26Z")

</div>

Hey Tim, Here you go

 ![Console%20error](https://us1.discourse-cdn.com/elastic/original/3X/2/6/26bb53a6f96b7c571f4c3339eb549a82dd4e6ebe.png)

Re: URL - See the address bar

Regards  
Kamal

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 19, 2018, 1:11pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/4 "2018-03-19T13:11:30Z")

</div>

Thanks for that information. Are you sure the Kibana server is still up and running? So if you do a refresh without cache (Shift + F5) your Kibana instance will still load?

If that works: you are sure, that you have a proper connection to the required URL: `http://192.168.51.59/api/console/proxy` and no firewall or reverse proxy is blocking it? Also maybe try incognito mode of your browser to check, that it's not a browser plugin, that intercept these calls.

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 19, 2018, 1:15pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/5 "2018-03-19T13:15:02Z")

</div>

Thanks Tim. Tried all. Its still throwing the same error. Additionally simulated using Postman, see attached. Could you infer something from this

 ![Console%20error2](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a18eaf78da8da0cbf6437ae34c6bfcfa18647267.PNG)

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 19, 2018, 1:18pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/6 "2018-03-19T13:18:46Z")

</div>

Okay, that request really shows, that you are running a reverse proxy (nginx) in front of the Kibana instance. Since `_template` is an Elasticsearch API and not a Kibana API, might both be running behind the same reverse proxy? Could you perhaps post the configuration of your nginx, maybe that helps troubleshoot the error.

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 19, 2018, 1:23pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/7 "2018-03-19T13:23:27Z")

</div>

![nginx%20config](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d32831e070d7177e96a2ee98a30fe0fc72fd9fb8.png)

Here you go. Let me know, where to look into, if this doesnot help

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 19, 2018, 1:25pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/8 "2018-03-19T13:25:29Z")

</div>

Hi,

I think the interesting part of the nginx config would be some `location` and `proxy_pass` directives in there. I assume that there is some mismatch in what path Kibana would need to be forwarded and what pathes are actually forwarded. But without the complete nginx config (and not just the first 30 lines) I can't give any more detailed explanation, sorry.

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 19, 2018, 1:34pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/9 "2018-03-19T13:34:04Z")

</div>

Here you go

```auto
user www-data;
worker_processes auto;
pid /run/nginx.pid;

events {
	worker_connections 768;
	# multi_accept on;
}

http {

	##
	# Basic Settings
	##

	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

        server_names_hash_bucket_size 64;
	# server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# SSL Settings
	##

	ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##

```

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 19, 2018, 1:35pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/10 "2018-03-19T13:35:44Z")

</div>

I unfortunately doubt, that this is the full config, since it's an invalid config and the nginx wouldn't start like that - it has an open `http` block in the end, and I highly doubt, that the config ends on a comment about GZIP setting.

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 19, 2018, 1:37pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/11 "2018-03-19T13:37:02Z")

</div>

Where do I get to see the config file. Could you please help with the location. I would then download and send accordingly

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 19, 2018, 1:38pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/12 "2018-03-19T13:38:50Z")

</div>

```
user www-data;
worker_processes auto;
pid /run/nginx.pid;

events {
	worker_connections 768;
	# multi_accept on;
}

http {

	##
	# Basic Settings
	##

	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

        server_names_hash_bucket_size 64;
	# server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# SSL Settings
	##

	ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##

	gzip on;
	gzip_disable "msie6";

	# gzip_vary on;
	# gzip_proxied any;
	# gzip_comp_level 6;
	# gzip_buffers 16 8k;
	# gzip_http_version 1.1;
	# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

	##
	# Virtual Host Configs
	##

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}

#mail {
#	# See sample authentication script at:
#	# http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
# 
#	# auth_http localhost/auth.php;
#	# pop3_capabilities "TOP" "USER";
#	# imap_capabilities "IMAP4rev1" "UIDPLUS";
# 
#	server {
# listen localhost:110;
# protocol pop3;
# proxy on;
#	}
# 
#	server {
# listen localhost:143;
# protocol imap;
# proxy on;
#	}
#}
```

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 19, 2018, 2:21pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/13 "2018-03-19T14:21:30Z")

</div>

The actual configuration seems to be inside `/etc/nginx/sites-enabled/*` There should be one or multiple files, that have the actual "site configuration" that I am looking for 🙃

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 20, 2018, 5:10am UTC](https://discuss.elastic.co/t/dev-tools-error/124484/14 "2018-03-20T05:10:04Z")

</div>

> [@timroes](#):
>
> /etc/nginx/sites-enabled

Hi Tim,  
This is the only file available in the specified location ![Nginx%20config%20file](https://us1.discourse-cdn.com/elastic/original/3X/8/8/88f200f366bd1bfff3ce727a384556ed1b340504.PNG)

and the content of that file is

```auto
        server {
            listen 80;

            #server_name example.com;

            auth_basic "Restricted Access";
            auth_basic_user_file /etc/nginx/htpasswd.users;

            location / {
                proxy_pass http://localhost:5601;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_cache_bypass $http_upgrade;        
            }
        }

```

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 20, 2018, 10:27am UTC](https://discuss.elastic.co/t/dev-tools-error/124484/15 "2018-03-20T10:27:37Z")

</div>

@Tim, Could you please help

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 20, 2018, 11:07am UTC](https://discuss.elastic.co/t/dev-tools-error/124484/16 "2018-03-20T11:07:54Z")

</div>

Hey,

I suspect it has something to do with the basic\_auth you have been setting up for the reverse proxy.

Could you just to rule that out, comment out the `auth_basic` and `auth_basic_user_file` in the above config, and restart your nginx and check if the error still persists?

I also asked the Kibana operations team to have a look at that, because except the basic auth, I don't see any obvious failure.

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [March 20, 2018, 12:21pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/17 "2018-03-20T12:21:58Z")

</div>

> [@timroes](#):
>
> /etc/nginx/sites-enabled/

Thanks Tim. But unfortunately it didn't help. Could you please suggest an alternate method to solve the issue

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 20, 2018, 1:38pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/18 "2018-03-20T13:38:24Z")

</div>

Hey,

I think we cannot help much more with the apparent network issue, over the forums, sorry ☹  
If you have a support subscription I would kindly ask you to open a support case for that, since they will be able to help you in way more detail, than we can help here any further.

Sorry, for that. Network issues - and I still think that's one - are always hard to debug without access to actual systems.

Cheers,  
Tim

---

<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:** [April 17, 2018, 1:38pm UTC](https://discuss.elastic.co/t/dev-tools-error/124484/19 "2018-04-17T13:38:27Z")

</div>

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