X-ror-current-group header error


(Grahame Murray) #1

We are experiencing an error logging in to Kibana. The login page displays but upon submitting credentials we see the ROR gradient background with only this black text: {"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}. The following is in the logs:

Oct 09 15:43:55 elk-01 kibana[4174]: got an error [500] Internal Server Error { Error: Uncaught error: "value" required in setHeader("x-ror-current-group", value)
Oct 09 15:43:55 elk-01 kibana[4174]: at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:355:11)
Oct 09 15:43:55 elk-01 kibana[4174]: at new ClientRequest (_http_client.js:85:14)
Oct 09 15:43:55 elk-01 kibana[4174]: at Object.exports.request (http.js:31:10)
Oct 09 15:43:55 elk-01 kibana[4174]: at Object.exports.request (https.js:199:15)
Oct 09 15:43:55 elk-01 kibana[4174]: at internals.Client.request (/usr/share/kibana/plugins/readonlyrest_kbn/node_modules/wreck/lib/index.js:158:24)
Oct 09 15:43:55 elk-01 kibana[4174]: at getIdentity (/usr/share/kibana/plugins/readonlyrest_kbn/server/routes/lib/auth.js:1:1551)
Oct 09 15:43:55 elk-01 kibana[4174]: at login (/usr/share/kibana/plugins/readonlyrest_kbn/server/routes/lib/auth.js:6:1084)
Oct 09 15:43:55 elk-01 kibana[4174]: at Object.internals.handler (/usr/share/kibana/node_modules/hapi/lib/handler.js:96:36)
Oct 09 15:43:55 elk-01 kibana[4174]: at request._protect.run (/usr/share/kibana/node_modules/hapi/lib/handler.js:30:23)
Oct 09 15:43:55 elk-01 kibana[4174]: at internals.Protect.run (/usr/share/kibana/node_modules/hapi/lib/protect.js:64:5)
Oct 09 15:43:55 elk-01 kibana[4174]: at exports.execute (/usr/share/kibana/node_modules/hapi/lib/handler.js:24:22)
Oct 09 15:43:55 elk-01 kibana[4174]: at each (/usr/share/kibana/node_modules/hapi/lib/request.js:384:16)
Oct 09 15:43:55 elk-01 kibana[4174]: at iterate (/usr/share/kibana/node_modules/hapi/node_modules/items/lib/index.js:36:13)
Oct 09 15:43:55 elk-01 kibana[4174]: at done (/usr/share/kibana/node_modules/hapi/node_modules/items/lib/index.js:28:25)
Oct 09 15:43:55 elk-01 kibana[4174]: at Hoek.once (/usr/share/kibana/node_modules/hapi/lib/protect.js:52:16)
Oct 09 15:43:55 elk-01 kibana[4174]: at wrapped (/usr/share/kibana/node_modules/hapi/node_modules/hoek/lib/index.js:875:20)
Oct 09 15:43:55 elk-01 kibana[4174]: domain:
Oct 09 15:43:55 elk-01 kibana[4174]: Domain {
Oct 09 15:43:55 elk-01 kibana[4174]: domain: null,
Oct 09 15:43:55 elk-01 kibana[4174]: _events: { error: [Function] },
Oct 09 15:43:55 elk-01 kibana[4174]: _eventsCount: 1,
Oct 09 15:43:55 elk-01 kibana[4174]: _maxListeners: undefined,
Oct 09 15:43:55 elk-01 kibana[4174]: members: [] },
Oct 09 15:43:55 elk-01 kibana[4174]: domainThrown: true,
Oct 09 15:43:55 elk-01 kibana[4174]: isBoom: true,
Oct 09 15:43:55 elk-01 kibana[4174]: isServer: true,
Oct 09 15:43:55 elk-01 kibana[4174]: data: null,
Oct 09 15:43:55 elk-01 kibana[4174]: output:
Oct 09 15:43:55 elk-01 kibana[4174]: { statusCode: 500,
Oct 09 15:43:55 elk-01 kibana[4174]: payload:
Oct 09 15:43:55 elk-01 kibana[4174]: { statusCode: 500,
Oct 09 15:43:55 elk-01 kibana[4174]: error: 'Internal Server Error',
Oct 09 15:43:55 elk-01 kibana[4174]: message: 'An internal server error occurred' },
Oct 09 15:43:55 elk-01 kibana[4174]: headers: { 'kbn-name': 'kibana', 'kbn-version': '5.5.2' } },
Oct 09 15:43:55 elk-01 kibana[4174]: reformat: [Function],
Oct 09 15:43:55 elk-01 kibana[4174]: isDeveloperError: true }
Oct 09 15:43:55 elk-01 kibana[4174]: {"type":"error","@timestamp":"2017-10-09T15:43:54Z","tags":[],"pid":4174,"level":"error","message":"Uncaught error: \"value\" required in setHeader(\"x-ror-current-group\", value)","error":{"message":"Uncaught error: \"value\" required in setHeader(\"x-ror-current-group\", value)","name":"Error","stack":"Error: Uncaught error: \"value\" required in setHeader(\"x-ror-current-group\", value)\n    at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:355:11)\n    at new ClientRequest (_http_client.js:85:14)\n    at Object.exports.request (http.js:31:10)\n    at Object.exports.request (https.js:199:15)\n    at internals.Client.request (/usr/share/kibana/plugins/readonlyrest_kbn/node_modules/wreck/lib/index.js:158:24)\n    at getIdentity (/usr/share/kibana/plugins/readonlyrest_kbn/server/routes/lib/auth.js:1:1551)\n    at login (/usr/share/kibana/plugins/readonlyrest_kbn/server/routes/lib/auth.js:6:1084)\n    at Object.internals.handler (/usr/share/kibana/node_modules/hapi/lib/handler.js:96:36)\n    at request._protect.run (/usr/share/kibana/node_modules/hapi/lib/handler.js:30:23)\n    at internals.Protect.run (/usr/share/kibana/node_modules/hapi/lib/protect.js:64:5)\n    at exports.execute (/usr/share/kibana/node_modules/hapi/lib/handler.js:24:22)\n    at each (/usr/share/kibana/node_modules/hapi/lib/request.js:384:16)\n    at iterate (/usr/share/kibana/node_modules/hapi/node_modules/items/lib/index.js:36:13)\n    at done (/usr/share/kibana/node_modules/hapi/node_modules/items/lib/index.js:28:25)\n    at Hoek.once (/usr/share/kibana/node_modules/hapi/lib/protect.js:52:16)\n    at wrapped (/usr/share/kibana/node_modules/hapi/node_modules/hoek/lib/index.js:875:20)"},"url":{"protocol":null,"slashes":null,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":"","query":{},"pathname":"/login","path":"/login","href":"/login"}}
Oct 09 15:43:55 elk-01 kibana[4174]: Debug: internal, implementation, error
Oct 09 15:43:55 elk-01 kibana[4174]: Error: Uncaught error: "value" required in setHeader("x-ror-current-group", value)
Oct 09 15:43:55 elk-01 kibana[4174]: at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:355:11)
Oct 09 15:43:55 elk-01 kibana[4174]: at new ClientRequest (_http_client.js:85:14)
Oct 09 15:43:55 elk-01 kibana[4174]: at Object.exports.request (http.js:31:10)
Oct 09 15:43:55 elk-01 kibana[4174]: at Object.exports.request (https.js:199:15)
Oct 09 15:43:55 elk-01 kibana[4174]: at internals.Client.request (/usr/share/kibana/plugins/readonlyrest_kbn/node_modules/wreck/lib/index.js:158:24)
Oct 09 15:43:55 elk-01 kibana[4174]: at getIdentity (/usr/share/kibana/plugins/readonlyrest_kbn/server/routes/lib/auth.js:1:1551)
Oct 09 15:43:55 elk-01 kibana[4174]: at login (/usr/share/kibana/plugins/readonlyrest_kbn/server/routes/lib/auth.js:6:1084)
Oct 09 15:43:55 elk-01 kibana[4174]: at Object.internals.handler (/usr/share/kibana/node_modules/hapi/lib/handler.js:96:36)
Oct 09 15:43:55 elk-01 kibana[4174]: at request._protect.run (/usr/share/kibana/node_modules/hapi/lib/handler.js:30:23)
Oct 09 15:43:55 elk-01 kibana[4174]: at internals.Protect.run (/usr/share/kibana/node_modules/hapi/lib/protect.js:64:5)
Oct 09 15:43:55 elk-01 kibana[4174]: at exports.execute (/usr/share/kibana/node_modules/hapi/lib/handler.js:24:22)
Oct 09 15:43:55 elk-01 kibana[4174]: at each (/usr/share/kibana/node_modules/hapi/lib/request.js:384:16)
Oct 09 15:43:55 elk-01 kibana[4174]: at iterate (/usr/share/kibana/node_modules/hapi/node_modules/items/lib/index.js:36:13)
Oct 09 15:43:55 elk-01 kibana[4174]: at done (/usr/share/kibana/node_modules/hapi/node_modules/items/lib/index.js:28:25)
Oct 09 15:43:55 elk-01 kibana[4174]: at Hoek.once (/usr/share/kibana/node_modules/hapi/lib/protect.js:52:16)
Oct 09 15:43:55 elk-01 kibana[4174]: at wrapped (/usr/share/kibana/node_modules/hapi/node_modules/hoek/lib/index.js:875:20)
Oct 09 15:43:55 elk-01 kibana[4174]: {"type":"response","@timestamp":"2017-10-09T15:43:54Z","tags":[],"pid":4174,"method":"post","statusCode":500,"req":{"url":"/login","method":"post","headers":{"host":"elk-01:5601","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"application/json, text/javascript, */*; q=0.01","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"https://elk-01:5601/login?nextUrl=%2F","content-type":"application/x-www-form-urlencoded; charset=UTF-8","kbn-version":"5.5.2","kbn-xsrf":"5.5.2","x-requested-with":"XMLHttpRequest","content-length":"29","connection":"keep-alive"},"remoteAddress":"10.0.0.6","userAgent":"10.0.0.6","referer":"https://elk-01:5601/login?nextUrl=%2F"},"res":{"statusCode":500,"responseTime":111,"contentLength":9},"message":"POST /login 500 111ms - 9.0B"}

Restarting Kibana fixes this problem. My users also report that using Incognito mode or deleting their cookies fixes it.

We are using Kibana 5.5.2 and ROR 1.16.10 Enterprise.

Thanks.


(Simone Scarduzio) #2

Hello @gusnuf!

Thanks for reporting this. Will fix in the next release. :thumbsup:


(Grahame Murray) #3

Thanks @sscarduzio. Do you have an ETA for the next release? And do you have a general roadmap and/or release schedule?


(Simone Scarduzio) #4

Hi @gusnuf Target release is mid next week. If you want we can arrange a pre release.