I'm running a masterless minion on windows and no matter what SLS I try to execute, I get the following trust relationship error. The user I'm running with has admin permissions,
$ /cygdrive/c/salt/salt-call --local state.sls test
[INFO ] Loading fresh modules for state activity
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://test.sls'
[INFO ] Running state [c:\tomcat\base] at time 05:37:23.563000
[INFO ] Executing state file.recurse for c:\tomcat\base
[ERROR ] An exception occurred in this state: Traceback (most recent call last):
File "salt/state.py", line 1531, in call
File "salt/states/file.py", line 2192, in recurse
File "salt/states/file.py", line 2100, in manage_directory
File "salt/states/file.py", line 1683, in directory
File "salt/modules/file.py", line 2679, in check_perms
File "salt/modules/win_file.py", line 863, in stats
File "salt/modules/win_file.py", line 281, in gid_to_group
File "salt/modules/win_file.py", line 467, in uid_to_user
error: (1789, 'LookupAccountSid', 'The trust relationship between this workstation and the primary domain failed.')
[INFO ] Completed state [c:\tomcat\base] at time 05:37:23.612000
[INFO ] Executing command ['attrib', '-R', 'c:\\salt\\var\\cache\\salt\\minion\\sls.p'] in directory 'C:\\cygwin64\\home\\kad'
local:
----------
ID: c:\tomcat\base
Function: file.recurse
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "salt/state.py", line 1531, in call
File "salt/states/file.py", line 2192, in recurse
File "salt/states/file.py", line 2100, in manage_directory
File "salt/states/file.py", line 1683, in directory
File "salt/modules/file.py", line 2679, in check_perms
File "salt/modules/win_file.py", line 863, in stats
File "salt/modules/win_file.py", line 281, in gid_to_group
File "salt/modules/win_file.py", line 467, in uid_to_user
error: (1789, 'LookupAccountSid', 'The trust relationship between this workstation and the primary domain failed.')
Started: 05:37:23.563000
Duration: 49.0 ms
Changes:
Summary
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1