Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kibana 6.0.0-beta1 can't create index-pattern #13527

Closed
ytzlax opened this issue Aug 16, 2017 · 6 comments
Closed

kibana 6.0.0-beta1 can't create index-pattern #13527

ytzlax opened this issue Aug 16, 2017 · 6 comments
Labels
Pioneer Program Team:Operations Team label for Operations Team

Comments

@ytzlax
Copy link
Contributor

ytzlax commented Aug 16, 2017

Kibana version: 6.0.0-beta1

Elasticsearch version:6.0.0-beta1

Server OS version:windows 7

Browser version:60.0.3112.90 (Official Build) (64-bit) chrome

Browser OS version:

Description of the problem including expected versus actual behavior:
When I tried to create index-pattern to exist index, nothing happen, and got error POST http://localhost:5601/fwz/api/saved_objects/index-pattern 403 (Forbidden)

Steps to reproduce:
1.Go to mangment tab
2.fill index pattern name : logstash-*
3.Choose time filter field name: @timestamp
4. Click on create button
5. Nothing happend
6. open browser developer tools, and got error

Errors in browser console (if relevant):

POST http://localhost:5601/fwz/api/saved_objects/index-pattern 403 (Forbidden)
(anonymous) @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10722
sendReq @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10515
serverRequest @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10222
processQueue @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:14745
(anonymous) @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:14761
$eval @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:15989
$digest @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:15800
$apply @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:16097
done @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10546
completeRequest @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10744
requestLoaded @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10685
XMLHttpRequest.send (async)
(anonymous) @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10722
sendReq @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10515
serverRequest @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10222
processQueue @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:14745
(anonymous) @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:14761
$eval @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:15989
$digest @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:15800
$apply @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:16097
(anonymous) @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:23554
dispatch @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\jquery\dist\jquery.js:4737
elemData.handle @ C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\jquery\dist\jquery.js:4549
C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:12477 Error: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
at C:\Users\Itzhak\Documents\elk_dev\kibana\src\ui\public\saved_objects\saved_objects_client.js:284
at processQueue (C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:14745)
at C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:14761
at Scope.$eval (C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:15989)
at Scope.$digest (C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:15800)
at Scope.$apply (C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:16097)
at done (C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10546)
at completeRequest (C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10744)
at XMLHttpRequest.requestLoaded (C:\Users\Itzhak\Documents\elk_dev\kibana\node_modules\angular\angular.js:10685)

@tylersmalley
Copy link
Contributor

Looks like you're getting a 403 Forbidden. Are you using X-Pack?

Can I also get the output from the server-side logs?

@tylersmalley tylersmalley added the Team:Operations Team label for Operations Team label Aug 16, 2017
@tylersmalley
Copy link
Contributor

Closing this due to lack of a response. Please re-open if this is still an issue.

@marbin
Copy link

marbin commented Nov 27, 2017

I am having the same issue with a completely fresh install of the 6.0.0 stack
Server OS version: Windows 10 Pro
java version "1.8.0_151"

Kibana asks me to create an index pattern. When I hit the "Create" button, I get no response in the UI,.
Seems like there is a successful GET and then a failing POST with a 403 response behind the scenes.
See the attached HAR file.

kibana_HAR.txt

kibana_403

There is one index in the server with the name logstash-2017.11.27
I an not using X-pack.

@pourkinl
Copy link

Using 6.0.0 Similar problem. Hit the "Create" button , eventually get returned the same page. No error, and no index pattern created.

@marbin
Copy link

marbin commented Nov 28, 2017

Turned on debug logging in my elasticsearch server. Noticed this stack trace:
[2017-11-28T17:56:53,281][DEBUG][r.suppressed ] [] path: /.kibana/doc/index-pattern%3A50c26200-d409-11e7-8933-71f3fcf27ed3, params: {refresh=wait_for, index=.kibana, id=index-pattern:50c26200-d409-11e7-8933-71f3fcf27ed3, type=doc} org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]; at org.elasticsearch.cluster.block.ClusterBlocks.indexBlockedException(ClusterBlocks.java:182) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.handleBlockExceptions(TransportReplicationAction.java:812) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:712) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.replication.TransportReplicationAction.doExecute(TransportReplicationAction.java:169) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.replication.TransportReplicationAction.doExecute(TransportReplicationAction.java:97) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:167) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:139) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:81) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation.doRun(TransportBulkAction.java:350) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.bulk.TransportBulkAction.executeBulk(TransportBulkAction.java:462) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:175) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:86) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:167) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:139) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.bulk.TransportSingleItemBulkWriteAction.doExecute(TransportSingleItemBulkWriteAction.java:69) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.bulk.TransportSingleItemBulkWriteAction.doExecute(TransportSingleItemBulkWriteAction.java:44) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:167) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:139) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:81) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:72) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:405) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.client.support.AbstractClient.index(AbstractClient.java:417) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.rest.action.document.RestIndexAction.lambda$prepareRequest$1(RestIndexAction.java:92) ~[elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:97) [elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:240) [elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:336) [elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:174) [elasticsearch-6.0.0.jar:6.0.0] at org.elasticsearch.http.netty4.Netty4HttpServerTransport.dispatchRequest(Netty4HttpServerTransport.java:491) [transport-netty4-6.0.0.jar:6.0.0] at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:80) [transport-netty4-6.0.0.jar:6.0.0] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at org.elasticsearch.http.netty4.pipelining.HttpPipeliningHandler.channelRead(HttpPipeliningHandler.java:68) [transport-netty4-6.0.0.jar:6.0.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) [netty-codec-4.1.13.Final.jar:4.1.13.Final] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [netty-codec-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) [netty-codec-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) [netty-codec-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) [netty-codec-4.1.13.Final.jar:4.1.13.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284) [netty-codec-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:544) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:498) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458) [netty-transport-4.1.13.Final.jar:4.1.13.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [netty-common-4.1.13.Final.jar:4.1.13.Final] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]

@marbin
Copy link

marbin commented Nov 28, 2017

I can confirm that, in my case, this was related to #13685, i.e. the .kibana index was read-only.
After reinstalling elastic search, it now works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pioneer Program Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

5 participants