Skip to main content
Level 4
Sep 27, 2023 2:43 PM UTC

System User is not available on publisher - AEM cloud

Hi All,

I have created the system user on aem cloud with the repoinit script, I am able to see the user on the author and i am able to run my servlet on the author.

But when we are running the same code on publish, it's throwing some error.

 

Eroror

 com.adobe.granite.metrics. known errors.impl.ErrorLoggingComponentFilter Exception in component: category=ADOBE_UNKNOWN, resourceType=cq: Page, exceptionType=java.lang.IllegalArgumentException, errorId=CQ_RESOURCE_TYPES, resource=/content/whatsappsim/de/de/plp, exceptionMessage = The provided userId does not identify an existing user. 27.09.2023 02:48:53.704 [cm-p33452-e121351-aem-publish-9df645697-pp45q] *ERROR* [62.52.253.146 [1695782933655] POST /content/whatsappsim/de/de/plp.ucconsent.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable java. lang.IllegalArgumentException: The provided user ID does not identify an existing user.

 

Do we have to do any thing on publish

 

 
 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

10 replies

B_Sravan
Community Advisor
Community Advisor
Sep 27, 2023 2:58 PM UTC

Hi @raushan123 

Make sure that you have your repoint config under the config.publish runmode. If you want to be in all run modes (obvious in this case), please have the config under "config" folder.

Keeping the config under "config.author" shall restrict it only to author.

Thank you,
Sravan

Translate
Level 4
Sep 27, 2023 3:07 PM UTC

I want this in all run mode, that's why I have put it inside  config folder

file path:-

apps/mysite/osgiconfig/config/org.apache.sling.commons.log.LogManager.factory.config~mySystemUser.cfg.json

 

but not sure why I am getting this error on publish.ideally, it should be applicable for all run mode

Translate
B_Sravan
Community Advisor
Community Advisor
Sep 27, 2023 4:14 PM UTC

seems like the user is not being created, can you move/publish the users manually once and re-run?

Also, may I see your repoint script?

Translate
kautuk_sahni
Level 9
Sep 28, 2023 11:27 AM UTC

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

Translate
Kautuk Sahni