Starting a few weeks ago (No server changes since then) every day or two it seems the GP Session Services quits working properly.
The service stays running but new sessions are not able to be created, while being able to access previously created sessions.
The only event that coincides with the timing of this is:
An error occurred during session monitoring: 'System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementObjectSearcher.Get()
at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionHostMonitor.get_MemoryAvailableMBytes()
at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionHostMonitor.get_MemoryUtilization()
at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionMonitor.CreateSessionHostStatus(DateTime lastStatusUpdate)
at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionMonitor.DoCleaningAndReporting(SessionCleaner cleanerInstance, SessionReportingInfo optionalTerminatedSessionReportingInfo)'.
I have went through steps for a similar issue for another module and have ensured the service account has logon locally, logon as batch and logon as service.
Restarting the service resolves the issue but is not a fix considering the random timings and how often.