After Confluence upgrade from 6.1.1 to 6.8 no user can login
Asked by REEF Solutions:

HI Support,

After upgrade confluence no user can login. Please advise.


Answers:
author: REEF Solutions
body: I resolved this issue thanks for your support.

But another issue is that, i have set the Confluence to run on port 9443 and i made the required changes in server.xml and web.xml.

But its not browsing the confluence on 9443 port. I have verified i can telnet on that port.

comments: author: Shannon S
body: Thank you for letting us know you were able to resolve the issue on your end!

Regards,

Shannon


author: REEF Solutions
body: ALl issues are resolved, it was cert issue. Thanks.

comments: author: Adrian
body: Can you please explain how to solve this?

I Have the same problem and dont understand why certs dont fit anymore?


author: REEF Solutions
body: Now its not saying wrong user name and password but it keep redirecting back to login windows.

[http://kb.reefit.com/login.action?os_destination=%2Findex.action\&permissionViolation=true](http://kb.reefit.com/login.action?os_destination=%2Findex.action&permissionViolation=true)


author: REEF Solutions
body: Is there any tool or place where i can share my screen, so you can look into the issue more detail?


author: REEF Solutions
body: Yes, i had started by using start-Confluence.bat file. But yes, on very first attempt i did start the Windows Confluence service but then i stop it and then start confluence via "start-Confluence.bat" file.


author: Shannon S
body: Hi there,

Can you tell us a bit more about the problem? What error message are the users getting? What is your user directory setup? Are the logins local to Confluence? Jira? Active directory? Please give us further information.

I would recommend trying to [Restore Admin Access](https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html) first, and then the admin can troubleshoot the issue.

Regards,

Shannon

comments: author: REEF Solutions
body: It was setup with LDAP authentication. I forget the Confluence password and tried both ways

1. Recovery_adnmin (followed this URL [Restore Admin Access](https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html?_ga=2.175049319.476048189.1521693262-2146595426.1521693262) but not able to login via recovery_admin getting wrong user name and password error)

2. Try to reset confluence admin password via SQL but i was not able to do that, even after successful edit of credential entry as i start the Confluence it again change it back to previous one. (<https://confluence.atlassian.com/conf64/restore-passwords-to-recover-admin-user-rights-936511358.html>)


author: Shannon S
body: Thank you for confirming.

If you're not able to login after running the Restore Admin Access article, then a step wasn't done properly.

You should login with the username recovery_admin along with the password that you entered in the setenv file by adding the following property:

```
?-Datlassian.recovery.password=<your-password>
```

Confluence needs to be stopped and started again in order for that to take place.

Can you please confirm?

Regards,

Shannon


author: REEF Solutions
body: Hi,

Yes, i performed the excatly steps and i added this line to setenv.bat file. And i used recovery_admin / admin to login but failed.

Here is the file i used see last line i had added it.

rem Set the JVM arguments used to start Confluence. For a description of the options, see  
rem <http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html>  
set CATALINA_OPTS=-XX:-PrintGCDetails -XX:+PrintGCDateStamps -XX:-PrintTenuringDistribution %CATALINA_OPTS%  
set CATALINA_OPTS=-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M %CATALINA_OPTS%  
set CATALINA_OPTS=-Xloggc:"%atlassian_logsdir%\\gc-%atlassian_timestamp%.log" %CATALINA_OPTS%  
set CATALINA_OPTS=-XX:G1ReservePercent=20 %CATALINA_OPTS%  
set CATALINA_OPTS=-Djava.awt.headless=true %CATALINA_OPTS%  
set CATALINA_OPTS=-Datlassian.plugins.enable.wait=300 %CATALINA_OPTS%  
set CATALINA_OPTS=-Xms1024m -Xmx1024m -XX:+UseG1GC %CATALINA_OPTS%  
set CATALINA_OPTS=-Dsynchrony.enable.xhr.fallback=true %CATALINA_OPTS%  
set CATALINA_OPTS=-Dorg.apache.tomcat.websocket.DEFAULT_BUFFER_SIZE=32768 %CATALINA_OPTS%  
set CATALINA_OPTS=%START_CONFLUENCE_JAVA_OPTS% %CATALINA_OPTS%  
set CATALINA_OPTS=-Dconfluence.context.path=%CONFLUENCE_CONTEXT_PATH% %CATALINA_OPTS%  
set CATALINA_OPTS=-Datlassian.recovery.password=admin


author: Shannon S
body: Alright, so something still isn't quite right.

Since you edited the .bat file, can you confirm you're indeed running Confluence on Windows? Which version of Windows are you using?

Secondly, this will not work if you're running Windows as a Service which starts up automatically. Could you confirm that you do use the setenv.bat file to start Confluence rather than letting Confluence run as a service?

Shannon