Closed azinsharaf closed 5 years ago
Hi @azinsharaf,
The issue looks to be related to the HOME, HOMEDRIVE and/or HOMEPATH environment variable most likely for the account that was used to run the chef-solo command:
STDERR: C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:1097:in `
Using Windows PowerShell run the following command:
Get-ChildItem Env:
This should give a list of the environment variables. Check to see if HOME, HOMEDRIVE and HOMEPATH are set correctly (ensure they are both set and don't contain any special characters). Some of the following commands can be used to help fix:
Remove-Variable -Force HOME Set-Variable HOME "C:\Users(enter your username)"
There are a couple recommendations here.
PS C:\WINDOWS\system32> Get-ChildItem Env:
HOMEDRIVE H:
HOMEPATH \
I can't modify it even with the Force
option because it is read only . Could be the way our organization implements Windows. Trying to find a workaround.
@cameronkroeker Just wondering if you have seen this issue in the past and can assist me on this.
@cameronkroeker Just wondering if you have seen this issue in the past and can assist me on this.
Hi @azinsharaf,
Is H: a mapped network drive? You may need to work with your IT department to have them change it. However, if that is not an option, there are a few "workarounds" mentioned in the following forum that perhaps might be viable options:
https://superuser.com/questions/255776/overriding-homedrive-and-homepath-as-a-windows-7-user
This trick resolved the issue! Thank you @cameronkroeker
HOMEDRIVE Local Default If you do not need to access "Server" by name at all, you can cause the group policy setting to fail and fall back to your local machine. The easiest way to do this is to add an entry to C:\Windows\System32\drivers\etc\hosts like:
127.0.0.1 Server
After rebooting, you should see something like:
set HOME
HOMEDRIVE=C:
HOMEPATH=\Users\username
I ran cmd as admin. That account has access to setup(archive) files.
The following arcgis-pro role returns the error. Please advise.
arcgis-pro.json
returns this error: