Can't login into Confluence
Asked by Lukasz Ciechanowicz:

Hi,

In our company we have installed Jira 5.2.11 and Confluence 5.1.2. Since few days we can't log into the Confluence anymore. Jira works fine.

To log into the Confluence and Jira we use the same username and passwords. They are both connected to eachother.

During the login we encounter following problem:

![Confluence problem](http://i.imgur.com/M9N6bNu.png)

Do you have any ideas how to solve such problem?

Thank you in advance


Answers:
author: Nic Brough -Adaptavist-
body: I am facing the exact same issue right now. exact same logs from above.

What was the solution?

comments: author: Nic Brough -Adaptavist-
body: WE don't really know, because it was not followed up with an answer 5 years ago.

The code for user access was pretty much re-written when Jira 7 and Confluence 6 arrived, so even though you might see a similar problem, everything has changed since this was asked.

I would recommend that you write up your problem as a new question, as it's deprecated here and does not have much of an audience.


author: Lukasz Ciechanowicz
body: Thank you for your replies guys,

I use Internal Authentication and all users have been created using Jira, running on the same machine.

I know the admin's credential. I use it to log into Jira. The problem is that none of Jira accounts work on Confluence now :( No single user can log into the Confluence, so I guess there must be some problem with connections between Confluence and Jira.

In Jira I see only accounts that I've created... so I guess that the admin's account that I mentioned above is the only one admin's account. There is no other users with such priviledges on my users list in Jira. Is there any default "admin" account?

This is deffinitely not the problem of browser's cache, because I've been using few browser and trying to access Confluence from few different locations.

And talking about errors in log files.

I have't found any interesting information there.

**Confluence logs:**

c:\\Program Files\\Atlassian\\Confluence\\logs\\catalina.2013-08-06.log

```
Aug 06, 2013 12:42:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.Aug 06, 2013 12:42:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.Aug 06, 2013 12:42:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.Aug 06, 2013 12:42:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.Aug 06, 2013 12:42:38 PM org.apache.coyote.http11.Http11Protocol init
```

c:\\Program Files\\Atlassian\\Confluence\\logs\\confluence090513213523-stderr.2013-08-06.log

```
Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [com.atlassian.core.logging.ThreadLocalErrorCollection$1] (value [com.atlassian.core.logging.ThreadLocalErrorCollection$1@56c9b3e]) and a value of type [java.util.LinkedList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@586ad0a6]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@4ca86fa3]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [com.atlassian.plugin.util.ClassLoaderStack$1] (value [com.atlassian.plugin.util.ClassLoaderStack$1@1d44063a]) and a value of type [java.util.LinkedList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [com.atlassian.confluence.concurrent.ThreadLocalMap] (value [com.atlassian.confluence.concurrent.ThreadLocalMap@7c4236db]) and a value of type [java.util.HashMap] (value [{}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@5cf4d8d8]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@46395da6]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [org.apache.log4j.helpers.ThreadLocalMap] (value [org.apache.log4j.helpers.ThreadLocalMap@3b6b21ad]) and a value of type [java.util.Hashtable] (value [{}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [com.atlassian.core.logging.ThreadLocalErrorCollection$1] (value [com.atlassian.core.logging.ThreadLocalErrorCollection$1@56c9b3e]) and a value of type [java.util.LinkedList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [com.atlassian.core.logging.ThreadLocalErrorCollection$2] (value [com.atlassian.core.logging.ThreadLocalErrorCollection$2@162d80f2]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [com.atlassian.plugin.util.ClassLoaderStack$1] (value [com.atlassian.plugin.util.ClassLoaderStack$1@1d44063a]) and a value of type [java.util.LinkedList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.Aug 07, 2013 8:45:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: The web application [] created a ThreadLocal with key of type [net.sourceforge.jtds.jdbc.DateTime$1] (value [net.sourceforge.jtds.jdbc.DateTime$1@5f1fa398]) and a value of type [java.util.GregorianCalendar] (value [java.util.GregorianCalendar[time=1368128525680,areFieldsSet=true,areAllFieldsSet=false,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/Belgrade",offset=3600000,dstSavings=3600000,useDaylight=true,transitions=119,lastRule=java.util.SimpleTimeZone[id=Europe/Belgrade,offset=3600000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2013,MONTH=4,WEEK_OF_YEAR=19,WEEK_OF_MONTH=2,DAY_OF_MONTH=9,DAY_OF_YEAR=129,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=9,HOUR_OF_DAY=21,MINUTE=42,SECOND=5,MILLISECOND=680,ZONE_OFFSET=3600000,DST_OFFSET=3600000]]) but failed to remove it when the web application was stopped.
```

```
This is very likely to create a memory leak.
```

```

```

```
c:\Program Files\Atlassian\Confluence\logs\confluence090513213523-stdout.2013-08-06.log
```

```

```

```
2013-08-06 12:42:37 Commons Daemon procrun stdout initialized2013-08-06 12:42:41,104 INFO [main] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.1.2 [build 4224 based on commit hash 875a2723d3ca93f267db5c35cdbfcf91f5910d2d]2013-08-06 12:42:43,912 WARN [main] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\Program Files\Atlassian\Application Data\Confluence\confluence.cfg.xml6011932512491598795tmp to C:\Program Files\Atlassian\Application Data\Confluence\confluence.cfg.xml. Falling back to non-atomic overwrite.log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
```

```
and some Jira logs:
```

```
c:\Program Files\Atlassian\JIRA\logs\catalina.2013-08-06.log
```

```
Aug 6, 2013 10:49:57 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParametersWARNING: A servlet POST request, to the URI http://jira.mycompany.eu:8080/rest/gadget/1.0/login, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.Aug 6, 2013 10:50:17 AM org.apache.tomcat.util.http.Parameters processParametersINFO: Invalid chunk starting at byte [188] and ending at byte [196] with a value of [=Confirm] ignored Note: further occurrences of Parameter errors will be logged at DEBUG level.Aug 6, 2013 10:59:35 AM org.apache.jasper.compiler.TldLocationsCache tldScanJarINFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.Aug 6, 2013 11:20:38 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParametersWARNING: A servlet POST request, to the URI http://jira.mycompany.eu:8080/rest/gadget/1.0/login, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.Aug 6, 2013 11:30:40 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters
```

c:\\Program Files\\Atlassian\\JIRA\\logs\\jira090513113931-stderr.2013-08-06.log

```
INFO: Server startup in 209411 msAug 6, 2013 12:00:50 PM com.sun.jersey.spi.container.servlet.WebComponent filterFormParametersWARNING: A servlet POST request, to the URI http://partners-jira.mycompany.eu/rest/gadget/1.0/login, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.Aug 6, 2013 12:00:53 PM com.sun.jersey.spi.container.servlet.WebComponent filterFormParametersWARNING: A servlet POST request, to the URI http://partners-jira.mycompany.eu/rest/gadget/1.0/login, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.Aug 6, 2013 12:00:59 PM com.sun.jersey.spi.container.servlet.WebComponent filterFormParametersWARNING: A servlet POST request, to the URI http://partners-jira.mycompany.eu/rest/gadget/1.0/login, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
```

I have bolded two different URL's. Jira is available for our external users through <http://partners-jira.mycompany.eu> but at the beging the URL was <http://jira.mycompany.eu:8080>

But from local machine, where jira and confluence are running both addresses corresponds to the same IP address, and I can access jira using both of them.


author: William Zanchet [Atlassian]
body: Hi Lukasz,  

If you have only Internal Authentication, I mean, without any external user directory playing a role there, you can try to use this documentation, to find the admin, and also reset the password, as you can see here:  

<https://confluence.atlassian.com/display/DOC/Restoring+Passwords+To+Recover+Admin+User+Rights>  

Also try to clean the browser's cache, because we could have some old cookies there as well.  

Cheers,  

WZ


author: EddieW
body: Is JIRA acting as the authorization server, or do both connect back to LDAP/AD/Crowd?

-- Either way, scour the logs for Confluence for auth failure reasons.

-- If yes, scour the logs fro JIRA for rejected auth attempts from confluence.

-- If using crowd it is likely the crowd password was not set in the 2 required places. Revisit the upgrade guide.

Have you tried to have an Admin account "reset" the locked out IDs?


Tags: login