can't log in to local host | Community
Skip to main content
Level 3
Aug 14, 2019 1:29 PM UTC

can't log in to local host

Hi,

When switching between branches i sometimes get an issue where i cant log in and the styling looks weird:

When i click sign in i get this url and this screen:

http://localhost:4502/libs/granite/core/content/login.html/j_security_check

When i checkout into the branch that was working before, i get these errors too so it's not a problem with my branch.

In the past i have fixed this issue by deleting the CRX and rebuilding but this can be a massive time sink and it would be great to stop this happening.

I cannot log into CRX i cannot access the sling logs or the config manager.

Any help would be great.

Thanks,

Karl

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

9 replies

Level 3
Aug 15, 2019 1:06 PM UTC

thanks but there are no entries in the config manage under the LPAD section.

Translate
Gaurav-Behl
Level 10
Aug 15, 2019 1:03 PM UTC

You may check with "LDAP" or "Login" keyword in code/config files in your repo or under /apps/settings or in /system/console/configMgr

Translate
Level 3
Aug 15, 2019 12:47 PM UTC

not as far as i am aware. is there a way to check this?

Translate
Gaurav-Behl
Level 10
Aug 15, 2019 12:28 PM UTC

Did you enable LDAP or external login integration or similar feature in the setup where you see this issue? If yes then that could be a pointer to debug further..

Translate
Level 3
Aug 15, 2019 8:13 AM UTC

If i switch back into the branch that i was working on before it still doesn't work again.

So even if it is a config issue, there is something breaking it that is independent of the code i've changed

Translate
Gaurav-Behl
Level 10
Aug 14, 2019 3:43 PM UTC

you mentioned that it happens only when you switch between code branches - can't you revert/fix your code? You probably have a wrong config that overwrites /apps/settings or authentication configs?

Translate
Level 3
Aug 14, 2019 2:49 PM UTC

I should probably mention this is AEM 6.2

Translate
Level 3
Aug 14, 2019 2:27 PM UTC

Thanks for the link but I can't get to any url on except localhost:4502 and localhost:4502/crx/de

when i do try to go to a different url, it just directs me back to the login screen.

Translate
Gaurav-Behl
Level 10
Aug 14, 2019 2:23 PM UTC