?
Solved

Win2k3 server print and term services lock and fail

Posted on 2009-04-16
14
Medium Priority
?
640 Views
Last Modified: 2013-11-21
I have a reoccurring issue where print services not running is the first indicator of what I see as a larger issue where in which terminal services fail as well.

Server - windows 2003 server SP2

Error code from event viewer:
Event ID: 7031
Source: Service Control Manager
description: The Print Spooler service terminated unexpectedly.  It has done this 2 time(s).  The following corrective action will be taken in 60000 milliseconds: Restart the service.

I'll have a user state they can not print. I'll check the print spooler under services and restart, it will restart but then fail shortly afterwards. A symptom that occurs during this event is that I am unable to remote desktop into the server at this time.
0
Comment
Question by:elratanegra
14 Comments
 
LVL 4

Expert Comment

by:dj_relentless
ID: 24165274
Ask yourself what print drivers have been changed recently or what printers have been brought/added.
Are you using universal print drivers or specific ones?
If the spooler crashes again instantly it's possible that the print job is still in the spool folder which will help you find out who was printing to what printer.
So next time someone says they can't print find out what printer they were printing too, it might not be that one causing it but most likely that or the one that was used just prior. The event logs will be able to tell you which printer was submitted a print job prior to the incident.
0
 
LVL 6

Expert Comment

by:activephoto
ID: 24170442
Can you provide some more information?
How many printers do you have on the server?
what print drivers are you using?
What print processors are used with the print queues?
Print processors and port/language monitors are commonly a problem causing spooler crashes
/ Mikael
0
 

Author Comment

by:elratanegra
ID: 24205874
I believe I have resolved the print spooler issue.
Last week I removed some printers from the setup that were no longer installed. Updated all printer drivers from the manufacturer sites.

I am still getting locked out of RDP though from time to time. I am wondering if our Citrix farm utelizes the Terminal Service licenses???
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:elratanegra
ID: 24219315
Does citrix XP presentation use Microsoft Terminal Licenses?
0
 

Author Comment

by:elratanegra
ID: 24263256
This is looking more and more like a citrix related issue.

I have noticed recently that a few misc. users had pop up errors when logging into citrix regarding not being able to set there profile and instead set to a local profile. This made me look into home drive folder permissions and saw that they were set to have full control but did not. This mean that the profile folder was inaccessible. When I tried to RDP into the file server the rdp would not work. I was able to login at the console and reboot the server and all the issues ceased. BUT THEY WILL RETURN...

Anyone have any idea what is going on?

We use citrix presentation server xp
0
 
LVL 7

Expert Comment

by:dphantom
ID: 24263744
RDP is a MS TS issue, not Citrix.  By rebooting the server and you can now RDP in, I would look to TS first.

As for the users, what were the errors.  Profile corruption is possible and certainly incorrect permissions will cause problems but again that is not necessarily a Citrix problem.

Do you have any Event Viewer data showing event id and source?
0
 
LVL 7

Expert Comment

by:dphantom
ID: 24263757
And yes, Citrix requires a MS Terminal Server Licensing Server with the number of TS CALs to support your Citrix users plus the Citrix licenses.
0
 

Author Comment

by:elratanegra
ID: 24263869
I understand that this might have something to do with the TS license count and citrix use of those licenses. But I hardly believe that it is profile corruption, when I reset the file server all the error messages cleared up. Had to do with not being able to write to the profile folder (their home drive) and then the RDP would lock up and a cascade of events would occur.
I had thought that citrix did use TS licenses so I suspect that is where our problem lies then. So are you familiar with these permission issues occuring when citrix uses up all the TS licenses?
0
 
LVL 7

Expert Comment

by:dphantom
ID: 24263920
First,  need to know what the error message the user is receiving - verbatim.  Then, any event viewer errors with event id and source related to this error.  What version of Citrix are you using?
0
 

Author Comment

by:elratanegra
ID: 24264082
I can not give you the error verbatim unless it occurs again as I did not record the error. (my bad)

The error stated as close as I recall that it was unable to set the roaming profile and would hand out a local profile instead.

The only error I see in the logs is an ID:1111 error when TS attempts to setup the desktop printers to the session.
Driver Microsoft Office Document Image Writer Driver required for printer Microsoft Office Document Image Writer is unknown. Contact the administrator to install the driver before you log in again.

On the citrix server:
event ID: 1500
Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, or that your network is functioning correctly. If this problem persists, contact your network administrator.
event ID: 1521
Windows cannot locate the server copy of your roaming profile and is attempting to log you on with your local profile. Changes to the profile will not be copied to the server when you logoff. Possible causes of this error include network problems or insufficient security rights. If this problem persists, contact your network administrator.  

 DETAIL - Access is denied.

Citrix - Metaframe XP
0
 
LVL 7

Expert Comment

by:dphantom
ID: 24264166
One thing to check since you say this is happening only to some users, not all is to look at their roaming profile path in teh terminal services profile tab.  More detail below from a web search.  Another possibility is a missing "default user" profile on one of your Citrix servers.  Verify this default user profile is present.  IF not, copy one from another server.

"Investigation of the problem showed that this user had an incorrect "Terminal Services Profile" path. Instead of two slashes before a server name there was only one. This caused the system not to look for a profile on a network server, but on a local HDD. When an appropriate directory was not found, the system was attempting to create one. Because our users are forbidden to create files and folders in a root directory, this resulted in an "Access Denied" message seen in a File Monitor and a temporary profile for a user being created. "
0
 

Author Comment

by:elratanegra
ID: 24264265

the path is not incorrect. I looked into that. As I stated... once I rebooted everything cleared up.

When I was able to get logged on with one of the users I did see that the user was not granted permissions to their home drive where their profile is located. After the reboot with no other changes, the user was then able to log in and access that drive and upon logging into the session did not recieve this message again.

We have 60 citrix user licenses but only 44 TS licenses...not all users log in at once as there is a morning and an afternoon shift but there is an overlap when I think this may be occurring. I had noticed that earlier after fixing the print spooler issue the RDP locked me out but then after a couple hours I was able to regain access again.
0
 

Author Comment

by:elratanegra
ID: 24270750
my main concern is with the profile lock outs and the assumption that TS licenses at some point are not getting released and binding up with citrix sessions. I am looking at the time outs for sessions currently and will report this finding here.
0
 

Accepted Solution

by:
elratanegra earned 0 total points
ID: 24335848
since the last entry I applied "poolusagemaximum" recomendation from microsoft site http://support.microsoft.com/?kbid=935649

I have not experienced the terminal session lock since last friday after applying these entries into the registry.

Please refund points
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found listed in my profile here: http:…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question