Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2416

OverlappingFileLockException when cloning an instance

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.2, 3.0.0
    • 2.3.3, 2.4.0, 3.0.0
    • None
    • None

    Description

      Hitting an OverlappingFileLockException when I try to clone an instance:

      [janstey@bender apache-karaf-2.3.2]$ ./bin/karaf 
              __ __                  ____      
             / //_/____ __________ _/ __/      
            / ,<  / __ `/ ___/ __ `/ /_        
           / /| |/ /_/ / /  / /_/ / __/        
          /_/ |_|\__,_/_/   \__,_/_/         
      
        Apache Karaf (2.3.2)
      
      Hit '<tab>' for a list of available commands
      and '[cmd] --help' for help on a specific command.
      Hit '<ctrl-d>' or type 'osgi:shutdown' or 'logout' to shutdown Karaf.
      
      karaf@root> admin:clone --ssh-port 8102 --rmi-server-port 44445 --rmi-registry-port 1100 root myClone
      Error executing command: java.nio.channels.OverlappingFileLockException
      karaf@root> log:display-exception
      java.nio.channels.OverlappingFileLockException
      	at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)[:1.7.0_11]
      	at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)[:1.7.0_11]
      	at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:972)[:1.7.0_11]
      	at java.nio.channels.FileChannel.lock(FileChannel.java:1052)[:1.7.0_11]
      	at org.apache.karaf.util.properties.FileLockUtils.execute(FileLockUtils.java:66)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.util.properties.FileLockUtils.execute(FileLockUtils.java:94)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.admin.internal.AdminServiceImpl.execute(AdminServiceImpl.java:215)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.admin.internal.AdminServiceImpl.getKarafPort(AdminServiceImpl.java:656)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.admin.internal.AdminServiceImpl.getInstanceSshPort(AdminServiceImpl.java:632)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.admin.internal.AdminServiceImpl$10.call(AdminServiceImpl.java:549)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.admin.internal.AdminServiceImpl$10.call(AdminServiceImpl.java:522)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.admin.internal.AdminServiceImpl$1.call(AdminServiceImpl.java:218)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.util.properties.FileLockUtils$2.call(FileLockUtils.java:100)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.util.properties.FileLockUtils.execute(FileLockUtils.java:68)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.util.properties.FileLockUtils.execute(FileLockUtils.java:94)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.admin.internal.AdminServiceImpl.execute(AdminServiceImpl.java:215)[45:org.apache.karaf.admin.core:2.3.2]
      	at org.apache.karaf.admin.internal.AdminServiceImpl.cloneInstance(AdminServiceImpl.java:522)[45:org.apache.karaf.admin.core:2.3.2]
      	at Proxy6a078d9e_acff_4e40_8793_093812aa05f5.cloneInstance(Unknown Source)[:]
      	at org.apache.karaf.admin.command.CloneCommand.doExecute(CloneCommand.java:57)[34:org.apache.karaf.admin.command:2.3.2]
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.2]
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:173)[14:org.apache.karaf.shell.console:2.3.2]
      	at java.lang.Thread.run(Thread.java:722)[:1.7.0_11]
      

      Will attach fix for this shortly.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ffang Freeman Yue Fang
            janstey Jonathan Anstey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment