New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persission denied on Windows #9604
Comments
After also upgrading my master to version 0.17.4 I get this error on state.highstate: and this one on pkg.refresh_db: And when I check the access rights there, it's full access for administrators and system, so it should be accessible. |
No good! We'll look into this. |
Erm, just talked to @UtahDave, and this may already be fixed! =D |
Awesome.. |
I don't know. He was looking into it (to make sure it was the issue he thought it was). @UtahDave status? |
They are kind of related. I just finished working with s0undt3ch to fix a couple other bugs that were keeping me from getting to this one. Getting to it now. |
Actually I face the same issue, but cannot recognize the pattern - I installed salt-stack on fresh windows few dozen times already, and sometime it works right away, sometimes it exposes the error above, sometimes it shows completely different errors. Trying to categorize things before opening new issue. |
That's another issue I receive in 0.17.4 (when I don't bump into the above issue), not sure if it's related to the original problem, add it here just because they are sort of complimentary, when I see one, I don't see another and other way round. Let me know if I need to create a separate issue in github: |
I had that one too, but for some reason it got fixed after reinstalling the minion. |
I thought so as well, and by re-intalling salt-minion I sometimes I manage to get rid of this problem, but since I'm working on the deployment process it's not one off, and next time I try to run exact same setup it gives me this error. Somehow since I decided to automate pem/pub keys distribution to salt-minion and to migrate to 0.17.4 it's become a disaster, I experience different kind of issues with no obvious pattern. And sometimes it just works. Weird. |
Can' say about multiple machines, since we're just starting to use Salt on our Windows environment. |
I found several issues during my testing yesterday. I fixed a couple of In the past I've just had the windows minion ignore "mode" and let the file Should we try to convert mode into icacls? Should we continue ignoring
|
I can't comment on this, for me would be good enough the way it was before (just copying files and applying default permissions) - I take care on permissions separately if required. And it's not very clear to me how to convert linux permissions to windows ones, in this situation I would avoid messing around with those even if the mechanism is available. |
BTW, tried to re-run salt-call after the previous issue with set_mode, and I got this error:
The file 'c:\salt\var\cache\salt\minion\highstate.cache.p' appears to be r/o, if I change it to r/w and re-run salt-call - then I'm back to the prevoius 'set_mode' issue. Hope this shed some light on where the problem is. |
OK, this PR, #9656, will fix the problem with set_mode and some other related problems with managing files. |
I'll try that when I'm back at work
|
I don't mind trying this one, just don't know how to get hold of the fix - is there an install file somewhere or a patch I can apply? |
If you installed your minion with the windows installer, you can clone the On Thu, Jan 9, 2014 at 2:47 PM, juso notifications@github.com wrote:
Dave Boucha | Sr. Engineer Join us at SaltConf, Jan. 28-30, 2014 in Salt Lake City. www.saltconf.com 5272 South College Drive, Suite 301 | Murray, UT 84123 |
This is the location I dropped it in: Testing it as we speak |
this seemed to generate: [WARNING ] The minion function caused an exception |
on the otherhand, test.ping works and so does pkg.refresh_db. |
Dave, I tried to run the exact same setup on 0.17.2, and in roughly 30% of attempts it gives me another error (other 70% run fine):
I posted it here because it may have something to do with the original issue as after some investigation I realized that if I delete the cache files from here 'c:\salt\var\cache\salt\minion\proc' then it runs forward without probs and Timothy posted the log above (second post) showing some permission problems in this exact location. Let me know if I need to create a separate issue in github. |
It looks like a separate issue, I raised it here #9673 |
I got the HEAD revision using this command (let me know if it's not the right one, I'm nood in git)
And the results of trying to run salt-call are stranger than ever:
After returning to 0.17.2 all run fine. Probably I'm not applying the right patch or not applying it correctly. |
Yeah, I'd recommend deleting the entire contents of the c:\salt\var\cache\salt\minion\proc\ directory |
@timothyvandenbrande, could you uninstall the Salt Minion, make sure c:\salt\ is deleted and test with this new build? http://docs.saltstack.com/downloads/Salt-Minion-0.17.4-3-AMD64-Setup.exe Thanks! Let me know how it goes. |
I will do that 1st thing tomorrow, since ATM I don't have access to the
|
@UtahDave I just encountered the same issue after playing with salt and Windows 8.1 Pro (64 bit) today, |
@UtahDave I just installed this version, and it seems to have fixed my issue. |
There sitll seems to some minor issue, but this isn't as severe and not blocking: |
I have a Windows 2008 R2 machine and keep getting this error:
admatriusy02c:
Traceback (most recent call last):
File "salt/minion.py", line 695, in _thread_return
File "salt/modules/win_pkg.py", line 457, in refresh_db
File "salt/modules/cp.py", line 393, in is_cached
File "salt/modules/cp.py", line 63, in _mk_client
File "salt/fileclient.py", line 42, in get_file_client
File "salt/fileclient.py", line 643, in init
File "salt/crypt.py", line 466, in init
File "salt/crypt.py", line 478, in __authenticate
File "salt/crypt.py", line 320, in sign_in
File "salt/crypt.py", line 213, in minion_sign_in_payload
File "M2Crypto/RSA.py", line 157, in save_pub_key
File "M2Crypto/BIO.py", line 186, in openfile
IOError: [Errno 13] Permission denied: 'c:\users\exh345\appdata\local\temp\2\tmp3kxie9'
So I assume some of the permissions have changed, since previously on client version 0.17.2, this error wasn't present.
These people seem to have the same issue:
https://groups.google.com/forum/#!topic/salt-users/hGHtl8Xc4m0
The text was updated successfully, but these errors were encountered: