You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2020/05/08 16:22:00 UTC

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

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

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

[~carlosmunoz], [~benradey] - I gave this a try using the Sling Feature model and it seems to work perfectly for me. I converted the Sling Starter to the Feature Model ( so same bundles, same configs ) and launched it. Would you like to try that as well?

I have uploaded [^fm-launch.zip] , which contains:

- the generated feature model files
- the latest SNAPSHOT build of the feature launcher built from https://github.com/apache/sling-org-apache-sling-feature-launcher
- a script that launches it all (run-fm.sh)

Note that the 'sling' directory is now 'launcher', so the workflow would be:

1. Start up Sling with {{run-fm.sh}}
2. Wait for it to start
3. Stop Sling
4. Remove the launcher directory
5. Launch Sling again with {{run-fm.sh}}

I noticed no instability with this setup. Note that we are planning to move to the feature model, so this kind of setup is definitely supported.



> 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, error.log, fm-launch.zip, karaf.log, recreateSlingReplicaSet.sh, run-mongo.sh, run-sling-initial.sh, run-sling-second.sh, sling-startup-error.log.txt
>
>
> # 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)