-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Werkzeug 2.1.0 fails with WERKZEUG_SERVER_FD
error
#2368
Comments
Looks like something you're using is messing with the dev server internals in a way that tricks it into thinking it's running in the reloader when it's not. Since it's not actually running in the reloader, certain things that it expects aren't set up correctly. You'll need to identify and report this to whatever is running the server this way. |
@davidism could you point me to where connexion is messing with the dev server internals? I'm having a hard time reproducing the issue. |
Yeah, I had a look and can't reproduce this either. If anyone is setting |
@davidism, thanks for the hint. Apparently, it was set in systemd service file, removing that solved the issue.
|
The fact that you're running this in systemd indicates a severe security issue with that application. Do not run the development server in production. It is not intended to be secure, stable, or efficient. Use a production server such as gunicorn, uwsgi, waitress, or mod_wsgi. The fact that you have to set an internal variable just to disable this message should be a strong indicator that you're doing something incorrect. |
Thanks for the info. Will review what was done there :) |
Upgrading to 2.1.0 leads to the following error:
Environment:
$ lsb_release -d Description: Debian GNU/Linux 11 (bullseye) $ python3 --version Python 3.9.2 # selected packages $ pip3 list Package Version --------------------- -------------- connexion 2.13.0 Flask 2.1.0 Werkzeug 2.1.0
Workaround:
freezing Werkzeug @ 2.0.3 in
requirements.txt
(which we didn't have before as don't use it directly but it's rather a prerequisite ofconnexion
andFlask
)The text was updated successfully, but these errors were encountered: