Hi Robert I was looking into this a little bit more and it is a severe issue when Sling 11 is started with the Sling Starter Maven Plugin. In that case I cannot login whatever I try. That said when I shut down the test and launch the same JAR file manually (java -jar) it works just fine as I have added an OSGi configuration to prevent the OSGi Installer HC to test bundles.
This does not seem to be an issue with Sling 12 but I ran into issues with that so I had to go back to Sling 11. - Andy > On Mar 9, 2020, at 9:56 AM, Robert Munteanu <[email protected]> wrote: > > On Sat, 2020-03-07 at 19:23 -0800, Andreas Schaefer wrote: >> Hi Robert >> >> Sorry for the late reply but it was working for a while using Sling >> 12-SNAPSHOT and so I used that one. >> >> That said now I am having issues with that version and I don’t want >> to fix stuff that is broken due to the development of sling. >> >> So I went back to Sling 11 and the problems. What I am seeing is that >> some bundles remain in the installed phase and hence the starter page >> with the link to the login never shows up. Now these bundles are mine >> and they can break due to development. That said I should still be >> able to login. >> Maybe the check should be limited to foundation bundles. >> >> Anyhow eventually I could get around it with: >> >> http://admin:admin@localhost:8080/system/console/bundles >> >> As without bundles there is a redirect prevent the access. >> >> - Andy >> >> P.S.: let me know if you want to have a ticket for it. > > Does it only affect Sling 11? If it is, then I would say it's "fixed" > in 12-SNAPSHOT, as that would be the next version. > > It might be worth filing an issue just to point people to a permanent > URL where this is discussed and (ideally) the fix described, e.g. > update bundles/configs. > > Robert > >> >> >>> On Dec 4, 2019, at 12:45 AM, Robert Munteanu <[email protected]> >>> wrote: >>> >>> Hi Andy, >>> >>> On Tue, 2019-12-03 at 16:46 -0800, Andreas Schaefer wrote: >>>> Hi >>>> >>>> I am running into a problem with Sling 11 on Java 8. When I >>>> launch >>>> Sling 11 and then install Peregrine on it everything works just >>>> fine. >>>> But then I restart Sling I am not able to login anymore as the >>>> login >>>> page will tell me that Sling is starting up. In the logs I >>>> discovered >>>> an OSGi cyclic dependencies which makes a health check fail and >>>> with >>>> it I cannot login into Sling anymore. >>>> >>>> Unfortunately I cannot force the login (/system/sling/form/login) >>>> as >>>> this does redirect back to the landing page. >>>> >>>> Is there a way to at least get access to the OSGi console? >>> >>> Have you tried forcing basic authentication, e.g. entering >>> >>> http://admin:admin@localhost:8080/system/console >>> >>> in the browser location bar? >>> >>> I think that worked for me. >>> >>> Additionally, does the problem still exist with the latest Sling >>> SNAPSHOT? If it does, please file a bug. >>> >>> Thanks! >>> Robert
