Cannot reset password for the main account in Confluence
Asked by alexpopescu:

I've tried installing the latest Confluence, also created a dedicated windows account to run the service and gave that account read \& write permissions over the Confluence Home dir and the logs, temp and work subdirs in the Confluence installation dir.

And I still get an exception when clicking the link in my email:

Oops - an error has occurred {#toc-hId-1851511392}
--------------------------------------------------

[![logo](http://server:8090/images/logo/confluence_48_white.png "Confluence")](http://server:8090/)System Error {#toc-hId--700645569}
-------------------------------------------------------------------------------------------------------------------------------------

A system error has occurred --- our apologies!

...

### Cause {#toc-hId-845651261}

com.atlassian.crowd.exception.runtime.OperationFailedException: com.atlassian.crowd.exception.ApplicationPermissionException:

...

at com.atlassian.crowd.embedded.core.CrowdServiceImpl.updateUserCredential(CrowdServiceImpl.java:318)

caused by: com.atlassian.crowd.exception.ApplicationPermissionException:

...

at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.throwError(RestExecutor.java:522)

#### Stack Trace:\[hide\] {#toc-hId--1903019205}

```
com.atlassian.crowd.exception.runtime.OperationFailedException: com.atlassian.crowd.exception.ApplicationPermissionException: ??Z?s?????B?z??eI?;)?^ ??d??veo???_??~??a??????3X:?;?g ??I???4Y?_???D????"!??9 )?$S???FM? ??M?@c?????$?4????G?B??,UA> ?????nS?:?? ?@?|?Z ??NF?j??: ?L/?rM3~?h E????," ?qA+????^/?+?O??xC?;??)F?@?S$^???b??I ?r???QLIz??~?R?.??W?k???_??~y\ ???)X?i????DlW????? ?M?V0?4?z?y???!?)g??z?$? iHX??*y??2?= ???y9?t????????34???5??????n????|?h??y?????e??{???MY??h??????X??G??g? ?@,??????z??:]4?2?JH???)KX[???r`z??5?c?oS??!i?_??-O?@?t???&h? ????C?c???+u#D?O c??v?R??3??&[a|1?? e+??)? ??/(??????XU??&??~K?Nc?p??]l'???m??R?>*[?? ?[????z?6???=Wk????pI?{X??p)?z?t?G]????J*?)? ?I?Im.hL#$h?i?d???41] I????TV?g(%???8/???e??????Ld?+??-?=f|W???r?3.k?s?7????M???&@y???}?5??*O0 ????s?O??? ??1lB?|??????.?}?>)/???`?U?T ?WS?BH??'??v??M-x? &??.?;?:t??tL??$???Q????a?Z?w5?3!P?Gi??:~ ?qF3???1????~U+?.a?f?>?????j?p??$|T? ?'FM??Ig??4% ????a??EgXC???L ?5??fy? ?\X?e??%4??>?[??|??{?{O?\dz.?H;?=d???M9???u$??H?k?)7?j_YceF?- H?e?z??[??F??p?x?P??#????j ??P?c?5\??*,??;?j9?U?V?4 1?? ?? ?hU??4*???"?'Qu?3??c??g??}?xk?[??%S?????"(???fZ?@?&??VrW??S???s????i?Q???4e?t??-b?< 6?? u?z?Ey ?f+HYD9&????xS4e ??0*?B????(?J?bCyU???(??x???yaE??]u??S??@???\?"'????@?;? /?????{/?Y?L?:??0???![B?!???????1Z	at com.atlassian.crowd.embedded.core.CrowdServiceImpl.updateUserCredential(CrowdServiceImpl.java:318)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)	at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)	at com.sun.proxy.$Proxy90.updateUserCredential(Unknown Source)	at com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdUserManager.alterPassword(EmbeddedCrowdUserManager.java:180)	at com.atlassian.confluence.user.ConfluenceUserManager.alterPassword(ConfluenceUserManager.java:105)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)...
```


Answers:
author: alexpopescu
body: after investigating more and reading about how it works, I've found the problem.

When setting Confluence up as an application in JIRA User Management, the IP list only contained the ip of the server. After I added the host name as well, logging in worked again so the password change was not needed anymore


Tags: confluence-server

server