As was announced yesterday, Service Pack 1 has been released for Commerce Server 2007. This service pack includes support for Windows Vista, the ability to create web application projects in Visual Studio 2005, performance and security enhancements, and a slew of bug fixes.
I have detailed the process for installing SP1 and upgrading your CS sites in the following posts: Commerce Server 2007 Service Pack 1 (SP1) Walkthrough and Commerce Server 2007 Upgrade Wizard (post SP1 install) Walkthrough.
While installing SP1 I encountered a rather strange problem. Let me try to explain how the problem occurred, and what I did to resolve it.
To begin, I decided to upgrade my Commerce Server 2007 virtual machine to SP1. To begin, I did the following:
Why did I reboot the machine after only upgrading one site? Well, I'm not exactly sure. Part of me wanted to see what would happen with only one site upgraded, and another part wanted to upgrade one site at a time while rebooting in-between. Regardless, I rebooted after installing only the CSharpSite.
After rebooting, here was my first indication that something was wrong.
So, I immediately went to the Event Viewer. I saw a number of errors involving the SQLSERVERAGENT, Commerce Server, and ENTSSO. Here's a look at the various errors in the log (the reboot occurred around 10:52 am ... some of these other errors were thrown from my playing around before I resolved the problem):
I should note that the system was previously very healthy, as I use this VM all the time while writing the book Professional Commerce Server 2007 for WROX. In fact, I had been using the computer with no problems immediately before installing the service pack.
So, at this point it was clear that:
Obviously, something here is wrong, and SQL Server seemed to be at the heart of it.
The next thing I did was try to connect to SQL Server 2005. Using the SQL Server Management Studio, I tried to login with my Windows credentials. I wasn't surprised to see that I couldn't:
"A connection was successfully established to the server, but then an error occurred during the pre-login handshake. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 223)" (copied directly from dialog window)
I have never seen this error before, but wasn't surprised to see that I couldn't find anything anything on Google or Live (although, hopefully this post will come up in the future). Sure, various iterations of the first part can be found, but nothing seems applicable to this situation.
So, I decide to poke around. What bothered me was that SQL Server (MSSQLSERVER) was running yet I couldn't connect to it, and the SQL Server Agent (MSSQLSERVER) itself couldn't start. Even my attempts to manually start the service failed. Here's a look at SQL Server Configuration Manager:
Also, I attempted to connect to Commerce Server by running the Upgrade Wizard ... it didn't start, nor did I receive an error. It simply didn't start.
For some reason, one thing jumped out at me -- I was running as LocalSystem rather than NT AUTHORITY\NetworkService. Could this have something to do with it?
Not having any other ideas, I changed both SQL Server and SQL Server Agent to "Log on as" the "Network Service" (NT AUTHORITY\NetworkService) instead of the LocalSystem account. I then restarted SQL Server 2005 and the SQL Server Agent. Lo and behold, the SQL Server Agent started-up!
A little baffled, but encouraged that I was on track to resolving the problem (even if I don't understand the root cause), I tried to connect to SQL Server 2005. Sure enough, I was able to login to the database server and interact with the various databases. I also attempted to connect to the Commerce Server 2007 Upgrade Wizard, which immediately started with no problems.
Since I wasn't too confident with the state of the computer (given that some services still weren't started), I decided to restart the computer. It restarted without a single error, and I was able to run the Upgrade Wizard successfully to upgrade the StarterSite.
At this point I don't quite know why there was a problem with the LocalSystem account after I installed SP1 for Commerce Server 2007. I intend to do a little more research to look into it.
Have any of you encountered this problem? Can you shed some light on the situation?
Thanks, and I hope this helps!
Remember Me
a@href@title, b
Page rendered at Tuesday, January 06, 2009 9:22:52 AM (Central Standard Time, UTC-06:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.