Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


August 28, 2008

Don’t Shoot the Application

When troubleshooting an application error, you might need to look beyond the application to pinpoint the problem
RSS
Subscribe to Windows IT Pro | See More Migration Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
back to blog index

Most of us have heard the expression, “Don’t shoot the messenger” or “Don’t shoot, I’m only the piano player.” That’s still a good admonition when it comes to modern applications that we deal with. Often those ugly errors that we see from application are like a “damsel in distress” calling for help as the freight train speeds toward her.

Let’s take a case of an application that’s used by the A/P and A/R folks at a certain company in the desert southwest, where things get pretty thirsty if the local saloon is shut down. They use Microsoft Dynamics Great Plains, which uses a Microsoft SQL Server-based back end. The server application piece can be installed on its own server or on the SQL Server system for smaller enterprises, and there’s a workstation client piece that’s very much what we IT administrators would refer to as a fat client.

It came about that, although everything was working fine for a year, the billing department called the local administrator with a message of panic about a work stoppage: “We can’t connect or work, so we’re out of business until you get this fixed. Have a nice day!”

At about this time, the administrator emailed me about the problem: “A sidewinder of an error really bit me. I am receiving a message 2759 was missing error on the GP server. The clients cannot connect; they get the error Could not register database trigger. Any ideas, partner?”

I support the client, so I connected remotely and began the “CSI”-like forensic.

First stop was the SQL Server system. For the accidental DBA out there, triggers are a SQL Server object attached to SQL Server table. Something like a stored procedure. So I knew that the error was associated with access to a SQL Server table. Since the Great Plains client was loaded on the server as well, I had the admin join me via a Terminal Services session, and we logged on to the Great Plains application while logged into the SQL server directly without a hitch. I also rechecked all the SQL Server security settings and made sure that the users were members of the DYNGRP and Public groups on those databases regarding the Great Plains Application.

Now we knew that the freight train was not coming from the server. It was time to look at the client machines. A quick look at the SYSTEM DSN on ODBC connections showed us that mixed-mode authentication was indeed working.

I used the Microsoft Dynamics GP Utilities to resync the Great Plains client-configuration files to the servers, but got the same trigger error. The shotgun-blast approach of rebooting the services and the client machines did nothing to resolve the issue.

It was time to ask ourselves deeper questions. The back end is SQL Server 2005. How does a client communicate with the server? And since it was working yesterday, what changed? Perhaps the “surface” of the SQL server was now unreachable. I ran the Surface Area Configuration wizard on the SQL Server 2005 server and zoomed in on Remote Connections.

This configuration ran fine until today. I surmised that this was not an application problem or a SQL Server problem, but rather a network problem. I enabled the option to use both the TCP/IP and named pipes. Named pipes, which are part of the Server Message Block (SMB) suite, are often associated with Windows NT 4.0 authentication.

After I restarted the SQL Server services and clearing the NBT and DNS caches on one of the Great Plains client machines, the authentication went right through. “Whoa! Partner, it’s workin’, and I thought for sure it was the application!” I responded, “Well, sometimes you have to remember not to shoot the application.” I reminded him to check out his network and forest traffic with WireShark and get a rope around what his DCs are doing.

“What say we go over to the saloon and have ourselves a sarsaparilla and watch Rio Bravo on the big screen?” said the admin. “I’ll take a rain check,” I said. “I have to write up the bill, and you have to untie that damsel in distress."

End of Article



Reader Comments
Hello Curt, as usual a well written article but it has left me confused. Why did the application work for so long and then stop working on TCP only? Are you sure it was not just the SQL services that needed the re-start?
Sorry to throw "a spanner in the works"
Kind regards
James

chamezzzz August 28, 2008 (Article Rating: )


James, thanks for your comments! Here's Curt's response: "It seems that all was working while AD was doing well, but if the SPN in the Sql server machine account in Active Directory cannot be read by the client machines then they attempt to call with NBT packets or RPCs. The services were restarted several times but to no avail. If Named/Pipes are blocked to remote machines then the authentication fails. The fact that opening this option allowed the users to continue to work indicated a Network problem and not a SQL problem."

AnneG_editor August 29, 2008 (Article Rating: )


Well researched and clearly written. Great advice and a vluable reminder that many of our apps rely on a lot more than the code base of the desktop client to get the job done.

netmarcos,netmarcos August 29, 2008 (Article Rating: )


Excellent Article. I agree with netmarcos - so many of our apps today rely on many things outside of their control.

As the old saying goes "A chain is only a strong as its weakest link."

JamesNT

JamesNT September 03, 2008 (Article Rating: )


Very informative, and always entertaining. Well done, Curt. :-) Keep 'em coming!

ebrux September 29, 2008 (Article Rating: )


Hmmm, I don't know... I agree with enabling Named/Pipes as a temporary option to bypass and troubleshoot the actual problem, which is why can't clients suddenly find the SPN and connect over TCP anymore. As a permanent solution it would clutter network traffic and disable Kerberos authentication.

CyberNite September 30, 2008 (Article Rating: )


Response from Curt Spanburgh: "We always enjoy intelligent responses to our articles. I was hoping that readers would get the idea to start looking at kerberos authentication and realize that this is the preferred use for authentication. As I am sure you have experienced in the field, most networks are filled with traffic that the administrators are unaware of. I looked back in the "Historical Documents" of Windows 2000 books and repeatedly noticed not more than a page or two of coverage of the Kerberos subject. Not surprisingly then, few of the NT 4.0 convertees were aware or took an interest. Now we are at this place almost a decade later and there is serious catchup to do on the part of many. This was inferred in the article, that the administrator get to work on resolving his network problem while the accounting people continue to run the business."

AnneG_editor October 02, 2008 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.





Search We're in IT
 
We're in IT
NOVEMBER 2008
       1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30       
or

 Recently in We're in IT
Recession and Rebirth: Why IT Matters in Tough Times
Make a Comment
Top 3 IT Stressors
Make a Comment
Do You Drive a Hybrid?

Last Comment
Thanks Curt, Once again, you've provided a great article that hits it on the head. Especially in...
(3 Comments)
Don’t Shoot the Application

Last Comment
Response from Curt Spanburgh: "We always enjoy intelligent responses to our articles. I was hoping t...
(7 Comments)
Beach Blankets and Back Issues Are Author's Beach Essentials
Make a Comment

More blogs about technology,
software, and Windows.

Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing