Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

\/etc/cloudsettings/default/contexthub.kernel.js is not loadingin AEM 6.4

Avatar

Community Advisor

Hi All

The URL /etc/cloudsettings/default/contexthub.kernel.js is stopped working in both author and publisher post upgrade from 6.2 to 6.4 version.

As per the following document this URL should be working in 6.4 - https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/ch-diagnostics.html

It looks to be the same URL is even not working in new AEM 6.4 Author/Publisher instance.

Please provide your expert advise here.

Regards

Albin I

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try -

Change sling:resourceType from  /libs/granite/contexthub/cloudsettings/components/baseconfiguration

to  granite/contexthub/cloudsettings/components/baseconfiguration on the contexthub configuration (/etc/cloudsettings/...)

source: Re: Contexthub.kernel.js 404 on publish 6.4

View solution in original post

5 Replies

Avatar

Level 10

Do you see the contexthub path configured in root page properties?

/libs/settings/cloudsettings/legacy/contexthub

Contexthub js url -

http://localhost:4502/etc/cloudsettings.kernel.js/libs/settings/cloudsettings/legacy/contexthub

Avatar

Community Advisor

http://localhost:4502/etc/cloudsettings.kernel.js/libs/settings/cloudsettings/legacy/conte xthub, this URL is working in fresh 6.4 install but unfortunately it is not working in upgraded environment(6.2 to 6.4)

Receiving the following exception in the log

01.02.2019 21:05:44.636 *ERROR* [10.153.113.29 [1549055144628] GET /etc/cloudsettings/default/contexthub.kernel.js HTTP/1.1] org.apache.sling.servlets.resolver.internal.SlingServletResolver Original error null

Regards

Albin I

Avatar

Correct answer by
Level 10

Try -

Change sling:resourceType from  /libs/granite/contexthub/cloudsettings/components/baseconfiguration

to  granite/contexthub/cloudsettings/components/baseconfiguration on the contexthub configuration (/etc/cloudsettings/...)

source: Re: Contexthub.kernel.js 404 on publish 6.4

Avatar

Community Advisor

Thanks, the URL /etc/cloudsettings/default/contexthub.kernel.js started working after this change.

Changed the property in /etc/cloudsettings/default/contexthub

Anyhow http://localhost:4502/etc/cloudsettings.kernel.js/libs/settings/cloudsettings/legacy/contexthub URL is still not working(we are fine for now as the above URL is working)

Avatar

Level 1

I have not upgraded my AEM from 6.2 to 6.4 but I was facing the same issue that contexthub.kernel.js was giving 404. I found one more solution:

As it is suggested contexthub path is to be configured in root page properties as '/libs/settings/cloudsettings/legacy/contexthub'

 

and when we go to this path, this node has 'sling:resourceType' as '/libs/granite/contexthub/cloudsettings/components/baseconfiguration',

so I copied this node to '/apps/settings/cloudsettings/legacy/contexthub' and changed its 'sling:resourceType' to 'granite/contexthub/cloudsettings/components/baseconfiguration'

 

and configured '/apps/settings/cloudsettings/legacy/contexthub' in root page properties. Now it's working fine for me. Thanks.