Welcome to CrankyGoblin.Com Sign in | Join | Help

Public Class GeoffAppleby

Inherits Microsoft.VisualBasic.MVP : Implements IBrainFart
Task configdb has failed with an unknown exception. (WSS v3.0)

I had a problem at work yesterday. We were trying to get WSS v3.0 installed onto a server, and it just wouldn't take. I finally got it working though, with no thanks to google, so I thought I'd blog it in case anyone else hits the same problem.

First, a server description. I was installing onto a server that was setup as such:

  • Windows 2003.
  • Running as a virtual machine in Virtual Server 2005 R2.
  • Joined to a real domain (DEV).
  • I was remoting in using a domain account that was a member of the local administrators group.
  • When it failed that way, I started again by remoting in as the local administrator.
  • WSS was being installed standalone, not as a farm (so it was basic install, not advanced).

The prerequisites were installed (Application Server Role - which means IIS 6.0 with ASP.net 2.0 enabled, .Net 3.0). Due to the beauty of undo disks in virtual server, when things went bad, I was able to roll back and try again without having gunk left around by uninstalls.

No matter what I did, WSS would install, but then the configuration wizard would fail setting everything up - it said there were 10 tasks to perform, and would die on task 2 every single time I tried. The log file shows this:

01/10/2007 12:46:47  8  ERR              Task configdb has failed with an unknown exception
01/10/2007 12:46:47  8  ERR              Exception: System.Data.SqlClient.SqlException: Cannot open database "SharePoint_AdminContent_f368d327-8470-450c-a76f-5a9aad430a19" requested by the login. The login failed.
Login failed for user 'LOCALMACHINE\Administrator'. 

(I changed the computer name from it's real name to LOCALMACHINE to protect the guilty).

Along with this info int he log file it would be followed by a whole heap of stack trace information and stuff, none of which was helpful to me.

So to me it was looking like (assuming a lot of stuff based on reading the log file) it was trying to connect to the database so that it could create the stuff needed for the first time. It was using NTLM auth under the current user to connect to the DB, and for some reason that was failing.

A lot of research later (and knowing that undo disks would save me if I stuffed anything up), I dropped into a command shell and did this:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>psconfig -cmd configdb -create

You can specify things like the server name, database to use, user name and password, but leaving them unspecified uses localhost with the current user.

And it worked.

Restarting the configuration wizard let it continue on past that point, and when it was done I had a working sharepoint site.

Sounds simple, but it took me a few hours to figure out :) I'm happy to have got past the problem, but it's still annoying that I have absolutely no idea WHY this problem was happening. There must have been something special going on that stopped it from working within the configuration wizard - my best guess is that it was caused by remoting in rather than sitting in front of the console, but I can't prove it (since it's a VM I CAN'T sit at the console :)

Posted: Thursday, January 11, 2007 7:17 AM by Geoff Appleby

Comments

Alpesh Nakar said:

Thanks Geoff.

Actually, whilst doing silent, custom path install (on my blog) I read about psconfig.

If for some reason installation has failed and database has been created, trying to install again is painful, as you have experienced.

A user/admin needs to do what you have done. I read this in one of the many documents currently available on Technet.

If I come across that document, I will let you know.

Thank you for sharing this information.

Regards

Alpesh

# January 10, 2007 4:43 PM

Don B. said:

Thank you sooo much for posting about WSS3.0 in your blog.  I too, have been experiencing a less than satisfactory introduction to WSS3.0  My problems have centered around the fact that I am trying to implement an extranet solution where the web server is in domain A in the DMZ and the SQL server is domain B in the trusted network.  This has been a constant struggle as the GUI installer basically doesn't work unless the Web server and SQL server are in the same NT domain.  How absurd!!! Of course the security folks laughed at the notion of creating a trust between domains or having a server physically on the inside network being a member of an externally facing domain.  Anyway your comments on PSCONFIG helped lead me to a new google thread where it seems that after a month of being stuck I'm starting to make progress again.

# January 18, 2007 11:35 PM

James peckham said:

Hey man your install failed because the sql database doesn't have an account for localmachine/administrator. We had this problem installing it in our company as well. I believe you need to add an account to your SQL server instance for your administrator account (windows auth) then you'll be ok! (it has to have sysadmin privelages, but make sure to remove them after  the install!)

# February 15, 2007 11:33 AM

gucs said:

工作需要,我开始了解WindowsSharePointService,从周五晚上开始,VMWare里的Vista变成了Windows2003,昨天选装了VisualStudioO...

# August 12, 2007 11:37 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

To submit your comment, click on these pictures:
  • Geoff with sunglasses
  • Geoff's mother (normal)
  • Geoff's foot
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Can't recognise the people in these pictures? Look here for a quick introduction.
There's a time limit for you to get your comment submitted before this set of pictures expires. If you think it's been longer than 10 minutes, get some new pictures first (you won't lose what you've typed so far).
Get some new pictures 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS