[ 
https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17073183#comment-17073183
 ] 

Robert Munteanu commented on SLING-9118:
----------------------------------------

[~benradey], [~carlosmunoz] - I think I found a solution, and it's as "simple" 
as upgrading to the latest version of Oak.

Can you try rebasing your application on top of the latest changes from 
https://github.com/apache/sling-org-apache-sling-starter/tree/feature/SLING-8803
 ? This is basically Oak 1.26.0, with the note that it requires 
org.apache.sling.jcr.oak.server 1.2.4, which is not released. You could either:

- install the bundle from the staging repository ( 
https://repository.apache.org/content/groups/staging/org/apache/sling/org.apache.sling.jcr.oak.server/1.2.4/
 ) 
- rebuild the bundle locally from the release tag ( 
https://github.com/apache/sling-org-apache-sling-jcr-oak-server/tree/org.apache.sling.jcr.oak.server-1.2.4
 )

> Sling fails to start when database exists but 'sling' directory is missing
> --------------------------------------------------------------------------
>
>                 Key: SLING-9118
>                 URL: https://issues.apache.org/jira/browse/SLING-9118
>             Project: Sling
>          Issue Type: Bug
>            Reporter: Ben Radey
>            Assignee: Robert Munteanu
>            Priority: Major
>         Attachments: drop-mongo.sh, run-mongo.sh, run-sling-initial.sh, 
> run-sling-second.sh
>
>
> # Create a persistent mongodb to use with Sling.
>  # Start sling using the mongodb.
>  # Stop sling.
>  # Remove 'sling' directory.
>  # Attempt to restart sling. Ultimately, sling fails to start.
> ----
> Steps to reproduce with attached scripts:
> # Run [^run-mongo.sh] . This creates a MongoDB 3.6 container named 
> _mongo-sling_
> # Run [^run-sling-initial.sh]. This starts up Sling in the oak_mongo runmode, 
> shuts it down after it's (probably) started up
> # Run [^run-sling-second.sh]. This moves away the sling directory and starts 
> up a new instance. This always fails
> For cleanup, the [^drop-mongo.sh] script stops and removes the _mongo-sling_ 
> container.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to