Web panel cannot stop a server that was started by UGCCMon Service

Having problems with the panel? Have questions? Post here!
Post Reply
soupcan
Posts: 37
Joined: Tue Sep 08, 2015 4:57 pm

Web panel cannot stop a server that was started by UGCCMon Service

Post by soupcan »

Operating System: Windows Server 2008 R2 x64
Web server: Microsoft IIS 7.5
Install method: Manual
Database being used: sqlite

I can start/stop servers just fine through the web panel if they're started on demand, but when started on boot, it displays the error:
Unable to stop the server due to an unhandled error, please contact support.
The following entry is logged:
Server id 4, pid=2924) Stop Error==Access is denied at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.get_HasExited() at UGCC_Sharp.tools.stopsrvr(Int32 id, String uid, Int32 admin, String& err, dbinterface& sql)
Both the W3SVC and UGCCMon services log on as SYSTEM. When a server is started at boot, it runs as the SYSTEM user, while any servers started on-demand have a username that is the same as the website name in IIS.
Masher
Site Admin
Posts: 3617
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Web panel cannot stop a server that was started by UGCCMon Service

Post by Masher »

The web panel is running as the application pool identity. You'll need to change your application pool identity to be the same as the monitors, or vice versa.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
soupcan
Posts: 37
Joined: Tue Sep 08, 2015 4:57 pm

Re: Web panel cannot stop a server that was started by UGCCMon Service

Post by soupcan »

Yep, it's all good now. Thanks again. :D
Post Reply