Can't add new user
Asked by Ruediger Holdmann:

Hello,  

Jiira/Confluence does not allow to add a new User, currently only 7 User-Accounts were active, we do have just a 10 User Starter. There are huge Exceptions you can see/download here:  

This crash happens when I was inviting a User and he is submitting his Data to register  
<https://www.topcart.com/tmp/confluence_adduser_crash.pdf>  

This crash happens when I am creating a new in Confluence User-Management: <https://www.topcart.com/tmp/confluence_adduser_crash_01.pdf>  

I've noticed the refused Connection here, ServerLogs at the end showing Broken Pipe as well, but I don't know how to deal with that. Both VMs see each other, both can ping them either ways, there is no firewall involved, there a two different HostMachines involved to Host the VMs for Jiira and Confluence.  

We did run Jiira and Confluence on one single VirtualMachine until 2 Weeks ago. Because of those random crashes of the Confluence I wrote here couple of months ago, I've cloned the VM, uninstalled Jirra on one, Confluence from the other, gave the Clone a new IP, told Jiira the IP of the ConfluenceServer and run them. I've done this 2 weeks ago and we did not run into any other trouble so far. Both Servers are not www-online available, only LAN.


Answers:
author: miikhy
body: Hi there,

The only idea I have in mind now would be a local user to edit the directory properties to make sure the IP is the right one, if both Jira and Confluence are connecting through Crowd that should definitely work is the application link is made and the server configuration is OK. As you mentioned, you'd need a local user to edit Crowd properties though...

Best luck!

comments: author: Ruediger Holdmann
body: well... you cannot create a local user in Confluence as long a s Jiira is supposed to be the CrowdServer for it.

As I write, I cannot find any hint what could happen if I would disable external UserManagement in Confluence. I am afraid after doing that there is no logon possible anymore, because all user accounts are related ti Jiira.


author: miikhy
body: You should have the Confluence Internal directory available even if users are coming from another directory. It might not be enabled and therefore you can't pick it up when creating a user but there's definitely an Internal directory somewhere. Please type "User directory" in the search bar and the admin link should pop. From there. you'll be able to re-enable it eventually!

Cheers


author: Ruediger Holdmann
body: found this term in binarys only. No way to go further here.  

Next step would be to disable crowd logon and make them two independent servers. As wrote before, what happens then to the existing users and their files in Confluence? All of them were synced from Jiira. I am stuck.


author: miikhy
body: Hi there!

I guess Confluence is using Jira's directory for its users. Can you make sure your application link have been deleted and rebuilt? IDs mismatch is a common error!

Also, can you make sure JIRA User Server (under User management) is properly configured?

As it's a network issue, it's pretty hard to help you remotely unfortunately!

Let us know if you manage to get it working!

Cheers

comments: author: Ruediger Holdmann
body: Hey Micky, thanks for the reply.

I've rebuilded both links in Jiira and Confluence, but no success. To test I've disabled one User in Jira and checked his Status in Confluence and vice-versa, but no.

User-Management Interface does not show any errors, Captcha is disabled on default.

Then I found this:

<https://confluence.atlassian.com/conf62/connecting-to-crowd-or-jira-for-user-management-902074870.html>

But I cannot change anything unless I would logon as local user, but I cannot add local User at all. So it seems I have to disable external UserManagement first, but what would this then do with the existing Confluence-Accounts? I hope they remain as they are right now.

I found in Confluence-Server "Overview Directory-Configuration, and here is the 'old' IP listed where Confluence is supposed to check/sync UserDirectory.

"crowd.server.url": "<http://192.168.1.14:8080>"

obviously it should be

"crowd.server.url": "<http://192.168.1.40:8080>"

I assume it's a simple config-file somewhere, but I cannot find the given name for this file "atlassian-directory-configuration" anywhere on my Server.. I am gona search for the term like:

sudo grep -ir "crowd.server.url\*" /var/\*

Maybe I get lucky ....


author: Ruediger Holdmann
body: Hey Micky, thanks for the reply.  

I've rebuilded both links in Jiira and Confluence, but no success. To test I've disabled one User in Jira and checked his Status in Confluence and vice-versa, but no.  

User-Management Interface does not show any errors, Captcha is disabled on default.  

But I cannot change anything unless I would logon as local user, but I cannot add local User at all. So it seems I have to disable external UserManagement first, but what would this then do with the existing Confluence-Accounts? I hope they remain as they are right now.  

I found in Confluence-Server "Overview Directory-Configuration, and here is the 'old' IP listed where Confluence is supposed to check/sync UserDirectory.  

"crowd.server.url": "<http://192.168.1.14:8080>"  

obviously it should be  

"crowd.server.url": "<http://192.168.1.40:8080>"  

I assume it's a simple config-file somewhere, but I cannot find the given name for this file "atlassian-directory-configuration" anywhere on my Server.. I am gona search for the term like:  

sudo grep -ir "crowd.server.url\*" /var/\*  

Maybe I get lucky ....


Tags: user-management