Skip to content
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

Salt - windows minion cannot do anything #33927

Closed
phil123456 opened this issue Jun 10, 2016 · 6 comments
Closed

Salt - windows minion cannot do anything #33927

phil123456 opened this issue Jun 10, 2016 · 6 comments
Labels
cannot-reproduce cannot be replicated with info/context provided info-needed waiting for more info
Milestone

Comments

@phil123456
Copy link

Description of Issue/Question

all salt interaction bring this errors on windows 7 (64)

let me know what info you need to investigate this

C:\salt>salt-minion restart
[INFO ] Setting up the Salt Minion "phil"
[ERROR ] An un-handled exception was caught by salt's global exception handler:
AttributeError: 'module' object has no attribute 'getppid'
Traceback (most recent call last):
File "C:\salt\bin\Scripts\salt-minion", line 26, in
salt_minion()
File "C:\salt\bin\lib\site-packages\salt\scripts.py", line 112, in salt_minion
minion.start()
File "C:\salt\bin\lib\site-packages\salt\cli\daemons.py", line 344, in start
super(Minion, self).start()
File "C:\salt\bin\lib\site-packages\salt\utils\parsers.py", line 932, in start
self.prepare()
File "C:\salt\bin\lib\site-packages\salt\cli\daemons.py", line 307, in prepare
if self.check_running():
File "C:\salt\bin\lib\site-packages\salt\utils\parsers.py", line 915, in check_running
if self.check_pidfile() and self.is_daemonized(pid) and not os.getppid() == pid:
AttributeError: 'module' object has no attribute 'getppid'
Traceback (most recent call last):
File "C:\salt\bin\Scripts\salt-minion", line 26, in
salt_minion()
File "C:\salt\bin\lib\site-packages\salt\scripts.py", line 112, in salt_minion
minion.start()
File "C:\salt\bin\lib\site-packages\salt\cli\daemons.py", line 344, in start
super(Minion, self).start()
File "C:\salt\bin\lib\site-packages\salt\utils\parsers.py", line 932, in start
self.prepare()
File "C:\salt\bin\lib\site-packages\salt\cli\daemons.py", line 307, in prepare
if self.check_running():
File "C:\salt\bin\lib\site-packages\salt\utils\parsers.py", line 915, in check_running
if self.check_pidfile() and self.is_daemonized(pid) and not os.getppid() == pid:
AttributeError: 'module' object has no attribute 'getppid'

Setup

steps : https://docs.saltstack.com/en/latest/topics/installation/windows.html

Steps to Reproduce Issue

steps : https://docs.saltstack.com/en/latest/topics/installation/windows.html

Versions Report

...

@Ch3LL
Copy link
Contributor

Ch3LL commented Jun 10, 2016

@phil123456 i'm not able to replicate this behavior. Can you point me to which package you installed and how you installed the minion? Thanks!

@Ch3LL Ch3LL added info-needed waiting for more info cannot-reproduce cannot be replicated with info/context provided labels Jun 10, 2016
@Ch3LL Ch3LL added this to the Blocked milestone Jun 10, 2016
@gl1ridae
Copy link

Hi there. The same problem on windows platform. Tried both packages : Salt-Minion-2016.3.0-x86-Setup.exe and Salt-Minion-2016.3.0-AMD64-Setup.exe - using gui or quiet installation. Tested on WS2008/R2, WS2012. Traceback:
[ERROR ] An un-handled exception was caught by salt's global exception handler:
AttributeError: 'module' object has no attribute 'getppid'
Traceback (most recent call last):
File "C:\salt\bin\Scripts\salt-minion", line 26, in
salt_minion()
File "C:\salt\bin\lib\site-packages\salt\scripts.py", line 112, in salt_minion
minion.start()
File "C:\salt\bin\lib\site-packages\salt\cli\daemons.py", line 344, in start
super(Minion, self).start()
File "C:\salt\bin\lib\site-packages\salt\utils\parsers.py", line 932, in start
self.prepare()
File "C:\salt\bin\lib\site-packages\salt\cli\daemons.py", line 307, in prepare
if self.check_running():
File "C:\salt\bin\lib\site-packages\salt\utils\parsers.py", line 915, in check_running
if self.check_pidfile() and self.is_daemonized(pid) and not os.getppid() == pid:
AttributeError: 'module' object has no attribute 'getppid'
Traceback (most recent call last):
File "C:\salt\bin\Scripts\salt-minion", line 26, in
salt_minion()
File "C:\salt\bin\lib\site-packages\salt\scripts.py", line 112, in salt_minion
minion.start()
File "C:\salt\bin\lib\site-packages\salt\cli\daemons.py", line 344, in start
super(Minion, self).start()
File "C:\salt\bin\lib\site-packages\salt\utils\parsers.py", line 932, in start
self.prepare()
File "C:\salt\bin\lib\site-packages\salt\cli\daemons.py", line 307, in prepare
if self.check_running():
File "C:\salt\bin\lib\site-packages\salt\utils\parsers.py", line 915, in check_running
if self.check_pidfile() and self.is_daemonized(pid) and not os.getppid() == pid:
AttributeError: 'module' object has no attribute 'getppid'

@phil123456
Copy link
Author

phil123456 commented Jun 13, 2016

the minion is installed on windows, so I use the available installer on saltstack website

it's a bit annoying for debugging stuffs on windows, but so far, configs are pushed correctly from the master... only minion cli seems to cause issues. one cannot run any command

I use windows 7 Pro SP1 64. tell me if you need more info

@lorengordon
Copy link
Contributor

Hmm, is the salt-minion command used on Windows? If you want to start the minion service, did you try using the normal Windows utilities? Using PowerShell: Start-Service salt-minion...

When running salt commands on Windows, I typically use C:\salt\salt-call.bat. Perhaps that will work better for you as well?

@phil123456
Copy link
Author

salt-call does not pause problem, to restart the minion I go to windows services and restart it
but most of .bat command give that same error

@phil123456
Copy link
Author

ok and is the exe updated ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot-reproduce cannot be replicated with info/context provided info-needed waiting for more info
Projects
None yet
Development

No branches or pull requests

4 participants