Hi,
I am facing the below issue in the PRD environment, please help me to resolve it.
Issue description:
I am calling Servlet to perform user Authentication from the Login form, It is working fine in all the lower servers.
The only problem is in PRD-publish, whereas PRD-author is working fine.
I am trying to connect API using the
Response from AEM server, not able to connect with API
<HTML><HEAD><TITLE>Loading</TITLE></HEAD><BODY bgcolor="#ffffff"><H3 style="color: #ffffff">Loading</H3></BODY></HTML>
Regards,
Shyam
Solved! Go to Solution.
Views
Replies
Total Likes
The fact that restarting the server resolves the issue temporarily suggests that there could be a memory leak or configuration issue or some other resource issue that is causing the server to become unstable over time.
Here are a few additional things you can try to troubleshoot the issue:
This is worth a case to be reported to Support. As this requires debugging. I would like to route you through Support team.
Possible causes:
Additional check/Tips:
Hi Kautuk,
Thanks for the reply! I am providing more insight now for better understanding.
* The Servlet code is deployed in Publish-servers and it has been working fine for the last 1 year.
* The issue has been occurring for the last 2 to 3 months, but we haven't been able to find the Root cause for this issue because in the log nothing we found has an error, we are receiving Junk HTML has HttpResponse with 200 status code without connecting to API endpoints. I have cross-checked with the API team about this HTML response, they mentioned they didn't receive the request itself from AEM-publish servers during issue time.
* Our Production build and deployment are maintained by the Adobe AMS team only. Has a temporary solution they restarted the publish servers whenever an issue occurs it will start working fine.
* I am not able to find it's an infrastructure-related issue or code issue!!! I strongly believe there won't be any code issue because It's working fine in Lower and PRD-author servers, there is no issue. The issue is only with the publish server every 15 days frequently.
Please can you guide me in the right direction? Adobe team also said it may be an issue with application check it.
The fact that restarting the server resolves the issue temporarily suggests that there could be a memory leak or configuration issue or some other resource issue that is causing the server to become unstable over time.
Here are a few additional things you can try to troubleshoot the issue:
This is worth a case to be reported to Support. As this requires debugging. I would like to route you through Support team.
Just one observation from error-log verification.
The following error occurred almost 1308 times in the publish server log for one day.
The error message you're encountering, "org.apache.felix.http.jetty Exception while processing request to /system/console/memoryusage (org.apache.sling.api.auth.NoAuthenticationHandlerException)," typically indicates an issue with authentication and access to a specific URL in Adobe Experience Manager (AEM). This error message occurs when the system is unable to authenticate the request to access the /system/console/memoryusage URL, which is part of the AEM web console for memory usage.
to resolve this issue Check Authentication, Verify URL
Or else try writing one standalone java class to authenticate the API URL and run it from publisher instance.
Hi Jagadeesh,
Thanks for the reply!
By any chance, this error is anything related to this Login servlet issue?
@shyamasundar-ks As you are pretty sure that you did not do any changes to the working code, and it was working earlier and now it's not working.
As suggested by @arunpatidar can you check the response headers.
@joerghoh @Jörg_Hoh @arunpatidar Can you please have a look at this case?
Views
Replies
Total Likes
can you please check the response headers. It seems the connection to api is not establishing?
Compare the header when you make request from postman and with servlet.
Thank you @arunpatidar for the reply. I have considered mentioned suggestion and trying to include logger for printing response header.
Views
Replies
Total Likes
As you have tried the other options, I would suggest to talk to Adobe CSE and request to provide a clone of the publish server for a week or two in the same network region as your currently publish instances are. While the clone is provided, request to
1) Disable all the schedulers that are set to run daily/weekly etc.,
2) Reset admin password on the clone instance to something else other than the current admin password.
3) Ability to SSH into Prod publish clone instance.
After you get a clone instance, you can enable more logging and discover any connectivity issues to API servers from this clone by running curl commands to the API urls and making sure there are no network connectivity issues.
Thank you @Sudheer_Sundalam for the reply.
Its really interesting, I will discuss with Adobe AMS team regarding this and update you.
Views
Replies
Total Likes
@shyamasundar-ks Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Hi Kautuk,
Yes it helped me lot while discussing with Adobe AMS team, I showed all the troubleshooting tips given. Now we have agreed for
1) Putting more logger in code to understand better each line executing or not.
2) Thread dump analysis, thread dump need to be taken during issue time before restarting the AEM server.
3) As @arunpatidar suggested including logger for printing response header.
4) Adobe team suspected there may be socket issue, need to be check, but I dont have idea on this.
Thanks you so much for the instant support.
Regards,
Shyam
Views
Replies
Total Likes