headwirecom / peregrine-cms

an api first, head optional cms with based on vuejs and apache sling
Apache License 2.0
52 stars 31 forks source link

Composum broken in develop-sling12 #569

Open reggie7 opened 4 years ago

reggie7 commented 4 years ago

Something is wrong with Composum in develop-sling12:

Composum

The cause is a js exception, not the above mentioned access issues:

js

The instance was started just like in 568.

reusr1 commented 4 years ago

@reggie7 have you tried clearing caches? I currently do not see this issue but I also remember somebody else having an issue with composum and sling9 that was caused by a javascript error like this.

reggie7 commented 4 years ago

Sadly I have cleared cache, tried incognito too...

cmrockwell commented 4 years ago

Some questions that maybe will help figure out what's happening.

  1. What does java -version report for Java version?
  2. Can you report details about the bundles http://localhost:8080/system/console/bundles
    • How many active? How many installed? Any other statuses?
  3. Do you see response codes 503 for any URL's? For example, does http://localhost:8080/system/sling/form/login work?

I have other hunches, but lets start here

reusr1 commented 4 years ago

@reggie7 and you try again? for me at least this is fixed by https://github.com/headwirecom/peregrine-cms/commit/f4735263c769e37aafcffddbae72595063aad7c2

reggie7 commented 4 years ago

@cmrockwell

W:\>java -version
java version "11.0.7" 2020-04-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.7+8-LTS, mixed mode)

All bundles up and running. No 503, login page is working.

cmrockwell commented 4 years ago

My understanding was that it was resolved by ensuring settings for the admin allowlist were properly effective. As mentioned in this Composum issue 105, their bundles require loginAdministrative, and that needs to be configured.

If someone experiences this type of issue, they can confirm first whether /system/console/configMgr has the admin settings shown below

Screen Shot 2020-10-16 at 11 06 47 AM

Specifically they can confirm there is an entry for composum

Screen Shot 2020-10-16 at 11 06 36 AM

This configuration should be applied for Composum, based on this feature definition https://github.com/headwirecom/peregrine-cms/blob/develop-sling12/sling/peregrine-builder-sling-12/src/main/features/app/composum.json

I've heard reports that possibly restarting the instance might be needed, ymmv. However if not, then possibly review how Peregrine is launched in Sling12 https://github.com/headwirecom/peregrine-cms/blob/develop-sling12/sling/peregrine-builder-sling-12/README.md

Hopefully that helps

reusr1 commented 3 years ago

closing this issue as this is solved by using the launcher/far from https://github.com/peregrine-cms/peregrine-builder - we had a bad repoinit script and an older version of composum configured

reggie7 commented 3 years ago

@reusr1 I don't think the issue is fixed. Just checked it on Windows machine on peregrine-builder/develop + peregrine-cms/develop-sling12 and the result is the same.

reggie7 commented 3 years ago

@KWoloszczuk has the same problem. An I've just confirmed that with peregrine-builder/develop alone (prior to installing Peregrine).

ehdatheadwire commented 3 years ago

@reggie7 and @reusr1 please confirm if this is still an issue and, if so, if it is required for 1.0.0 release. Marking ticket as close please / move :) .

reusr1 commented 3 years ago

@ehdatheadwire it is still an issue but it seems to be limited to windows installations and seems to be an issue in https://github.com/apache/sling-org-apache-sling-starter (outside of the peregrine project). I have been trying to find the root cause of the issue in that project but have not been successful yet. getting closer :-)

reusr1 commented 3 years ago

this issue is now limited to windows 10 and some newer jvm's - the problem is that some content from the initial bundle content are created as files instead of a node structure - the problem is tracked as well in https://github.com/ist-dresden/composum-nodes/issues/220