none
Problem with configuring R server on computer with Swedish Windows. RRS feed

  • Question

  • Hello.

    After installing Microsoft R Server 9.1.0 on my computer I follow the guide published on Microsofts docs. 
    https://docs.microsoft.com/en-us/r-server/install/operationalize-r-server-one-box-config

    However when the Admin utility runs the Powershell script file to configure the Compute Node (o16n_computenode_config.ps1) it runs into this exception:

    "Exception calling "SetOwner" with "1" argument(s): "En eller flera identitetsreferenser blev inte (a distorted symbol instead of the proper Swedish character)versatt."
    At C:\Program Files\Microsoft\R Server\R_SERVER\o16n\o16n_computenode_config.ps1:343 char:5"

    And also:

    "Exception calling "AddAccessRule" with "1" argument(s): "En eller flera identitetsreferenser blev inte (a distorted symbol instead of the proper Swedish character)versatt."
    At C:\Program Files\Microsoft\R Server\R_SERVER\o16n\o16n_computenode_config.ps1:357 char:9"


    After looking into the specific lines in the .ps1 file it looks to me that the exceptions happen when the process is trying to access the builtin\administrators users and find the standard admin account which on a Swedish Windows have a non-English character in it which we believe causes the exception. 

    The code lines in question:

    #set Administrator as owner
    $ID = new-object System.Security.Principal.NTAccount($Admins)
    $acl.SetOwner($ID) >> $logFile

    And 

    if ((Get-Item $dir) -is [System.IO.DirectoryInfo])
        {
            $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("$Admins","FullControl", "ContainerInherit, ObjectInherit", "None", "Allow") 
        }
        else
        {
            $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("$Admins","FullControl",,,"Allow") 
        }
        try
        {
            $acl.AddAccessRule($rule)
        }


    So my question pretty much boils down to this.
    Has anyone else run into this problem? Is the exception caused, as we believe, by the non-English character or could it be something else? Is it there a workaround to make it work?


    Sincerely
    Nfourx


    • Edited by Nfourx Monday, August 14, 2017 7:34 AM
    Monday, August 14, 2017 7:34 AM

All replies

  • Hi,

    As was suggested in the SO thread, why don't you rename the admin account.

    Niels


    http://www.nielsberglund.com | @nielsberglund

    Tuesday, August 15, 2017 2:38 AM
  • Didn't help

    $dir = "c:\1"

    mkdir $dir

    $acl = (Get-Item $dir).GetAccessControl('Access')

    $ID = new-object System.Security.Principal.NTAccount($Admins)

    $acl.SetOwner($ID)

    Exception calling "SetOwner" with "1" argument(s): "Some or all identity references could not be translated."

    At line:1 char:1

    + $acl.SetOwner($ID)

    + ~~~~~~~~~~~~~~~~~~   

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException   

    + FullyQualifiedErrorId : IdentityNotMappedException


    Monday, August 19, 2019 11:52 AM