Elastic Search Exception when Upgrading from SonarQube 5.6.1 to 6.0

665 views
Skip to first unread message

050...@gmail.com

unread,
Aug 8, 2016, 6:01:34 AM8/8/16
to SonarQube
Hi SonarQube Community,
I get the following exception in sonar.log when upgrading from 5.6.1 to 6.0 (this is on Ubuntu 14.04.5 LTS)
-------------------------------------------------------------------------------------------------------
Caused by: java.lang.IllegalStateException: unable to upgrade the mappings for the index [rules], reason: [Mapper for [ruleKey] conflicts with existing mapping in other types:
[mapper [ruleKey] has different [index] values, mapper [ruleKey] has different [analyzer], mapper [ruleKey] is used by multiple types. Set update_all_types to true to update [search_analyzer] across all types., mapper [ruleKey] is used by multiple types. Set update_all_types to true to update [search_quote_analyzer] across all types.]]
        at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.checkMappingsCompatibility(MetaDataIndexUpgradeService.java:308)
        at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.upgradeIndexMetaData(MetaDataIndexUpgradeService.java:116)
        at org.elasticsearch.gateway.GatewayMetaState.pre20Upgrade(GatewayMetaState.java:228)
        at org.elasticsearch.gateway.GatewayMetaState.<init>(GatewayMetaState.java:87)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:50)
        at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
        at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
        at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
        at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:886)
        at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
        at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
        at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
        at org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:201)
        at org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:193)
        at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:879)
        at org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:193)
        at org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:175)
        at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:110)
        at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:96)
        at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
        at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:46)
        at org.elasticsearch.node.Node.<init>(Node.java:213)
        at org.elasticsearch.node.Node.<init>(Node.java:140)
        at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
        at org.sonar.search.SearchServer.start(SearchServer.java:48)
        at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:102)
        at org.sonar.search.SearchServer.main(SearchServer.java:90)
-------------------------------------------------------------------------------------------------------
Anybody else got this error? I did not find a corresponding issue in Jira. Found https://github.com/elastic/elasticsearch/issues/14575 though.
Greetings Martin

050...@gmail.com

unread,
Aug 8, 2016, 8:29:26 AM8/8/16
to SonarQube, 050...@gmail.com

darth...@gmail.com

unread,
Aug 15, 2016, 2:48:08 PM8/15/16
to SonarQube, 050...@gmail.com
Thanks for posting this. I had the same error when upgrading from 5.6.1 to 6.0 on Ubuntu 16.04. Deleting the folder es also solved my issue.
Reply all
Reply to author
Forward
0 new messages