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

ianitor OSError: [Errno 22] Invalid argument #2

Closed
thijsterlouw opened this issue Mar 12, 2015 · 2 comments · Fixed by #3
Closed

ianitor OSError: [Errno 22] Invalid argument #2

thijsterlouw opened this issue Mar 12, 2015 · 2 comments · Fixed by #3

Comments

@thijsterlouw
Copy link

 ianitor --consul-agent=127.0.0.1:8500 test -- bash

output:

Traceback (most recent call last):
  File "/home/thijsterlouw/.pyenv/versions/myenv/bin/ianitor", line 9, in <module>
    load_entry_point('ianitor==0.0.1', 'console_scripts', 'ianitor')()
  File "/home/thijsterlouw/.pyenv/versions/myenv/lib/python3.4/site-packages/ianitor/script.py", line 88, in main
    signal.signal(signum, signal_handler)
OSError: [Errno 22] Invalid argument

in the consul server:

    2015/03/12 11:18:20 [INFO] agent: Synced service 'test'
    2015/03/12 11:18:20 [INFO] agent: Deregistered service 'test'
    2015/03/12 11:18:20 [INFO] agent: Deregistered check 'service:test'

whatever service I attempt to run, I always receive the error "OSError: [Errno 22] Invalid argument"

On Linux / Kubuntu 14.04, Python 3.4.3 in virtualenv

@swistakm
Copy link
Collaborator

This is caused by SIGSTOP signal raising OSError exception when trying to bind it on python3.4. Unfortunately ianitor.script module was not tested at all :(.

@swistakm
Copy link
Collaborator

New version with fix for this issue released on PyPI: 0.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants