peregrine-cms icon indicating copy to clipboard operation
peregrine-cms copied to clipboard

Composum broken in develop-sling12

Open reggie7 opened this issue 4 years ago • 12 comments

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.

reggie7 avatar Sep 23 '20 12:09 reggie7

@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.

reusr1 avatar Sep 23 '20 12:09 reusr1

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

reggie7 avatar Sep 23 '20 14:09 reggie7

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?
  1. 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

cmrockwell avatar Sep 23 '20 15:09 cmrockwell

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

reusr1 avatar Sep 23 '20 19:09 reusr1

@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.

reggie7 avatar Sep 23 '20 21:09 reggie7

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

cmrockwell avatar Oct 16 '20 15:10 cmrockwell

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

reusr1 avatar Feb 24 '21 13:02 reusr1

@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 avatar Feb 24 '21 14:02 reggie7

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

reggie7 avatar Feb 24 '21 14:02 reggie7

@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 :) .

ehdatheadwire avatar Mar 12 '21 23:03 ehdatheadwire

@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 avatar Mar 13 '21 18:03 reusr1

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

reusr1 avatar Mar 26 '21 00:03 reusr1