Error when installing Exchange 2013 (in an existing Exchange 2010 environment)

MatthewDK
MatthewDK used Ask the Experts™
on
During the setup of the mailbox role, the Exchange 2013 installation wizard returned the following error and halted...

[07/30/2015 16:32:29.0946] [1] The following error was generated when "$error.Clear();
          if (!$RoleIsDatacenter -and !$RoleIsDatacenterDedicated)
          {
            $createNewOab = $false;
            $oabName = $null;
            $oabAddressList = $null;
            $oabVdirs = $null;
            $oabGlobalWebDistribution = $false;
            $oabConfiguredAttributes = $null;

            Write-ExchangeSetupLog -Info ("Looking for an existing default OAB");
            $defaultOab = Get-OfflineAddressBook -DomainController:$RoleDomainController | where {$_.IsDefault};
            if ($defaultOab -ne $null)
            {
              Write-ExchangeSetupLog -Info ("Found a default OAB: " + $defaultOab.Name + "; checking its version");
              if ($defaultOab.ExchangeVersion.CompareTo([Microsoft.Exchange.Data.ExchangeObjectVersion]::Exchange2012) -lt 0)
              {
                $e15Oab = Get-OfflineAddressBook -DomainController:$RoleDomainController | where {$_.ExchangeVersion.CompareTo([Microsoft.Exchange.Data.ExchangeObjectVersion]::Exchange2012) -eq 0};
                if ($e15Oab -eq $null)
                {
                  Write-ExchangeSetupLog -Info ("Existing OAB is Exchange 2010 or older; will create a new OAB");
                  $createNewOab = $true;
                  $oabName = $defaultOab.Name + " (Ex2013)";
                  $oabAddressList = $defaultOab.AddressLists;
                  $oabGlobalWebDistribution = $defaultOab.GlobalWebDistributionEnabled;
                  $oabConfiguredAttributes = $defaultOab.ConfiguredAttributes;
                }
                else
                {
                  Write-ExchangeSetupLog -Info ("Already has an existing Exchange 2013 OAB:" + $e15Oab.Name + "; will not create a new OAB");
                }
              }
              else
              {
                Write-ExchangeSetupLog -Info ("Existing OAB is Exchange 2013 or newer; will not create a new OAB");
              }
            }
            else
            {
              Write-ExchangeSetupLog -Info ("Did not find a default OAB; will create one");
              $createNewOab = $true;
             
              $oabName = [Microsoft.Exchange.Data.Directory.SystemConfiguration.OfflineAddressBook]::DefaultName;
              $nonDefaultOabWithDefaultName = Get-OfflineAddressBook $oabName -DomainController:$RoleDomainController -ErrorAction SilentlyContinue | where {$_.IsDefault -eq $false};
              if ($nonDefaultOabWithDefaultName -ne $null)
              {
                $createNewOab = $false;
                Write-ExchangeSetupLog -Warning `
                  ("Offline address book " + `
                  $nonDefaultOabWithDefaultName.Name + `
                  " already exists: " + `
                  $nonDefaultOabWithDefaultName.DistinguishedName + `
                  ". Use administrative tools to change it to default OAB.");
              }

              $allGals = @(Get-GlobalAddressList -DomainController:$RoleDomainController | where {$_.IsDefaultGlobalAddressList});
              if ($allGals -eq $null -or $allGals.Count -eq 0)
              {
                $createNewOab = $false;
                Write-ExchangeSetupLog -Warning `
                  ("Couldn't find the default global address list. The default offline address book can't be created.");
              }
              elseif ($allGals.Count -gt 1)
              {
                $createNewOab = $false;
                Write-ExchangeSetupLog -Warning `
                  ("Found " + $allGals.Count + " default global address lists. You can have only one default global address list in your organization. The default offline address book will not be created.");

We do have two global address lists.  One is named Default Global Address List and the other is Company Name Addresses.

I am not able to browse/edit our public folders using the Public Folder Management Console for some reason.  It indicates it is not connected to a server, and I cannot manually connect to either of our two Exch 2010 HT/CAS/MB servers.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Schnell SolutionsSystems Infrastructure Engineer

Commented:
Do you have more than one Global Address List as default?

Please, execute the following commandlet in EMS:

Get-GlobalAddressList | Format-List Name,IsDefaultGlobalAddressList

If this is the case, Let's ensure that just one appears showing "True". If not, we will set it for having just one default GAL

Author

Commented:
The Default Global Address List comes back as True while the other comes back as False.
Schnell SolutionsSystems Infrastructure Engineer

Commented:
Which ones are the names? and how many?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Here's what the output of the command you suggested I use is...

Name                                        : Default Global Address List
IsDefaultGlobalAddressList  :  True

Name                                        :  Company Name Addresses
IsDefaultGlobalAddressList  :  False
Schnell SolutionsSystems Infrastructure Engineer

Commented:
Let's allow that Exch 2013 creates its OAB using its default name. In this case we can rename the one used for Exch 2010 at the moment.

You can change this name with the following command let in EMS:

Set-OfflineAddressBook "Default Global Address List" -Name "Default Global Address List 2010"

Author

Commented:
We do not have an OfflineAddressBook named Default Global Address List. I've attached the output from the command Get-OfflineAddressBook | fl.  In that file, OAB2 is the offline address book that is assigned to our mailbox databases.
OfflineAddressList-output-2.txt
Systems Infrastructure Engineer
Commented:
Good. Did you notice that the first OAB is pointing to a deleted or non-existing DB. We need to resolve this issue. We have many options here:
- Mount the missing DB
- Delete that OAB if is not in use and is not referred to any mailbox database
- Quit that it saves/publish its information into the deleted DB

Author

Commented:
No mailbox databases were referring to the first OAB, so it has been deleted. Do any services need to be restarted prior to attempting to resume the 2013 installation?

Author

Commented:
Deleting the Offline Address Book that was pointing to a deleted public folders database allowed me to continue with the installation.
Schnell SolutionsSystems Infrastructure Engineer

Commented:
Great

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial