Symptoms
When installing K2 blackpearl 4.6.8 and newer in environments where AD DS domain controllers are using localized version of Windows Server (i.e. use non-English versions of Windows) K2 Setup Manager reports an error for “Log on as a batch job” check:
Log on as a batch job
---------------------
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Objectb] args)
at System.String.Format(IFormatProvider provider, String format, Objectb] args)
at SourceCode.Configuration.Checklist.Tasks.SecurityPolicies.MyResult.GenerateView(IDataView view)
at SourceCode.SetupManager.ConfigCheck.UpdateTaskView(Task task)
This error message language depends on OS language of K2 server on which K2 installation is being performed (i.e. this message can be localized if your server OS is localized), but presence of this error itself depends on domain controller OS language (there is no such issue in case English version of Windows is installed on DC).
Diagnoses
This is known issue with K2 Setup Manager which fails to perform check/repair for “Logon as a batch job” step of Configuration Analysis in environments where AD DS domain controller OS language is other than English (e.g. Russian, French, German). To workaround this you should grant Domain Users group “Logon as a batch job” right on the K2 server where you perform your installation. Once you verified that this right is granted you may safely ignore this error.
This error arise only in environments with localized OS on AD DS domain controllers.
Please also note that it is generally accepted best practice to have English versions on all your Microsoft back end systems (AD DS especially) and use localized versions only on user facing servers where it is absolutely necessary. There are different examples of issues specific to localized Microsoft software, when localized software does not always play well with other localized/non-localized infrastructure components.
Resolution
Grant “Logon as a batch job” right to “Domain Users” group on the K2 server and/or verify that it has been granted and ignore this error message.