{"action":"created","issue":{"url":"https://api.github.com/repos/mefellows/vagrant-windows-domain/issues/18","repository_url":"https://api.github.com/repos/mefellows/vagrant-windows-domain","labels_url":"https://api.github.com/repos/mefellows/vagrant-windows-domain/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/mefellows/vagrant-windows-domain/issues/18/comments","events_url":"https://api.github.com/repos/mefellows/vagrant-windows-domain/issues/18/events","html_url":"https://github.com/mefellows/vagrant-windows-domain/issues/18","id":293411048,"number":18,"title":"Rename fails with \"computer account could not be found\"","user":{"login":"gurry","id":1068853,"avatar_url":"https://avatars0.githubusercontent.com/u/1068853?v=4","gravatar_id":"","url":"https://api.github.com/users/gurry","html_url":"https://github.com/gurry","followers_url":"https://api.github.com/users/gurry/followers","following_url":"https://api.github.com/users/gurry/following{/other_user}","gists_url":"https://api.github.com/users/gurry/gists{/gist_id}","starred_url":"https://api.github.com/users/gurry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurry/subscriptions","organizations_url":"https://api.github.com/users/gurry/orgs","repos_url":"https://api.github.com/users/gurry/repos","events_url":"https://api.github.com/users/gurry/events{/privacy}","received_events_url":"https://api.github.com/users/gurry/received_events","type":"User","site_admin":false},"labels":[{"id":171828495,"url":"https://api.github.com/repos/mefellows/vagrant-windows-domain/labels/help%20wanted","name":"help wanted","color":"159818","default":true},{"id":824618832,"url":"https://api.github.com/repos/mefellows/vagrant-windows-domain/labels/triage","name":"triage","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T05:47:47Z","updated_at":"2018-02-02T07:35:53Z","closed_at":null,"author_association":"NONE","body":"The rename step is failing for me with the following error:\r\n\r\n> \r\n> Rename-Computer : Fail to rename computer 'vagrant-2016' to 'tchn-app-server' due to the following exception: The\r\n> specified computer account could not be found. Contact an administrator to verify the account is in the domain. If the\r\n> account has been deleted unjoin, reboot, and rejoin the domain.\r\n\r\nalthough the preceding step to join the computer to the domain seems to have succeeded.\r\n\r\nFull error text:\r\n\r\n> app: Running provisioner: windows_domain...\r\n> Connecting guest machine to domain 'acme.local' with computer name 'tchn-app-server'\r\n> ==> app: \"Running Windows Domain Provisioner\"\r\n> VERBOSE: Performing the operation \"Join in domain 'acme.local'\" on target \"vagrant-2016\".HasSucceeded ComputerName             ------------ ------------             True         vagrant-2016             WARNING: The changes will take effect after you restart the computer vagrant-2016.VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".Rename failed, Retrying in 5 seconds...VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".Rename failed, Retrying in 5 seconds...VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".Rename failed, Retrying in 5 seconds...VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".Rename failed, Retrying in 5 seconds...VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".Rename failed, Retrying in 5 seconds...VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".Rename failed the maximum number of 5 times.\r\n> Rename-Computer : Fail to rename computer 'vagrant-2016' to 'tchn-app-server' due to the following exception: The\r\n> specified computer account could not be found. Contact an administrator to verify the account is in the domain. If the\r\n> account has been deleted unjoin, reboot, and rejoin the domain.\r\n> At C:\\tmp\\vagrant-windows-domain-runner.ps1:36 char:4\r\n> +             Rename-Computer -NewName tchn-app-server -DomainCredentia ...\r\n> +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n>     + CategoryInfo          : OperationStopped: (vagrant-2016:String) [Rename-Computer], InvalidOperationException\r\n>     + FullyQualifiedErrorId : FailToRenameComputer,Microsoft.PowerShell.Commands.RenameComputerCommandThe following WinRM command responded with a non-zero exit status.\r\n> Vagrant assumes that this means the command failed!\r\n> \r\n> powershell -ExecutionPolicy Bypass -OutputFormat Text -file c:/tmp/vagrant-windows-domain-runner.ps1\r\n> \r\n> Stdout from the command:\r\n> \r\n> VERBOSE: Performing the operation \"Join in domain 'acme.local'\" on target \"vagrant-2016\".\r\n> \r\n> HasSucceeded ComputerName\r\n> ------------ ------------\r\n> True         vagrant-2016\r\n> WARNING: The changes will take effect after you restart the computer vagrant-2016.\r\n> VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".\r\n> Rename failed, Retrying in 5 seconds...\r\n> VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".\r\n> Rename failed, Retrying in 5 seconds...\r\n> VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".\r\n> Rename failed, Retrying in 5 seconds...\r\n> VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".\r\n> Rename failed, Retrying in 5 seconds...\r\n> VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".\r\n> Rename failed, Retrying in 5 seconds...\r\n> VERBOSE: Performing the operation \"Rename-Computer\" on target \"vagrant-2016\".\r\n> Rename failed the maximum number of 5 times.\r\n> \r\n> \r\n> Stderr from the command:\r\n> \r\n> Rename-Computer : Fail to rename computer 'vagrant-2016' to 'tchn-app-server' due to the following exception: The\r\n> specified computer account could not be found. Contact an administrator to verify the account is in the domain. If the\r\n> account has been deleted unjoin, reboot, and rejoin the domain.\r\n> At C:\\tmp\\vagrant-windows-domain-runner.ps1:36 char:4\r\n> +             Rename-Computer -NewName tchn-app-server -DomainCredentia ...\r\n> +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n>     + CategoryInfo          : OperationStopped: (vagrant-2016:String) [Rename-Computer], InvalidOperationException\r\n>     + FullyQualifiedErrorId : FailToRenameComputer,Microsoft.PowerShell.Commands.RenameComputerCommand"},"comment":{"url":"https://api.github.com/repos/mefellows/vagrant-windows-domain/issues/comments/362508995","html_url":"https://github.com/mefellows/vagrant-windows-domain/issues/18#issuecomment-362508995","issue_url":"https://api.github.com/repos/mefellows/vagrant-windows-domain/issues/18","id":362508995,"user":{"login":"mefellows","id":53900,"avatar_url":"https://avatars1.githubusercontent.com/u/53900?v=4","gravatar_id":"","url":"https://api.github.com/users/mefellows","html_url":"https://github.com/mefellows","followers_url":"https://api.github.com/users/mefellows/followers","following_url":"https://api.github.com/users/mefellows/following{/other_user}","gists_url":"https://api.github.com/users/mefellows/gists{/gist_id}","starred_url":"https://api.github.com/users/mefellows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mefellows/subscriptions","organizations_url":"https://api.github.com/users/mefellows/orgs","repos_url":"https://api.github.com/users/mefellows/repos","events_url":"https://api.github.com/users/mefellows/events{/privacy}","received_events_url":"https://api.github.com/users/mefellows/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T07:35:53Z","updated_at":"2018-02-02T07:35:53Z","author_association":"OWNER","body":"Thanks @gurry. I won't have time to look at this any time soon I'm afraid, but PRs are welcome. I've flagged it for \"help wanted\" in case someone is interested and willing."}}
{"actor":{"display_login":"mefellows"}}