Error 401 Unauthorized - When typing http://localhost:8080/manager/html

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

Error 401 Unauthorized - When typing http://localhost:8080/manager/html

Hello

Setup: In Production: Alfresco 5.2.4 using tomcat 7.0.82 installed on Windows 2016 Server.  Installed by 3rd party Co.

Problem: Error 401 Unauthorized when entering "manager" crendtials in popup window of 
                 http://localhost:8080/manager/html
                 http://localhost:8080  works fine and returns the application main page.

* \tomcat\conf\tomcat-users.xml  file edited as follows:
 <?xml version="1.0" encoding="UTF-8"?>  
 <tomcat-users>
    <role rolename="manager-gui"/>
    <role rolename="manager-status"/>
    <role rolename="manager-jmx"/>
    <role rolename="manager-script"/>
    <user username="manager" roles="manager-gui, manager-status" password="whatever"/>
 </tomcat-users>

* \tomcat\conf\Catalina\localhost\manager.xml   file was created as follows:
 <?xml version="1.0" encoding="UTF-8"?>
 <Context antiResourceLocking="false" privileged="true" useHttpOnly="true" override="true">
 <Valve className="org.apache.catalina.authenticator.BasicAuthenticator" securePagesWithPragma="false" />
 </Context >
 
* \tomcat\webapps\manager\META-INF\context.xml file as follows:
 <?xml version="1.0" encoding="UTF-8"?>
 <Context antiResourceLocking="false" privileged="true" >
   <Valve className="org.apache.catalina.valves.RemoteAddrValve"  allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
   <Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/>
 </Context>

* Restarted the Tomcat7 Service

Question: What other files are involved in manager login process ?

Note: I installed the same Alfresco Version on a Lab VM (Win 2016) and made the above changes/additions and it just worked fine (all the rest is kept as default)

        Shall I consider/look at the Folders/files permissions of the tomcat production server running the Alfresco application which may have tweaked file permissions for security reasons ?  Or Realm stuff ?

Please advise.

Thanks

4 Replies
jljwoznica
Senior Member

Re: Error 401 Unauthorized - When typing http://localhost:8080/manager/html

What are you trying to do? Access Tomcat or Alfresco?

Kiwi
Member II

Re: Error 401 Unauthorized - When typing http://localhost:8080/manager/html

Hi

Thank you for your reply. Yes  I am trying to access tomcat  that is part of the Alfresco bundle. Accessing as 
manager-gui role. As already mentioned, I made a Lab install of Alfresco using the same version and it just worked straigh away.

Wondering: A potential port 8080 conflict between Alfresco application and "manager" application both defined under C:\alfresco-content-services\tomcat\webapps ?

 

jljwoznica
Senior Member

Re: Error 401 Unauthorized - When typing http://localhost:8080/manager/html

I am not sure if this has anything to do with it, but I read this:

If you deployed previous versions of Alfresco Community Edition, you must remove any temporary files created by your application server. Use the clean_tomcat.bat or clean_tomcat.sh command.

\https://docs.alfresco.com/community/tasks/alf-war-install.html

Did you install from the war file? 

Kiwi
Member II

Re: Error 401 Unauthorized - When typing http://localhost:8080/manager/html

In fact there were some updates going on since  last year until recently. I ma not the one who installed it, it's through a 3rd party company.  I don't know what will be the impact after running the cleaning batch.