-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
websocket disconnecting #50699
Comments
to help replicate the issue can you include a sanitized version of your configurations and the command you are running? |
external auth:
REST configuration
server:
Django management command, to show all events..
|
result of 'python manage.py testws'
|
I am seeing these errors in the api logs after i run a command
But i never get the channel closed as you can see here:
Are you running this script outside of Django as well when you see this behavior? |
Yes, I see the same behaviour when a scipt that has no dependencies to django. |
thanks for clarifying. and can you verify the salt-api is functional and the master is running? In your exception there you are receiving a timeout when trying to get the events, so i'm wondering if the event bus on the master is not up all the way or if there is an error on that end. |
I can confirm that the Salt-api is functional, because authorization provides a token, sending commands through /minion url is also fine. As a temp workaround until the websocket is working again for me (PS. on a previous release 2017xx and python 2.7 ws did work) I hook up on the event bus on the master (salt.utils.event.get_event) and publish events with MQTT. Therefore I can confirm that nothing seems wrong with the even bus. |
thanks for confirming. Since i am having a hard time replicating this is it possible for you to bisect the issue since you said it was working on 2017.7? |
The culprit is I was experiencing the same issue with:
But solved with
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Description of Issue/Question
websocket is disconnected by server after sending: websocket client ready
Setup
I added a 'traceback.print_ex()' in the exception handling, to get more detail.
Steps to Reproduce Issue
Versions Report
The text was updated successfully, but these errors were encountered: