Expand my Community achievements bar.

SOLVED

AEM 5.6 to 6.2 Upgrade Fails with java.nio.channels.OverlappingFileLockException

Avatar

Level 1

Hi Forum,

We are attempting to do an in-place upgrade/migration per docs: https://docs.adobe.com/docs/en/aem/6-2/deploy/upgrade.html#par_title_1690331669

The upgrade is 500GB. It's taking place on Linux with SUDO access. I'm attempting to clarify which user should run the migration.

The upgrade fails after 10% with error:

21.06.2016 15:41:11.670 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:186  Using crx2oak.jar from /data/apps/aem/author/crx-quickstart/opt/helpers/crx2oak/crx2oak.jar

21.06.2016 15:41:11.924 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:188  crx2oak version 1.4.2, SHA-1 checksum 3ccbc05c422fbf5763ca913920b6d37a1e77cc91

21.06.2016 15:41:11.928 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:262  Preparing to migrate repository to TarMK

21.06.2016 15:41:11.944 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:320  Starting repository migration. Please monitor the progress in the upgrade.log file.

21.06.2016 15:41:12.841 *ERROR* [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:352  Repository migration failed.

java.lang.reflect.InvocationTargetException: null

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75]

        at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75]

        at com.adobe.granite.crx2oak.quickstart.extension.Main.<init>(Main.java:321) [crx2oak-quickstart-extension.jar:1.0.16]

        at com.adobe.granite.crx2oak.quickstart.extension.Main.main(Main.java:396) [crx2oak-quickstart-extension.jar:1.0.16]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75]

        at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75]

        at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:862) [AEM_6.2_Quickstart.jar:0.0.0.0_0_0_6_2_]

        at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:940) [AEM_6.2_Quickstart.jar:0.0.0.0_0_0_6_2_]

Caused by: java.nio.channels.OverlappingFileLockException: null

        at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) ~[na:1.7.0_75]

        at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) ~[na:1.7.0_75]

        at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1011) ~[na:1.7.0_75]

        at java.nio.channels.FileChannel.lock(FileChannel.java:1052) ~[na:1.7.0_75]

        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<init>(FileStore.java:498) ~[na:na]

        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<init>(FileStore.java:91) ~[na:na]

        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore$Builder.create(FileStore.java:359) ~[na:na]

        at org.apache.jackrabbit.oak.upgrade.cli.node.SegmentFactory.create(SegmentFactory.java:52) ~[na:na]

        at org.apache.jackrabbit.oak.upgrade.cli.node.StoreFactory.create(StoreFactory.java:56) ~[na:na]

        at org.apache.jackrabbit.oak.upgrade.cli.MigrationFactory.createTarget(MigrationFactory.java:73) ~[na:na]

        at org.apache.jackrabbit.oak.upgrade.cli.MigrationFactory.createSidegrade(MigrationFactory.java:62) ~[na:na]

        at org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.sidegrade(OakUpgrade.java:69) ~[na:na]

        at org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.migrate(OakUpgrade.java:55) ~[na:na]

        at com.adobe.granite.crx2oak.CRX2Oak.main(CRX2Oak.java:78) ~[na:na]

        ... 12 common frames omitted

MAIN process: shutdown hook

MAIN process: exiting

1 Accepted Solution

Avatar

Correct answer by
Level 1

Probably a nevermind on this. I was able to SU to the AEM user and found a running AEM process. This is likely the cause of this issue. If it's not I'll post another reply, but otherwise consider this closed.wink

Thanks,

Coloradobaugh

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

Probably a nevermind on this. I was able to SU to the AEM user and found a running AEM process. This is likely the cause of this issue. If it's not I'll post another reply, but otherwise consider this closed.wink

Thanks,

Coloradobaugh