[6.2.2] reporting max attempts reached issue

Hello, I have kibana running behind a reverse proxy (nginx). I have set my yml like this (note that the index of kibana is not the default one):


server.basePath: "/bigdata"
elasticsearch.url: "http://aaa-2.flightwatching.com:9200"
kibana.index: .kibana-revima
elasticsearch.username: "kibana"
elasticsearch.password: "thepass"
logging.dest: /home/aaa/logs/kibana.log
xpack.reporting.encryptionKey: "ZHDFEBHAIJOSLOZEOBEHJESMO682351279"
xpack.reporting.kibanaServer.port: 443
xpack.reporting.kibanaServer.protocol: https
xpack.reporting.kibanaServer.hostname: aaa.flightwatching.com

my nginx conf is the following:

server {
  listen 80;
  server_name    aaa.flightwatching.com;
  rewrite        ^ https://$server_name$request_uri? permanent;
}

server {
  listen   443;
  server_name aaa.flightwatching.com;
  ssl on;
    ssl_certificate /etc/letsencrypt/live/aaa.flightwatching.com/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/aaa.flightwatching.com/privkey.pem;
    ssl_session_timeout 5m;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
  ssl_prefer_server_ciphers on;
  ssl_session_cache shared:SSL:10m;
  ssl_dhparam /etc/ssl/certs/dhparam.pem;

  proxy_set_header        Host            $host;
  proxy_set_header        X-Real-IP       $remote_addr;
  proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_hide_header       X-Powered-By;
  proxy_intercept_errors on;
  proxy_set_header        X-Forwarded-Proto $scheme;
  add_header              Front-End-Https   on;
  proxy_redirect http:// https://;
  proxy_set_header   X-Forwarded-Ssl    on;
  client_max_body_size 20M;

  location ~ ^/bigdata/(.*)$ {
      rewrite /bigdata/(.*) /$1 break;
      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;
  }


}

but I get the max attempts reached (3) issue when trying to create a report.

can you explain me why it can hapend?

regards

If you are running behind a reverse proxy (as you do), you need to provide some addition information in the kibana.yml configuration for reporting - Reporting settings in Kibana | Kibana Guide [7.15] | Elastic. The actual values might depend on your actual architecture.

Hope this helps
Rashmi

As you can see in my kibana.yml, I did follow the documentation you are kindly mentioning.

Nevertheless, nothing is generated. Plus, I cannot see any message in the kibana.log that I can take advantage.

here is a content copy of the section I have implemented:

Kibana Server Settingsedit

Reporting uses the Kibana interface to generate reports. In most cases, you don’t need to configure Reporting to communicate with Kibana. However, if you use a reverse-proxy to access Kibana, you must set the proxy port, protocol, and hostname.

xpack.reporting.kibanaServer.port
The port for accessing Kibana, if different from the server.port value.
xpack.reporting.kibanaServer.protocol
The protocol for accessing Kibana, typically http or https.
xpack.reporting.kibanaServer.hostname
The hostname for accessing Kibana, if different from the server.name value.

Hello,

any help would be appreciated. Maybe it is necessary I reformulate?

to add something to the mill, here are the nginx logs regarding my kibana instance

192.177.111.21 - - [25/Jul/2018:14:28:02 +0200] "POST /bigdata/api/reporting/generate/printablePdf?jobParams=(browserTimezone:Europe%2FParis,layout:(id:print),objectType:visualization,queryString:%27_g%3D()%26_a%3D(filters:!!(),linked:!!f,query:(language:lucene,query:!%27!%27),uiState:(),vis:(aggs:!!(),params:(fontSize:12,markdown:TEST),title:!%27FW%2Btest%2BMD!%27,type:markdown))%27,savedObjectId:%279690d150-8e93-11e8-8803-bb341278fcb4%27) HTTP/1.1" 200 1732 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:28:09 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1797 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:28:19 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1797 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:28:29 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1797 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:28:39 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1799 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:28:49 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1799 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:28:59 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1799 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:29:09 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1801 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:29:19 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1801 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:29:29 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1801 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:29:41 +0200] "GET /bigdata/api/reporting/jobs/list?ids=jk13uadb02pt628259b44szp HTTP/1.1" 200 1826 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:29:42 +0200] "GET /bigdata/api/reporting/jobs/output/jk13uadb02pt628259b44szp HTTP/1.1" 200 89 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:32:09 +0200] "GET /bigdata/ui/favicons/favicon-32x32.png HTTP/1.1" 304 0 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:32:09 +0200] "GET /bigdata/api/security/v1/me HTTP/1.1" 200 129 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:32:11 +0200] "GET /bigdata/api/reporting/jobs/count HTTP/1.1" 200 37 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:32:11 +0200] "GET /bigdata/ui/favicons/favicon-16x16.png HTTP/1.1" 304 0 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:32:16 +0200] "GET /bigdata/api/reporting/jobs/list?page=0 HTTP/1.1" 200 15529 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
192.177.111.21 - - [25/Jul/2018:14:32:16 +0200] "GET /bigdata/api/reporting/jobs/count HTTP/1.1" 200 37 "https://aaa.flightwatching.com/bigdata/app/kibana" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"

Hello, I am really stucked.

Does it ring any bell to anyone from ES?

Hello, I assume nobody gets the problem. Does someone can help me sending some how to on reporting setup behind a reverse proxy with a specific URL path to access kibana?

regards

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