0

I was following this blog about renaming host headers on web applications. Not thinking clearly, I started to remove the central admin web app from iis before extending the web app again with a new host header. This worked fine on every other web app, but of course I was ON central admin when doing this, so immediately got a page not found error. Now I can't get to CA. Site is started, app pool is started.

I've tried the following to try and restore it to the way it was:

  1. Manually removing central admin from iis

    Remove-SPWebApplication -identity http://sp2013:54321 -Zone Default -Confirm

Error: The given key was not present in the dictionary.

  1. Extending the web app

    Get-SPWebApplication -Identity http://sp2013:54321 | New-SPWebApplicationExtension -Name Central Admin -HostHeader centraladmin.domain.com -Zone Default -URL http://centraladmin.domain.com -Port 54321

Error: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.

  1. Use PSconfig to unprovision / reprovision psconfig.exe -cmd adminvs -unprovision - Goes through fine. psconfig.exe -cmd adminvs -provision -port <originalport> -windowsauthprovider onlyusentlm - Port already used, choose a different port. psconfig.exe -cmd adminvs -provision -port <newport> -windowsauthprovider onlyusentlm - The log says: An exception of typeSystem.Collections.Generic.KeyNotFoundException was thrown. Additional exception information: The given key was not present in the dictionary.

  2. Use the Product Config wizard to remove / re-add (re-provision) Central Admin Select "Remove CA from this server" during wizard. Wizard completes successfully. Says server does not host CA anymore. I go to the CA url.. it's still there, asks me to authenticate, and then page not found.

Go through wizard again (won't let me select the old port), I select a new port, go through the wizard... failed. The log says: An exception of typeSystem.Collections.Generic.KeyNotFoundException was thrown. Additional exception information: The given key was not present in the dictionary.

  1. New-SPCentralAdministration -port <newport> Error: The given key was not present in the dictionary

Ran Get-SPServiceInstance | Where-Object {$_.Id –eq ‘2f93c864-85c4-4cf2-ab76-2c151826d707’} | Start-SPServiceInstance to re-enable it from from disabled state, but still get page not found. No loopback issues. Same inside and outside of server.

Some Unexpected ULS events (I love "ignoring weird value".. sounds pretty technical) enter image description here

I'm out of ideas here. Can I save my CA?

I have googled all these errors, so I don't think there's any article you can send me that I haven't already read. If you have some experience with something like this and was able to solve it, I would be greatful to hear about it.

1

Hmmm...typically re-provision the central admin would work, but since you've done so many things before trying reprovision, it could break the settings.

But as long as you have the database intact, untouched, undeleted, try to disconnect farm from SharePoint Configuration Wizard. Then you try to connect again to the same farm, same database name (typically its name is SharePoint_Config), same credential. Then Configuration Wizard will try to reprovision or reconfigure the whole thing.

That's just my experience that I've experienced once long time ago in UAT stage, I may not remember the whole thing, but I hope you get the idea.

  • That's a good idea. I tried it but go a configuration error. An exception of type System.NullReferenceException was thrown. Additional exception information: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. At this point, I have spent as much time troubleshooting this as I have setting up the farm in the first place. Just gonna start over. Thanks. – spex5 Sep 25 '14 at 14:48
  • 1
    Or else you have to scrap all of it with the new farm as the last resort. But keep the content database intact, so your content would still be safe, and you still can restore the content later. – Radityo Ardi Sep 25 '14 at 14:53
  • Not much content. Just configured all the service apps, web apps, site collections with no data yet. Just better to start from scratch. Thanks again. – spex5 Sep 25 '14 at 14:57
  • That's ok then. No problem. – Radityo Ardi Sep 25 '14 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.