On 6.2.17 9:47 , Torgeir Veimo wrote:
That is very odd. The /Users/tor/content/karriere/oak path definitely
contains an old segment repository. I'm currently accessing it using the
deprecated org.apache.jackrabbit.oak.plugins.segment code in 1.6.0 until I
can get it migrated;

segmentStore = FileStore.builder(new File(oakRepositoryPath))
  .withMaxFileSize(256).build();
nodeStore = SegmentNodeStore.builder(segmentStore)
  .build();

In that case there might be something wrong with the migration. Tomek Rekawek might be able to help on that side.

Michael


On 6 February 2017 at 18:30, Michael Dürig <[email protected]> wrote:


Hi,

This is the exception you get when trying to open an newer storage format
with an older version of the code (newer versions of the code will be more
helpful in the wording of the error).

Apparently

segment-old:/Users/tor/content/karriere/oak ~/content/karriere/oak-16

points to a migrate store already. Migrated to Oak Segment Tar, that is.

Michael


On 2.2.17 3:50 , Torgeir Veimo wrote:

Am running oak-upgrade with the follow parameters and output. How do I
determine what is the exact problem?


Torgeirs-MacBook-Pro:jackrabbit-oak-1.5.18 tor$ java -jar
./oak-upgrade/target/oak-upgrade-1.5.18.jar --copy-binaries
segment-old:/Users/tor/content/karriere/oak ~/content/karriere/oak-16

03.02.2017 00:39:21.037 [main] *INFO*
 org.apache.jackrabbit.oak.upgrade.cli.parser.MigrationOptions -
copyVersions parameter set to 1970-01-01

03.02.2017 00:39:21.040 [main] *INFO*
 org.apache.jackrabbit.oak.upgrade.cli.parser.MigrationOptions -
copyOrphanedVersions parameter set to 1970-01-01

03.02.2017 00:39:21.040 [main] *INFO*
 org.apache.jackrabbit.oak.upgrade.cli.parser.MigrationOptions - Cache
size: 256 MB

03.02.2017 00:39:21.042 [main] *INFO*
 org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments - Source:
SEGMENT[segment-old:/Users/tor/content/karriere/oak]

03.02.2017 00:39:21.044 [main] *INFO*
 org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments -
Destination:
SEGMENT_TAR[/Users/tor/content/karriere/oak-16]

Exception in thread "main" java.lang.IllegalStateException

at com.google.common.base.Preconditions.checkState(Precondition
s.java:134)

at
org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<
init>(FileStore.java:403)

at
org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<
init>(FileStore.java:92)

at
org.apache.jackrabbit.oak.plugins.segment.file.FileStore$
ReadOnlyStore.<init>(FileStore.java:1449)

at
org.apache.jackrabbit.oak.plugins.segment.file.FileStore$
ReadOnlyStore.<init>(FileStore.java:1446)

at
org.apache.jackrabbit.oak.plugins.segment.file.FileStore$
Builder.buildReadOnly(FileStore.java:393)

at
org.apache.jackrabbit.oak.upgrade.cli.node.SegmentFactory.ha
sExternalBlobReferences(SegmentFactory.java:119)

at
org.apache.jackrabbit.oak.upgrade.cli.node.StoreFactory.hasE
xternalBlobReferences(StoreFactory.java:67)

at
org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments.
srcUsesEmbeddedDatastore(StoreArguments.java:113)

at
org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.migrate(
OakUpgrade.java:64)

at org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.main(OakUpg
rade.java:48)


--
-Tor




Reply via email to