原因:java.lang.IllegalStateException:文件在块485734中损坏,预期页面长度为4..256,得到1769366861 [1.4.199/6]Jenkins错误

whitzsjs  于 2023-08-03  发布在  Jenkins
关注(0)|答案(1)|浏览(172)

突然我的Jenkins开始落后。每次短暂挂起都伴随着一条错误消息,该消息指向同一个损坏的块。

05-Jan-2021 12:16:39.022 WARNING [Handling POST /jenkins/ajaxExecutors from 127.0.0.1 : http-nio-8181-exec-2] hudson.init.impl.InstallUncaughtExceptionHandler.handleException Caught unhandled exception with ID 917626d3-7f6f-49ab-bb23-e3ea74dd9497
        javax.servlet.ServletException: Filter execution threw an exception
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:169)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:51)
...skipping...
                        at org.h2.command.Command.executeUpdate(Command.java:259)
                        at org.h2.jdbc.JdbcConnection.rollbackInternal(JdbcConnection.java:1603)
                        at org.h2.jdbc.JdbcConnection.rollback(JdbcConnection.java:563)
                        at com.zaxxer.hikari.pool.ProxyConnection.close(ProxyConnection.java:257)
                        at org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginH2Dao.isEnoughProductionGradeForTheWorkload(PipelineMavenPluginH2Dao.java:69)
                        ... 155 more
                Caused by: java.lang.IllegalStateException: File corrupted in chunk 485734, expected page length 4..256, got 1769366861 [1.4.199/6]
                        at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:883)
                        at org.h2.mvstore.MVStore.readBufferForPage(MVStore.java:1055)
                        at org.h2.mvstore.MVStore$ChunkIdsCollector.visit(MVStore.java:1606)
                        at org.h2.mvstore.Page.readChildrenPositions(Page.java:274)
                        at org.h2.mvstore.MVStore$ChunkIdsCollector.visit(MVStore.java:1607)
                        at org.h2.mvstore.MVStore$ChunkIdsCollector.visit(MVStore.java:1571)
                        at org.h2.mvstore.MVStore$ChunkIdsCollector.visit(MVStore.java:1603)
                        at org.h2.mvstore.MVStore.inspectVersion(MVStore.java:1513)
                        at org.h2.mvstore.MVStore.collectReferencedChunks(MVStore.java:1458)
                        at org.h2.mvstore.MVStore.freeUnusedChunks(MVStore.java:1407)
                        at org.h2.mvstore.MVStore.freeUnusedIfNeeded(MVStore.java:1400)
                        at org.h2.mvstore.MVStore.storeNow(MVStore.java:1208)
                        at org.h2.mvstore.MVStore.store(MVStore.java:1190)
                        at org.h2.mvstore.MVStore.tryCommit(MVStore.java:1135)
                        at org.h2.mvstore.MVStore.writeInBackground(MVStore.java:2763)
                        at org.h2.mvstore.MVStore$BackgroundWriterThread.run(MVStore.java:3123)
        Caused by: [CIRCULAR REFERENCE: java.lang.IllegalStateException: File corrupted in chunk 485734, expected page length 4..256, got 1769366861 [1.4.199/6]]

字符串
一个简单的重新启动没有帮助,所以我试图恢复h2数据库,但这最终与:

java -cp h2-1.4.199.jar org.h2.tools.Recover 
Error: java.lang.IllegalArgumentException: timeNanos out of range 208648290000104


系统没有崩溃,并且在问题开始时没有安装更新。
所以我没办法了。过去有人见过/解决过这种错误吗?

cmssoen2

cmssoen21#

该错误是由pipeline maven插件引起的。禁用后,性能恢复正常。

相关问题