cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.2 and changing the password for the Admin user

mwildam
Champ in-the-making
Champ in-the-making
When I change the default password of the Admin user through the web client I get the error on Alfresco server startup:
Exception from executeScript - redirecting to status template error: 06170004 Login failed
org.alfresco.web.scripts.WebScriptException: 06170004 Login failed


Complete error message:
11:11:24,781  ERROR [web.scripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 06170004 Login failed
org.alfresco.web.scripts.WebScriptException: 06170004 Login failed
        at org.alfresco.repo.web.scripts.bean.AbstractLoginBean.login(AbstractLoginBean.java:81)
        at org.alfresco.repo.web.scripts.bean.LoginPost.executeImpl(LoginPost.java:79)
        at org.alfresco.web.scripts.DeclarativeWebScript.executeImpl(DeclarativeWebScript.java:223)
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:70)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:357)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:407)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:424)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:253)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:262)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
        at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)

As soon as I change the password back to the default "admin" the error disappears. I tried to find out where this password is hardcoded but I can't find and the error message unfortunately does not tell me which script is failing here. Anybody knows where I have to change the password in addition to changing it through the web client?
19 REPLIES 19

_sax
Champ in-the-making
Champ in-the-making
In former versions, I could simply remove admin from the list of admins in custom-authorities.xml, so the imposed 'security threat' was gone. With 3.2, the option passthru.authentication.defaultAdministratorUserNames= doesn't contain anything. So I, too, would be interested in a way to change the admin user's password.
Should this better be raised in JIRA?

mwildam
Champ in-the-making
Champ in-the-making
So far I was not able to fix this. Nobody has an idea?

dward
Champ on-the-rise
Champ on-the-rise
I've logged this in JIRA because it needs improving. In future, don't be shy about logging an issue yourself.

https://issues.alfresco.com/jira/browse/ETHREEOH-2603

Thanks

Dave

dward
Champ on-the-rise
Champ on-the-rise
Something that might help diagnose where the problem is. Try putting this line in log4j.properties and the paths of each invoked webscript will be logged.

log4j.logger.org.alfresco.web.scripts.AbstractWebScript=debug

mwildam
Champ in-the-making
Champ in-the-making
I already tried to get more detailed information into the logs without success. Thanks for creating the issue. I simply do feel too much beginner and tend to think that I missed something rather than discovering a bug. Will have more courage in the future.  :wink:

mikeh
Star Contributor
Star Contributor
Hi Martin

Which webapps do you have deployed?

Thanks,
Mike

mwildam
Champ in-the-making
Champ in-the-making
I have installed the standard client, share and studio - if you mean that. Unfortunately the tomcat is locked down so I cannot look into the administration if there is something more I am not aware of.

mwildam
Champ in-the-making
Champ in-the-making
Probably it is Studio because when trying to login to studio using a wrong password I get a very similar error message.

But trying to login to Studio I got another message declared as info:
14:43:09,703  INFO  [web.site.FrameworkHelper] Reset Web Scripts Registry; registered 101 Web Scripts.  Previously, there were 101.
14:43:10,062  INFO  [web.site.FrameworkHelper] Invalidated Object Cache

dward
Champ on-the-rise
Champ on-the-rise
Please just edit $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/log4.properties as requested and let us know what scripts are being called when you see the error?