Open kbens opened 7 years ago
I think this might actually be related to the id.exe
executable provided by the git installation under C:\Program Files\Git\usr\bin
.
Removing C:\Program Files\Git\usr\bin
from the PATH prevents facter from throwing the error -
PS C:\> $env:PATH
C:\psft\db\oracle-server\12.1.0.2\bin;C:\psft\pt\jdk1.7.0_101\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData
\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Puppet Labs\Puppet\bin;C:\psft\pt\bea\tuxedo\tuxedo12.1.3.0.
0_VS2012\bin;C:\psft\pt\bea\tuxedo\tuxedo12.1.3.0.0_VS2012\jre\bin\server;C:\psft\pt\bea\tuxedo\tuxedo12.1.3.0.0_VS2012\jre\bin;C:\Users\vagrant\AppData\Roaming\Boxstarter
PS C:\> facter gid
/usr/bin/id: cannot find name for group ID 197121
197121
PS C:\> $env:PATH = 'C:\psft\db\oracle-server\12.1.0.2\bin;C:\psft\pt\jdk1.7.0_101\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell
\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Puppet Labs\Puppet\bin;C:\psft\pt\bea\tuxedo\tuxedo12.1.3.0.0_VS2012
\bin;C:\psft\pt\bea\tuxedo\tuxedo12.1.3.0.0_VS2012\jre\bin\server;C:\psft\pt\bea\tuxedo\tuxedo12.1.3.0.0_VS2012\jre\bin;C:\Users\vagrant\AppData\Roaming\Boxstarter'
PS C:\> facter gid
PS C:\>
It looks like there was a similar issue with the id
executable provided by Cygwin, but it appears to have been resolved - https://tickets.puppetlabs.com/browse/FACT-765
Error: /usr/bin/id: cannot find name for group ID XXXX
Fix? https://serverfault.com/questions/666639/cygwin-startup-error-usr-bin-id-cannot-find-name-for-group-id