Why admin login error?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
tanzhenchao
Member II

Why admin login error?

Why admin login error?

1. Error messages,
Your authentication details haven't been recognized or Alfresco Content Services may not be available at this time.
 
2. Manual start can log in normally for below,
---------------------------------------
/usr/alfresco/alfresco-community/tomcat/scripts/ctl.sh start
---------------------------------------
3. Change the startup mode will be wrong,
---------------------------------------
vim /etc/systemd/system/alfresco.service
--------------------------------------
add below config
---------------------------------------
Description=alfresco service
After=syslog.target network.target mysqld.service

[Service]
Type=forking
ExecStart=/sbin/runuser -l alfresco -c '/usr/alfresco/alfresco-community/tomcat/scripts/ctl.sh start'
PIDFile=/usr/alfresco/alfresco-community/tomcat/temp/catalina.pid
ExecStop=/bin/sh -c '/usr/alfresco/alfresco-community/tomcat/scripts/ctl.sh stop'
ExecStop=/sbin/runuser -l alfresco -c '/usr/alfresco/alfresco-community/tomcat/scripts/ctl.sh stop'

[Install]
WantedBy=multi-user.target
---------------------------------------
Can anyone tell me why?

4. Please see below detail config,

https://translate.google.com.hk/translate?hl=en&sl=zh-CN&tl=en&u=https%3A%2F%2Fwww.cmdschool.org%2Fa... 

5 Replies
tanzhenchao
Member II

Re: Why admin login error?

version message,

Alfresco Community (Build: 201707)
tanzhenchao
Member II

Re: Why admin login error?

No output log when type correct user name and password, but type an empty username to output the following log,

tail -f alfresco.log

-------------------------------------------------------------------------------

2018-03-02 03:08:35,416 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Exception from executeScript: 02020 979 Username not specified
org.springframework.extensions.webscripts.WebScriptException: 02020979 Username not specified
at org.alfresco.repo.web.scripts.bean.LoginPost.executeImpl(LoginPost.java:69)
at org.springframework.extensions.webscripts.DeclarativeWebScript.executeImpl(DeclarativeWebScript.java:235)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:355)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2486)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

---------------------------------------------------------------

mehe
Senior Member II

Re: Why admin login error?

manual start is invoked by which user? alfresco?

tanzhenchao
Member II

Re: Why admin login error?

yes,

Create user below,

--------------------------------------

groupadd -g 888 alfresco
useradd -u 888 -g 888 -d /usr/alfresco -s /bin/bash alfresco

------------------------------------

Manual start is invoked by alfresco

------------------------------------

su - alfresco

/usr/alfresco/alfresco-community/tomcat/scripts/ctl.sh start

------------------------------------

tanzhenchao
Member II

Re: Why admin login error?

I found this problem can be solved by avoiding manual startup, but I still want to know how to solve this problem.