Can I use more than two AEM cloud SDK for different POCs? | Adobe Higher Education
Skip to main content
manuel_óscars89
Level 2
February 18, 2022
Resuelto

Can I use more than two AEM cloud SDK for different POCs?

  • February 18, 2022
  • 3 respuestas
  • 3903 visualizaciones

Hi!

 

I am trying to create two different and separate POC for some clients for AEMaaCS using Java 11. For the first POC I just need AEM. For the second one I need AEM + Forms.

 

I had created separate folders for each of those POCs and the problem I am facing is that if I start one quickstart, work for some time, shut it down and later I try to init the other POC quickstart the second POC fails to init showing the following error message:

 

"HTTP ERROR 503 AuthenticationSupport service missing. Cannot authenticate request."

 

If I tail the error.log I get the following warn and info messages:

 

"
18.02.2022 10:38:46.919 *WARN* [sling-default-1-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.
18.02.2022 10:38:46.950 *INFO* [sling-default-9-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.
"

 

I have tried the steps provided in the following solutions with no success:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/http-error-503-authenticationsupport-service-missing-cannot/td-p/415600
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-restart-issue-authenticationsupport-service-missing-cannot/td-p/385769

 

So my question is. Can I work in two separate POCs with AEMaaCS sdk or this is only possible with the classic 6.5 version?

 

Thanks a lot.

Este tema ha sido cerrado para respuestas.
Mejor respuesta de B_Sravan

Hi @manuel_óscars89 ,

 

In my opinion, it is possible to use two SDKs.
Since it throws the authentication error, it means that your second POC is failing and crashing the instance.
Try these and check again.

  • Just in case, use different ports; as in 4502 for instance and 5502 for other instance, this way you can use both at a time without swtiching them down.
  • Make sure you use the right archetype that is made for JAVA 11 and AEMaaCS.
  • Use the latest versioned SDK

Thank you.

3 respuestas

B_Sravan
Community Advisor
B_SravanCommunity AdvisorRespuesta
Community Advisor
February 18, 2022

Hi @manuel_óscars89 ,

 

In my opinion, it is possible to use two SDKs.
Since it throws the authentication error, it means that your second POC is failing and crashing the instance.
Try these and check again.

  • Just in case, use different ports; as in 4502 for instance and 5502 for other instance, this way you can use both at a time without swtiching them down.
  • Make sure you use the right archetype that is made for JAVA 11 and AEMaaCS.
  • Use the latest versioned SDK

Thank you.

manuel_óscars89
Level 2
March 1, 2022

I have decided to select this answer as the correct one as I have tested that I can have multiple AEM on different ports working at the same time.

 

My problem is still happening from time to time and I have not found what is causing it but anyway, thank you all for your help 🙂

manuel_óscars89
Level 2
March 8, 2022

Hi everyone!

 

I managed to boil down my problem to AEM + Adobe Asset Share Commons project for WKND.

 

Here you can find the issue I opened and what was the underlying cause: https://github.com/adobe/asset-share-commons/issues/702

"

...I think there's an issue with the RepoInit scripts in that, that prevent AEM from starting up (since it re-evals Repo init scripts on startup).

 

Also, that package includes a version of ASC (v2.1.10) and then you're providing another version (v2.1.12) - which will likely conflict since theyre both full-releases (not SNAPsHOTS) -- so you want to make sure you only install 1 version of ASC at a time."

 

A big thanks to @davidjgonzalezzzz for helping me in this one!

Vijayalakshmi_S
Level 10
February 18, 2022

@manuel_óscars89 

On a high level, looks like memory issue. Increase the -Xmx value (CQ_JVM_OPTS in start.bat)

However, I suggest to narrow down the error.log (Including the ones rotated to previous days till you encounter the first message with level ERROR) to arrive at the exact cause in the instance where you have encountered - "HTTP ERROR 503 AuthenticationSupport service missing. Cannot authenticate request"  before any further action. 

manuel_óscars89
Level 2
February 22, 2022

This answer has being marked as correct by somebody else. I am still trying to figure it out and by no means I consider my problem to be solved. Marking a Community Adisor's answer as correct without checking in is no good practice. The answer marked as correct was given last Friday. Today is Tuesday and somehow you consider that everything has been solved without asking 😞

Vijayalakshmi_S
Level 10
February 22, 2022

@manuel_óscars89 

Could you please let know if you had a chance to check the complete error.log files. If yes, please share the details. 

joerghoh
Adobe Employee
Adobe Employee
February 23, 2022

What do you mean when you say "I have created separate folders for each of those POCs"? Have you created a folder "poc1" and start one SDK instance there, and a second folder "poc2"  with the other SDK instance in there?

 

If that's the case, these instances should co-exist quite nicely (assuming that you choose different ports for them). But the error message indicate that they step on each others toes, as if they overwrite each other's files.

manuel_óscars89
Level 2
February 24, 2022

Yes. I have them in separate folders. I am starting to think that I do something wrong when I shut them down. I will try to watch closely the error.log when Ctrl+C them.

 

joerghoh
Adobe Employee
Adobe Employee
February 25, 2022

But that shouldn't be a problem. I try to use the start/stop scripts locally, but my instances typically are able to startup properly even if I reboot my machine without stopping them explicitly.