Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54711

jenkins-jobs.mv.db failed

XMLWordPrintable

      Hi, we got the following problem: we see a problem in the jenkins log, the file update date was more than a day in the system, in a temporary solution, the jenkins was restarted, after a while it continued to appear.
      Jenkins 2.138.2
      The log in the attachment

      SELECT ID FROM JENKINS_BUILD WHERE JOB_ID=? AND NUMBER=? [50000-196]SELECT ID FROM JENKINS_BUILD WHERE JOB_ID=? AND NUMBER=? [50000-196] 
         at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) 
         at org.h2.message.DbException.get(DbException.java:168) 
         at org.h2.message.DbException.convert(DbException.java:295) 
         at org.h2.command.Command.executeQuery(Command.java:215) 
         at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:111) 
         at org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginH2Dao.getOrCreateBuildPrimaryKey(PipelineMavenPluginH2Dao.java:400) 
         ... 19 more
      Caused by: java.lang.IllegalStateException: Reading from nio:/u01/jenkins/jenkins_home/jenkins-jobs/jenkins-jobs.mv.db failed; file length -1 read length 512 
         at 99917712 [1.4.196/1] 
         at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:765) 
         at org.h2.mvstore.DataUtils.readFully(DataUtils.java:435) 
         at org.h2.mvstore.FileStore.readFully(FileStore.java:98) 
         at org.h2.mvstore.Page.read(Page.java:190) 
         at org.h2.mvstore.MVStore.readPage(MVStore.java:1952) 
         at org.h2.mvstore.MVMap.readPage(MVMap.java:741) 
         at org.h2.mvstore.Page.getChildPage(Page.java:217) 
         at org.h2.mvstore.Cursor.min(Cursor.java:129) 
         at org.h2.mvstore.Cursor.hasNext(Cursor.java:36) 
         at org.h2.mvstore.db.TransactionStore$TransactionMap$1.fetchNext(TransactionStore.java:1392) 
         at org.h2.mvstore.db.TransactionStore$TransactionMap$1.<init>(TransactionStore.java:1388) 
         at org.h2.mvstore.db.TransactionStore$TransactionMap.keyIterator(TransactionStore.java:1383) 
         at org.h2.mvstore.db.TransactionStore$TransactionMap.keyIterator(TransactionStore.java:1371) 
         at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:309) 
         at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:254) 
         at org.h2.index.BaseIndex.find(BaseIndex.java:128) 
         at org.h2.index.IndexCursor.find(IndexCursor.java:169) 
         at org.h2.table.TableFilter.next(TableFilter.java:468) 
         at org.h2.command.dml.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1452) 
         at org.h2.result.LazyResult.hasNext(LazyResult.java:79) 
         at org.h2.result.LazyResult.next(LazyResult.java:59) 
         at org.h2.command.dml.Select.queryFlat(Select.java:519) 
         at org.h2.command.dml.Select.queryWithoutCache(Select.java:625) 
         at org.h2.command.dml.Query.queryWithoutCacheLazyCheck(Query.java:114) 
         at org.h2.command.dml.Query.query(Query.java:371) 
         at org.h2.command.dml.Query.query(Query.java:333) 
         at org.h2.command.CommandContainer.query(CommandContainer.java:113) 
         at org.h2.command.Command.executeQuery(Command.java:201)
         ... 21 more
      Caused by: java.nio.channels.ClosedChannelException 
         at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:110) 
         at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:721) 
         at org.h2.store.fs.FileNio.read(FilePathNio.java:74) 
         at org.h2.mvstore.DataUtils.readFully(DataUtils.java:421)
         ... 47 more
      

            cleclerc Cyrille Le Clerc
            vnenashev Владислав Ненашев
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: