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

warning:waitress message #41

Closed
JaapS6 opened this issue Mar 30, 2021 · 14 comments
Closed

warning:waitress message #41

JaapS6 opened this issue Mar 30, 2021 · 14 comments
Labels
bug Something isn't working

Comments

@JaapS6
Copy link

JaapS6 commented Mar 30, 2021

I am running the bot on a windows 10 VPS and have just found this:

WARNING:waitress.queue:Task queue depth is 1
WARNING:waitress.queue:Task queue depth is 2
WARNING:waitress.queue:Task queue depth is 3

I haven't noticed it before and there haven't been any alerts in the TG channel for a few days so I assume something is wrong.

Thanks

@fabston
Copy link
Owner

fabston commented Mar 30, 2021

Hi,

Try removing waitress in main.py altogether:

if __name__ == '__main__':
    app.run()

@fabston fabston added the bug Something isn't working label Mar 30, 2021
@JaapS6
Copy link
Author

JaapS6 commented Mar 30, 2021

Thanks for the reply. I tried that but it didn't seem to work.

This is how my main.py looks. I removed all of the section of code at the bottom including the port stuff and replaced with your suggestion but it didn't work.

I should add that I'm using an older version of the bot from late december.

image

@fabston
Copy link
Owner

fabston commented Mar 30, 2021

It might be a good idea to update the bot then. But be sure to adjust alerts to json strings as explained in the readme.

In the screenshot I don't see that you've removed waitress though.

@JaapS6
Copy link
Author

JaapS6 commented Mar 30, 2021

No, that is the original config. As I said I tried removing that last block of code and replacing with what you suggested, but no luck. Is that what you meant - replace all of that last block of code?

Sure yes it might be a good idea to update it, but as it took a long time to set up in the first place I'd rather not change anything if I don't have to.

@JaapS6
Copy link
Author

JaapS6 commented Mar 30, 2021

image
if I remove the last block of code and replace with your suggestion I am getting a flask error message

@fabston
Copy link
Owner

fabston commented Mar 30, 2021

I'd then just recommend to keep your old setup and setup another folder with the current version. That way you could easily fall back in case its not working.

I'll take a look at the correct flask code tomorrow then. What error are you getting though?

@JaapS6
Copy link
Author

JaapS6 commented Mar 30, 2021

image
like this. So maybe I am doing something wrong.

I restarted with the original code and it's working.

@fabston
Copy link
Owner

fabston commented Mar 30, 2021

You are not running it in a virtual environment?

@JaapS6
Copy link
Author

JaapS6 commented Mar 30, 2021

On a VPS. However, that previous screencap was probably me mistyping the start command, so please ignore that.

This is the error I get using the adjusted code:
image

@JaapS6
Copy link
Author

JaapS6 commented Mar 30, 2021

I say error - it's not an error I suppose but it's not working

@JaapS6
Copy link
Author

JaapS6 commented Mar 30, 2021

But, as I also said, restarting it with the original code works.

@fabston
Copy link
Owner

fabston commented Mar 31, 2021

Instead of:

if __name__ == '__main__':
    app.run()

Use:

if __name__ == '__main__':
      app.run(host='0.0.0.0', port=80)

@JaapS6
Copy link
Author

JaapS6 commented Mar 31, 2021

Thanks, that seems to work!

Do you have a crypto address so I can buy you a coffee? Your link only has paypal/cards.

@fabston
Copy link
Owner

fabston commented Mar 31, 2021

Awesome!

@fabston fabston closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants