Home page (sites) 503 issue after restart | Community
Skip to main content
Level 2
Jul 29, 2022 4:01 PM UTC
Solved

Home page (sites) 503 issue after restart

I have on normal ams instance and i have created archetype 37 project. When I create service user config inside config folder and test instance it will work.

At the same time when I restart the instance home page gives me " http error 503 servletresolver service missing, cannot service requests missing issue".

When I remove this service user config again, it works fine.

 

Please help me with this issue.

SantoshSai
SantoshSaiAccepted solution
New Participant
Jul 29, 2022 9:00 PM UTC

Hi @sudarshanreddy ,

This is a known issue due to the presence of a repoinit config file in the project deployed, resulting in a repository initialization error causing HTTP 503 on AEM. Do follow the below steps

  • Navigate /apps/spa/osgiconfig/config/org.apache.sling.jcr.repoinit.RepositoryInitializer~spa.cfg.json
  • Delete .cfg.json or replace it's script into a -.config

Reference: https://github.com/adobe/aem-project-archetype/issues/852

Or check these links:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-restart-issue-authenti...
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/authenticationsupport-serv...

Hope that helps!
Regards,

Santosh

Santosh Sai

8 replies

Sachin_Arora_
New Participant
Jul 31, 2022 7:04 AM UTC

This issue happens when Repository Initialization fails due to repo init files in code. To get exact root cause,

  1. Shut down your AEM instance.
  2. Clean error.log file
  3. Start AEM instance and search for logs related to repo init.

You will be able to see some errors coming on restart which is not allowing to execute repo init script fully. Even if single repo init fails, this issue comes. Please refer below example it will give you some idea.

Suppose you are giving permission on a folder /etc/xyz using repo init and the folder /etc/xyz does not exist in your code and in AEM so when you will restart, 503 error will come. So to fix this we need to add a step to create folder /etc/xyz before giving permission on the folder.

Translate
SantoshSai
SantoshSaiAccepted solution
New Participant
Jul 29, 2022 9:00 PM UTC

Hi @sudarshanreddy ,

This is a known issue due to the presence of a repoinit config file in the project deployed, resulting in a repository initialization error causing HTTP 503 on AEM. Do follow the below steps

  • Navigate /apps/spa/osgiconfig/config/org.apache.sling.jcr.repoinit.RepositoryInitializer~spa.cfg.json
  • Delete .cfg.json or replace it's script into a -.config

Reference: https://github.com/adobe/aem-project-archetype/issues/852

Or check these links:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-restart-issue-authenti...
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/authenticationsupport-serv...

Hope that helps!
Regards,

Santosh

Translate
Santosh Sai
Level 2
Jul 29, 2022 11:37 PM UTC

Thanks @santoshsai 

 

But this issue is with new service user config file.

I had done replacing script from .cfg.json to .config and tried but it dint work.

When I remove that service user config, it starts working.

Translate
SantoshSai
New Participant
Jul 30, 2022 1:32 AM UTC

@sudarshanreddy Could you please pass that service user config to check if possible?

Translate
Santosh Sai