Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-27338

Cannot use JIRA for User Management during Installation - process hangs and will not continue

      Steps to Reproduce

      1. Install Confluence 4.3.3
      2. Run through the setup wizard and select JIRA for User Management
      3. Enter your JIRA server credentials
      4. The page will not move forward, the next button is greyed out, and you will see this error in the logs:
        2012-11-23 16:06:17,232 ERROR [Long running task: Synchronising JIRA Directory] [confluence.setup.actions.ConnectToJiraSyncDirectoryAction$SyncJiraDirectoryLongRunningTask] doInTransactionWithoutResult User <admin> does not exist
         -- referer: http://localhost:10433/setup/connecttojirasyncdirectory-start.action | url: /setup/connecttojirasyncdirectory-start.action | userName: anonymous | action: connecttojirasyncdirectory-start
        com.atlassian.crowd.exception.UserNotFoundException: User <admin> does not exist
        

        where <admin> is the admin user in JIRA, and does exist.

      See the attached log for the full stack trace and errors.

      NB: A similar error occurred in Confluence 4.3.2, but the error in the logs is this:

      2012-11-23 16:26:32,309 ERROR [http-10432-1] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
       -- referer: http://localhost:10432/setup/connecttojira-start.action | url: /setup/connecttojirasyncdirectory-start.action | userName: anonymous
      java.lang.NullPointerException
              at com.atlassian.confluence.setup.actions.ConnectToJiraSyncDirectoryAction.getInternalDirectoryId(ConnectToJiraSyncDirectoryAction.java:81)
      

      Sometimes there is no error, but the page hangs at

      The last line in the logs is:

      2012-11-23 17:33:57,401 INFO [Long running task: Synchronising JIRA Directory] [atlassian.crowd.directory.DbCachingRemoteChangeOperations] findGroupsToUpdate scanned and compared [ 42 ] groups for update in DB cache in [ 6ms ]
      

      Again see the attached 4.3.2 log for full error and stack trace.

      Workaround

      1. Clean the Confluence install by backing up and removing the contents of <confluence-home>, and backing up the database.
      2. Run the installation again
      3. Select to Continue and Overwrite Existing Data in the database, and continue
      4. Instead of choosing JIRA for User Management, select to Manage Users and Groups Within Confluence
      5. Create an admin account
      6. Once you are into Confluence, set up JIRA as a User Directory by following these instructions

        1. atlassian-confluence-432.log
          26 kB
        2. atlassian-confluence-433.log
          34 kB
        3. CONF-27338-attachments.zip
          60 kB
        4. jirausermgmt.png
          jirausermgmt.png
          22 kB

            [CONFSERVER-27338] Cannot use JIRA for User Management during Installation - process hangs and will not continue

            This issue is actually being handled in CONF-31129, and has been resolved in the 5.4.3, which will be the next bugfix release of Confluence. There is no scheduled date for the release currently, but we expect it to be within the next few weeks.

            Please watch that bug report for further updates.

            -Denise
            Atlassian Support

            Denise Unterwurzacher [Atlassian] (Inactive) added a comment - This issue is actually being handled in CONF-31129 , and has been resolved in the 5.4.3, which will be the next bugfix release of Confluence. There is no scheduled date for the release currently, but we expect it to be within the next few weeks. Please watch that bug report for further updates. -Denise Atlassian Support

            Doron Givoni added a comment - - edited

            Also got that issue, installing atlassian-confluence-5.4.1-x64.bin

            The following is also a workaround

            vi /opt/atlassian/confluence/confluence/setup/connecttojirasyncdirectory.vm

                1. line 18
                  From ---- #if ($action.task && !$action.task.complete) disabled="disabled" #end >
                  To ---- #if ($action.task && !$action.task.complete) activated="activated" #end >

            Restart, after this everything works, seems like a simple fix.

            Doron Givoni added a comment - - edited Also got that issue, installing atlassian-confluence-5.4.1-x64.bin The following is also a workaround vi /opt/atlassian/confluence/confluence/setup/connecttojirasyncdirectory.vm line 18 From ---- #if ($action.task && !$action.task.complete) disabled="disabled" #end > To ---- #if ($action.task && !$action.task.complete) activated="activated" #end > Restart, after this everything works, seems like a simple fix.

            Thanks Sona Husakova for your workaround, my installation works this time. @Minlog Australia, try using notepad to edit, then save.

            Lamer Morales added a comment - Thanks Sona Husakova for your workaround, my installation works this time. @Minlog Australia, try using notepad to edit, then save.

            This is still happening in Confluence 5.3.4
            The sync process completes successfully as per @Sona Husakova's workaround
            but the confluence.cfg.xml is not updated

            Minlog Australia added a comment - This is still happening in Confluence 5.3.4 The sync process completes successfully as per @Sona Husakova's workaround but the confluence.cfg.xml is not updated

            I use Confluence 5.3 and JIRA 6.1. I had a problem in Wizard Confluence in part "Load users and groups from JIRA". This Wizard stopped and button "Next" was inactive. Synchronisation with JIRA was completed successfully and local administrator account was created.

            I made the following:
            1. Shutdown Confluence.
            2. Rewrite <setupStep>connecttojirasyncdirectory-start</setupStep> to <setupStep>complete</setupStep> in file confluence.cfg.xml.
            3. Startup Confluence and Log In to application.

            Slightly non-standard solution, but it works.

            Sona Husakova added a comment - I use Confluence 5.3 and JIRA 6.1. I had a problem in Wizard Confluence in part "Load users and groups from JIRA". This Wizard stopped and button "Next" was inactive. Synchronisation with JIRA was completed successfully and local administrator account was created. I made the following: 1. Shutdown Confluence. 2. Rewrite <setupStep>connecttojirasyncdirectory-start</setupStep> to <setupStep>complete</setupStep> in file confluence.cfg.xml. 3. Startup Confluence and Log In to application. Slightly non-standard solution, but it works.

            Jason Turner added a comment - - edited

            The key word is "workaround". Atlassian should either remove the option from the setup process or fix it. Turns out I have to reinstall again because apparently I needed to install the OnDemand version of Confluence in order to restore my OnDemand data. When in doubt reinstall

            Jason Turner added a comment - - edited The key word is "workaround". Atlassian should either remove the option from the setup process or fix it. Turns out I have to reinstall again because apparently I needed to install the OnDemand version of Confluence in order to restore my OnDemand data. When in doubt reinstall

            Michael S added a comment -

            william10 the workaround is to wipe the 5.3.1 home directory (in order to force a new installation), go through the usual set up procedure and when prompted choose internal user management rather than JIRA. Once this is completed, you can set up JIRA integration through the admin UI.

            Michael S added a comment - william10 the workaround is to wipe the 5.3.1 home directory (in order to force a new installation), go through the usual set up procedure and when prompted choose internal user management rather than JIRA. Once this is completed, you can set up JIRA integration through the admin UI.

            Same here, I'm stuck using Confluence 5.3.1 and Jira 6.1.1 build 6155 with Postgre databases.

            William Rodriguez added a comment - Same here, I'm stuck using Confluence 5.3.1 and Jira 6.1.1 build 6155 with Postgre databases.

            I just experience this problem with Confluence 5.3

            Jason Turner added a comment - I just experience this problem with Confluence 5.3

            Attached CONF-27338-attachments.zip with logs and screenshot.

            Ignat (Inactive) added a comment - Attached CONF-27338 -attachments.zip with logs and screenshot.

              jhoarau Julien Michel Hoarau (Inactive)
              dunterwurzacher Denise Unterwurzacher [Atlassian] (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              18 Start watching this issue

                Created:
                Updated:
                Resolved: