Logon Mode of XenApp Servers Changes to "Prohibit logons until server restart" After Scheduled Reboot

Logon Mode of XenApp Servers Changes to "Prohibit logons until server restart" After Scheduled Reboot

book

Article ID: CTX207815

calendar_today

Updated On:

Description

Users' XenApp farm consists of several XenApp servers, and Citrix policy is used to perform scheduled reboot at midnight for these XenApp servers. User found that some XenApp servers' logon mode has unexpectedly changed to "Prohibit logons until server restart".

The issue occurs on random XenApp servers after almost every scheduled reboot.

Resolution

Complete the following steps to avoid such unpredictable reboot timing issues:

  • 1. Separate reboot time of the XenApp server hosted datastore from other member servers. In other words, ensure that the XenApp server hosted datastore reboots at a much earlier time than other member servers.

    OR

  • 2. Remove "Reboot logon disable time" setting from currently scheduled reboot Citrix Policy.

Problem Cause

The behavior is a result of the combination of users' "Reboot logon disable time" setting in Citrix scheduled reboot policy and unpredictable reboot timing between the XenApp server hosting the datastore and other member servers. This issue is easy to reproduce in a simple two XenApp servers farm.

1. Once a XenApp member server completes reboot before XenApp datastore starts up, the IMA service will fail to update the logon mode value "Prohibit logons until server restart"​ in datastore with the new value "Allow logons and reconnections" due to the temporary non-contactable XenApp datastore.
2. Because the update action happens only once after the windows starts up, the logon mode value of the member server in datastore will continue to be "Prohibit logons until server restart"​ till the next LHC refresh time. 
3. After the next sync between datastore and LHC occurs, the IMA service will use the logon mode value in datastore to update current windows logon mode. This is the reason why around 40+ min after the reboot there is a windows event "Logon control mode change to mode: Prohibit logons until server restart".
 

Issue/Introduction

Logon Mode of XenApp Servers Changes to "Prohibit logons until server restart" After Scheduled Reboot