- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
目前我们正处于从 v4.5.7 到 v6.7.1 的升级过程中。
SonarQube已成功升级到v5.6.7(包括数据库升级),目前正在更新到v6.7.1。
新的 SonarQube 版本在空数据库 ( bundled H2 DB ) 上启动,运行良好。之后,所有插件及其版本都会得到相应的验证和更新。
现在 Sonar 服务启动失败,并出现错误后台初始化失败。停止 SonarQube java.lang.IllegalStateException:不可恢复的索引失败
。
我删除了 data/es5
文件夹并重新尝试启动 sonar
但没有成功。非常感谢任何解决该问题的帮助。
网络日志:
INFO web[][o.s.p.ProcessEntryPoint] Starting web
INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9002]
INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.7.1.35068 / 426519346f51f7b980a76f9050f983110550509d
INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:oracle:thin:@host:****:instance
INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /.../sonar/sonarqube-6.7.1
INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Branch / 1.0.0.507 / e9d161eaa2993f79890dd5d08230f3f566e6be93
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Checkmarx / 8.41.0-20161229-0945
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Developer / 1.0.0.240 / 25c709aeb128caa14725b943422cca19def50493
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Flex / 2.3 / 79167f762219bea1fd181ff5ef6ca4b34abd1675
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin GitHub / 1.4.2.1027 / dcfb02a5fa40c219d527563f5b8c793966523ca7
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Governance / 2.0.2.3011 / 4756b2f9d98d28cf2762d91eba1b48839a1edbe1
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Groovy / 1.5 / dcbcd1eeb8f61c8351e5dd1e51e11e52d186df35
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin LDAP / 2.2.0.608 / 79dc3fa4393a29667673c70182f3016288b548b7
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin License / 3.3.0.1341 / 6b63240af64c92afe9421ece35c99c70f1b97991
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Pitest / 0.9 / 0c011514ce025e5524fdcaa0c917eacf9d40f312
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SVG Badges / 3.0.1
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarABAP / 3.5.0.1080 / c37baa20eb9d24a27961ffe25d95ae4b716a3193
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 6.5.0.3766 / 6011a1e9fb002edb044ae3092d92bcfb7d9d8a2d
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarCFamily / 5.0.0.9359 / 6001ee3bce59e4bb9a17e5edbe40b4b99bc2901a
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarCOBOL / 4.1.1.2663 / 846e542a08e9e472f0216da6c30e66a96bcbc821
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 3.2.0.5506 / 86da09565f891121df248835665f5d8ed98772b6
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 4.15.0.12310 / 572454b93016ec73a53fe0e07b2ffdc356d21ba9
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.11.0.2485 / 741861a29e5f9a26c6c99c06268facb6c4f4a882
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPLI / 1.7.0.1117 / 2e07afcb9ecb6a2e96c980b48f7195b82ffdd014
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPLSQL / 3.2.0.1753 / 455f471cfde991b2cd1a86a939ff410bf3006059
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.8.0.1496 / 3fe3bc4d0273a5721ea2fb368dc45b1bb82fede3
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: Git / 1.3.0.869 / 4da53e3f9e55f4f2e5796625cb0c5768ed152079
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: SVN / 1.6.0.860 / 2111fdbd1dddda4ad6d4ed6486fd0b18c1010d3b
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarRPG / 2.2.0.1005 / 146ae32dade755799da4fa9655e865d8757fddfa
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarSwift / 3.1.0.2067 / 22db8593d10c835675860598372d41ba8d5f0b8e
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.1.0.1079 / 042c9e65239a47d92d305f9767f730b3cc1e5ed3
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTSQL / 1.1.0.2177 / e8811dfecb71d328c4deca89297bc100b270313c
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarVB / 4.2.0.248 / 75e2175c7464b814699abd6719b964c027717683
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarVB6 / 2.3.0.992 / 8c9e2016cb2e325b2fdeba4d303181b33bbbda4b
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.4.3.1027 / 39588245cecf538bb27be4e496ff303b0143d20b
INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Web / 2.5.0.476 / 636872f5d37fa7a440fe07d08d504e1a881225e5
INFO web[][c.c.sonar.CxPlugin] Checkmarx plugin loaded
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@6cdba960 [pattern=UrlPattern{inclusions=[/api/system/migrate_db/*, ...], exclusions=[/api/properties*, ...]}]
INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port ****
INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
INFO web[][c.q.p.s.b.f.PreferredFontProvider] SVGImageGenerator will be using font 'Verdana' in order to compute SVG badges width.
INFO web[][c.q.p.s.b.w.SVGImageGenerator] SVGImageGenerator is now ready.
INFO web[][c.q.p.s.b.w.g.QualityGateBadgeGenerator] QualityGateBadgeGenerator is now ready.
INFO web[][c.q.p.s.b.w.m.MeasureBadgeGenerator] MeasureBadgeGenerator is now ready.
INFO web[][c.q.p.s.b.w.c.CeActivityBadgeGenerator] CeActivityBadgeGenerator is now ready.
WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/editions/show_license
WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/views/definition
INFO web[][o.s.s.s.LogServerId] Server ID: *********
WARN web[][o.s.s.u.DeprecatedViews] Widget 'Checkmarx' (checkmarx-project-widget) is ignored. See org.sonar.api.web.page.PageDefinition to define pages.
WARN web[][o.s.s.u.DeprecatedViews] Page 'Checkmarx' (/cx_config/index) is ignored. See org.sonar.api.web.page.PageDefinition to define pages.
INFO web[][org.sonar.INFO] Security realm: LDAP
INFO web[][org.sonar.INFO] Security realm started
INFO web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
INFO web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
INFO web[][o.s.s.s.RegisterPlugins] Register plugins
INFO web[][o.s.s.s.RegisterMetrics] Register metrics
INFO web[][o.s.s.r.RegisterRules] Register rules
INFO web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
INFO web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile cpp/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile c/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile rpg/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way Recommended
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile py/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile pli/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile tsql/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile vb/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile plsql/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile cs/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile cobol/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile web/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile flex/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile xml/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/PSR-2
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Drupal
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile vbnet/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile abap/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile grvy/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile objc/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile swift/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way
INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way recommended
INFO web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
INFO web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@1c655890 [pattern=UrlPattern{inclusions=[/api/measures/component/*, ...], exclusions=[/api/properties*, ...]}]
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@4f45e5bd [pattern=UrlPattern{inclusions=[/api/properties/*], exclusions=[]}]
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@29719313 [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, ...], exclusions=[]}]
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@694be25 [pattern=UrlPattern{inclusions=[/sessions/init/*], exclusions=[]}]
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@61014c56 [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=[]}]
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@44a4512f [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=[]}]
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@67e2e76 [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=[]}]
INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@12d61b62 [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=[]}]
INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [components/component] ...
INFO web[][o.s.s.es.BulkIndexer] 201463 requests processed (3357 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 357701 requests processed (2603 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 506390 requests processed (2478 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 636193 requests processed (2163 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 766613 requests processed (2173 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 899827 requests processed (2220 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 899827 requests processed (0 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 899827 requests processed (0 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 899827 requests processed (0 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 899827 requests processed (0 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 899827 requests processed (0 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 899827 requests processed (0 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 899827 requests processed (0 items/sec)
INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [components/component] done | time=815372ms
INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [views/view] ...
INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [views/view] done | time=3122ms
INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [issues/issue] ...
INFO web[][o.s.s.es.BulkIndexer] 758897 requests processed (12648 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 1395232 requests processed (10605 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 1989212 requests processed (9899 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 2567812 requests processed (9643 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 3159399 requests processed (9859 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 3320485 requests processed (2684 items/sec)
INFO web[][o.s.s.es.BulkIndexer] 3320485 requests processed (0 items/sec)
ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalStateException: Unrecoverable indexation failures
at org.sonar.server.es.IndexingListener$1.onFinish(IndexingListener.java:39)
at org.sonar.server.es.BulkIndexer.stop(BulkIndexer.java:117)
at org.sonar.server.issue.index.IssueIndexer.doIndex(IssueIndexer.java:247)
at org.sonar.server.issue.index.IssueIndexer.indexOnStartup(IssueIndexer.java:95)
at org.sonar.server.es.IndexerStartupTask.indexUninitializedTypes(IndexerStartupTask.java:68)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at org.sonar.server.es.IndexerStartupTask.execute(IndexerStartupTask.java:55)
at java.util.Optional.ifPresent(Optional.java:159)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:84)
at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:80)
at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:196)
at org.sonar.server.platform.Platform.access$400(Platform.java:46)
at org.sonar.server.platform.Platform$1.lambda$doRun$1(Platform.java:121)
at org.sonar.server.platform.Platform$AutoStarterRunnable.runIfNotAborted(Platform.java:371)
at org.sonar.server.platform.Platform$1.doRun(Platform.java:121)
at org.sonar.server.platform.Platform$AutoStarterRunnable.run(Platform.java:355)
at java.lang.Thread.run(Thread.java:745)
INFO web[][o.s.p.StopWatcher] Stopping process
最佳答案
终于,我们的问题得到了解决。系统配置似乎是此问题的根源。我们在一台大约有的服务器上运行它。 25GB 可用空间并最终出现索引错误。使用具有更多可用空间的服务器有助于将 Sonarqube 成功升级到 v6.7.1。
关于Sonarqube升级到6.7 : Unrecoverable indexation failures,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48317780/
我找到了 Using SonarQube in Eclipse 并将提出一个针对 Python 的单独问题。但在这里我想更一般地询问如何在提交之前处理单个源文件时,如何使用 SonarQube 作为
我们之前在现已关闭的 SonarQube Users mailing list 上讨论过这个问题. 通过优化Postgre DB换了半周左右问题解决,然后又出现问题。 我们正在使用 Jenkins 1
自从更新到5.x以来,由于“权限不足”问题,我们的许多构建作业现在都失败了。如here中所述,应该在SonarQube 5.1中解决该问题,但实际上它没有得到解决,或者存在另一个与我们当前运行Sona
我已经有一段时间没有看过 SonarQube 了。最新版本看起来很有趣。 上次我查看这个产品时,他们有一个网站,他们通过 SonarQube 进程推送了各种流行的开源库(如 Tomcat、Active
在 SonarQube (5.6.4 LTS) 中有一个后台(项目分析)任务可视化的 View :(管理/项目/后台任务)。似乎任务是按顺序运行的(一次一个)。有些任务可能需要 40 分钟,这意味着其
今天我正在用 mysqldump 备份 MySQL,但我不确定是否需要从/opt/sonar 保存一些文件。请你能帮我一些指示吗? 除了 MySQL,我还需要在 Sonar 中备份什么? 最佳答案 我
我们希望每个用户都能收到一封关于他们在此分析中引入的新问题的电子邮件。 我在这里找到了这个请求,说它应该已经成为可能: http://jira.sonarsource.com/browse/SONAR
是否可以从一个项目导出代码覆盖率和 sonarqube 问题的排除项并导入到其他项目? 最佳答案 排除项是项目属性,因此您可以使用 /api/properties Web 服务自动从一个项目获取这些属
当 Sonar 抛出一个特定的编码规则违规时,开发人员(或就此而言任何授权用户)如何忽略它?假设弹出一条规则“不遵循文件命名约定”,有没有办法可以将其声明为误报并单击某个按钮以确保不会显示该编码规则违
我希望更改规则“左花括号应位于代码行的末尾”,因为我们使用了不同的约定。 提前致谢! 最佳答案 由于 Sonarqube 打算在规则上提供尽可能少的配置:您应该使用 key squid:LeftCur
我正在寻找一种在 SonarQube 中组织项目的方法,并发现我必须为此付费:http://www.sonarqube.org/bring-a-new-dimension-to-sonar-with-
SonarQube Server 5.1.2, Sonar-Runner 2.4 正如 Multi-moduleProject 中提供的那样我创建了一个项目结构 Accounts | ->invoic
在 SonarQube 的 Web UI 中,您可以根据多个条件过滤问题。但似乎没有一个是可以否定的。 我喜欢找出所有关键问题,即 不是 规则xyz。我目前从 Web UI 中只能看到选择我喜欢看的东
我已经设置了一个 jenkins-sonarqube-github 集成工作流程,其中 git 存储库中的拉取请求会触发一个 webhook,该 webhook 会启动一个 jenkins 作业,该作
有没有人设法让 SonarQube 与 Upsource 合作?我已经为 SonarQube 下载了 upsource-sonar-plugin-0.1-SNAPSHOT.jar 插件,并在我通过/s
我正在使用JaCoCo进行代码覆盖。单元测试报告是使用junit创建的,并且已正确导入,因此可以正确显示单元测试信息。 问题是,我收到错误消息: 没有有关每次测试的覆盖率的信息。 ,代码覆盖率显示单元
我有一个 Sonarcloud 帐户,我正在尝试使用 SonarQube.Scanner.MSBuild.exe 分析 Visual Studio 解决方案。我创建了一个 token 并将其作为 So
似乎有最新版本的新规则可用。 我有几个问题报告为“应正确使用 Printf 样式的格式字符串 (squid:S3457)” 我不明白 my case 中的描述和错误是什么: LOGGER.info("
这个问题我看了很多帖子,但是没找到答案所以才问。我将 Sonarqube 从 4.5 升级到 5.6,它工作正常,但质量配置文件是空的。我尝试使用备份/恢复选项恢复一个,但规则被忽略: image .
我实现了 SonarQube在服务器上,我做了大部分配置 远程 .因此,无论何时安装插件,都会重新启动 SonarQube是必需的,每次我都必须显式(手动)重启 SonarQube服务器 . 有没有办
我是一名优秀的程序员,十分优秀!