Hi,

I haven't used oak-run for a very long time by myself; but IIRC it creates
its own repository instance (based on the provided files and
configuration); that means when you have a running instance and invoke
oak-run on the same repository (files), you are likely to end up with a
corrupted state.

So, shutdown your instance, and then you can safely use oak-run to modify
content on it.

Jörg


Am Fr., 26. Sept. 2025 um 09:08 Uhr schrieb Raffaele Gambelli
<[email protected]>:

> Thanls Jörg I've just created this
> https://issues.apache.org/jira/browse/OAK-11958
>
> I would like to ask help in understanding index creation or updating with
> oak-run, I've tried to update my index, the oak-run output seems stating
> all is right but in my application (which I never restarted since oak-run
> execution) the query with contains using that property I've just added to
> index, continues to find no results, stating in logs that there are no
> indexes.
>
> Here it is oak-run output:
>
> java -jar oak-run-1.86.0.jar index
> mongodb://wm-default_user:wm-default_password@mongodb:27017/wm-default?authSource=wm-default
> --fds-path /opt/platform
> -core-server/wr_home/repositories/default-mariadb/repository/datastore
> --index-out-dir=output/indexing-result --index-temp-dir=output/temp
> --ignore-missing-tika-dep --reindex --index-paths
> =/oak:index/wm-index --index-definitions-file=index-definitions.json
> --read-write
> Apache Jackrabbit Oak 1.86.0
> 09:00:12 - Command line arguments used for indexing
> [mongodb://wm-default_user:wm-default_password@mongodb:27017/wm-default?authSource=wm-default
> --fds-path
> /opt/platform-core-server/wr_home/repositories/default-mariadb/repository/datastore
> --index-out-dir=output/indexing-result --index-temp-dir=output/temp
> --ignore-missing-tika-dep --reindex --index-paths=/oak:index/wm-index
> --index-definitions-file=index-definitions.json --read-write]
> 09:00:13 - Created checkpoint [r19984d28673-0-4] for indexing
> 09:00:13 - Proceeding to reindex with read only access to NodeStore
> 09:00:13 - Persistent cache set to
> [/opt/platform-core-server/oak-run/output/temp/cache,size=4096,binary=0,-nodes,-children]
> 09:00:13 - Initializing cache size to 2076180480 (2.1 GB)
> 09:00:13 - Configuring cache for single threaded access
> 09:00:13 - Proceeding to index [/oak:index/wm-index] upto checkpoint
> r19984d28673-0-4 {}
> 09:00:13 - Updating index definition at path [/oak:index/wm-index].
> Changes are
> 09:00:13 -
> ^"/reindexCount":null^"/seed":null^"/reindex":null^"/:version":null
> 09:00:13 - Updating index definition at path [/oak:index/wm-index].
> Changes are
> 09:00:13 -
> ^"/reindexCount":null^"/seed":null^"/reindex":null^"/:version":null
> 09:00:13 - Switched the async lane for indexes at [/oak:index/wm-index] to
> offline-reindex-async and marked them for reindex
> 09:00:13 - Setting RAMBufferSize for LuceneIndexWriter (configurable via
> system property 'oak.index.ramBufferSizeMB') to 32 MB
> 09:00:13 - Reindexing will be performed for following indexes:
> [/oak:index/wm-index]
> 09:00:17 - Indexing report
>     - /oak:index/wm-index*(5148)
>
> 09:00:17 - Reindexing completed
> 09:00:17 - Thread/Memory report. Time since start of monitoring: 00:00:03
>   Heap memory usage: init = 260046848(253952K) used = 147221872(143771K)
> committed = 448790528(438272K) max = 4152360960(4055040K), Non-heap memory
> usage: init = 7667712(7488K) used = 53475136(52221K) committed =
> 56360960(55040K) max = -1(-1K)
>   Collector: G1 Young Generation, collectionCount: 9, collectionTime: 129
> ms (3.71%)
>   Collector: G1 Old Generation, collectionCount: 0, collectionTime: 0 ms
> (0.00%)
>   Thread main/1                     - cpuTime:    2684 (77.19%),
> userTime:    2050 (58.96%)
> 09:00:17 - Switched the async lane for indexes at [/oak:index/wm-index]
> back to there original lanes
> 09:00:17 - Total size of index data generated: 779780 (761 KB)
>   - wmindex: 1 files, 779780 (761 KB)
> 09:00:17 - Total size of index data generated: 779780 (761 KB)
>   - wmindex: 1 files, 779780 (761 KB)
> 09:00:17 - Indexing completed for indexes [/oak:index/wm-index] in
> PT3.689123941S (3689 ms) and index files are copied to
> /opt/platform-core-server/oak-run/output/indexing-result/indexes
> 09:00:17 - Proceeding to import index data from
> [/opt/platform-core-server/oak-run/output/indexing-result/indexes] by
> connecting to NodeStore in read-write mode
> 09:00:17 - Persistent cache set to
> [/opt/platform-core-server/oak-run/output/temp/cache,size=4096,binary=0,-nodes,-children]
> 09:00:17 - Initializing cache size to 2076180480 (2.1 GB)
> 09:00:17 - Proceeding to import [/oak:index/wm-index] indexes from
> /opt/platform-core-server/oak-run/output/indexing-result/indexes
> 09:00:17 - IndexImporterStepExecutor:SWITCH_LANE, count:1
> 09:00:17 - Done with switching of index lanes before import
> 09:00:17 - IndexImporterStepExecutor:IMPORT_INDEX_DATA, count:1
> 09:00:17 - Importing index data for /oak:index/wm-index
> 09:00:17 - Updating index definition at path [/oak:index/wm-index].
> Changes are
> 09:00:17 -
> ^"/async":["wm-default-repository-async"]^"/reindexCount":1^"/seed":1466594285934495898^"/refresh":true^"/async-previous":null^"/indexImportState":null
> 09:00:18 - Done with importing of index data
> 09:00:18 - IndexImporterStepExecutor:BRING_INDEX_UPTODATE, count:1
> 09:00:18 - Acquired the lock for async indexer lane
> [wm-default-repository-async]
> 09:00:18 - Proceeding to update imported indexes [/oak:index/wm-index] to
> checkpoint [r19984cc25a2-0-3] for lane [wm-default-repository-async]
> 09:00:18 - Imported index is updated to repository state at checkpoint
> [r19984cc25a2-0-3] for indexing lane [wm-default-repository-async]
> 09:00:18 - Remove the lock for async indexer lane
> [wm-default-repository-async]
> 09:00:18 - Import done for indexes [/oak:index/wm-index]
> 09:00:18 - Done with bringing index up-to-date
> 09:00:18 - IndexImporterStepExecutor:RELEASE_CHECKPOINT, count:1
> 09:00:18 - Released the referred checkpoint [r19984d28673-0-4]
> 09:00:18 - Done with releasing checkpoint
> 09:00:18 - Done with removing index import state
> 09:00:18 - Indexes imported successfully in PT1.035935112S (1035 ms)
> 09:00:18 - Indexing completed and imported successfully in PT5.56570709S
> (5565 ms)
>
> Thanks
>
> Cordiali saluti / Best regards,
>
> Raffaele Gambelli
> Application Architect
>
>
> ________________________________
> From: Jörg Hoh <[email protected]>
> Sent: Thursday, September 25, 2025 9:21 AM
> To: [email protected] <[email protected]>
> Subject: Re: Is oak-run readme outdated?
>
> Hi Raffaele,
>
> definitely possible ... can you please create a ticket for it?
>
> thanks,
> Jörg
>
> Am Mi., 24. Sept. 2025 um 16:59 Uhr schrieb Raffaele Gambelli
> <[email protected]>:
>
> > Hi all,
> >
> > is it possible that
> >
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fjackrabbit-oak%2Fblob%2Ftrunk%2Foak-run%2FREADME.md&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990503513%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=K%2F5OzOzl8N80g2gPA0KASJCrie7XflT7quTfj5vLPfY%3D&reserved=0
> <https://github.com/apache/jackrabbit-oak/blob/trunk/oak-run/README.md> is
> > outdated?
> >
> > I've just found other interesting command like "index" with its options,
> > found them here
> >
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fexperienceleague.adobe.com%2Fit%2Fdocs%2Fexperience-manager-learn%2Ffoundation%2Fadministration%2Fuse-oak-run-jar-to-manage-indexes&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990526078%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=kcvfuQ%2BhzHebazwvyX7Y3WRk1Hp2RHih%2FWG2R8wGsoY%3D&reserved=0
> <
> https://experienceleague.adobe.com/it/docs/experience-manager-learn/foundation/administration/use-oak-run-jar-to-manage-indexes
> >
> >
> > Is there a reason to hide those invoices, or is it simply official
> > documentation that needs updating?
> >
> >
> > Cordiali saluti / Best regards,
> >
> > *Raffaele Gambelli*
> > *Application Architect*
> > *E*  *[email protected] <[email protected]>*
> > *M* +39 3371641888
> >
> > [image: CEGEKA]
> > Via Ettore Cristoni, 84
> > IT-40033 Bologna (IT), Italy
> > *T* +39 02 2544271
> > *
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cegeka.com%2F&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990539079%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ZW2gBg9Qf3vb3983xyhZyGZqTag21tk0NIn6s3KWPJg%3D&reserved=0
> <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.cegeka.com%2F&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990551734%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Ev%2FGr2ZBTY7RdoFitLhCEDqhXBfMDF5af1jbCamaOTY%3D&reserved=0
> <https://www.cegeka.com/>> *
> >
> >
> >
> >
> > *Dichiarazione di Riservatezza
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_BvPtSD536JEIwT3z%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990563987%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=TZNAwKXC4fTkj78fTbbtxrakfufRLcUh0HYlU%2F8ryRY%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_BvPtSD536JEIwT3z/go/uHO
> >>*
> >
> > Le informazioni contenute nella mail sono riservate. Se si rende conto di
> > non essere il destinatario corretto della mail, la preghiamo di segnalare
> > l'errore al mittente e di cancellare immediatamente il messaggio.
> > L’utilizzo improprio di informazioni riservate può comportare sanzioni.
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_BvPtSD536JEIwT3z%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990575840%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=65YX9a8dyC5PMGQ0vpehEhQW0iGG1WYMKe7sRnogYzA%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_BvPtSD536JEIwT3z/go/uHO
> >>
> >
> > Protezione dei dati personali
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_BvPtSD536JEIwT3z%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990588698%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ul%2FK99ZDdAwtOnauyOmkQWpXrRO5FOZTW6e3Y4Hbo3E%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_BvPtSD536JEIwT3z/go/uHO
> >>
> >
> > La informiamo che i suoi dati saranno trattati da Cegeka nel rispetto
> > delle disposizioni di legge applicabili (D. Lgs 196/2003 e Regolamento UE
> > 679/2016). Per maggiori dettagli può consultare le nostre informative
> > privacy al link
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_BvPtSD536JEIwT3z%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990602998%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2FH5p6kQpNFLbYOMJ41aMq6kEwkdT8KAOGOOXaqwIKYI%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_BvPtSD536JEIwT3z/go/uHO
> >>
> >
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.cegeka.com%2Fit%2Finformazioni-sulla-privacy&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990618502%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=jRdyr7vE7Ub%2BEnqoFdcXUErMNo9HWVAsbZfTrnmUo7Q%3D&reserved=0
> <https://www.cegeka.com/it/informazioni-sulla-privacy>
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_BvPtSD536JEIwT3z%2Fgo%2FNsT&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990634951%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=s6y6XJtLxMJRjqMdkaAoHD3RmewJ4qWJDU19Do6OnqQ%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_BvPtSD536JEIwT3z/go/NsT
> >>.
> >
> >
> >
> > [image: Signature 365 Pixel]
> >
>
>
> --
>
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcqdump.joerghoh.de%2F&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C258144d46b444984ce3508ddfc042990%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638943816990648456%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=JRHtU9pWy9UHm4SlO%2BreBEVKk0CV87ZLss5tT8VX%2BTk%3D&reserved=0
> <https://cqdump.joerghoh.de/>
>


-- 
https://cqdump.joerghoh.de

Reply via email to