akelch / app_server Goto Github PK
View Code? Open in Web Editor NEWa lightweight web application launcher for gunicorn and static files.
Home Page: https://pypi.org/project/app-server
License: MIT License
a lightweight web application launcher for gunicorn and static files.
Home Page: https://pypi.org/project/app-server
License: MIT License
Hi! First, thanks (again) for making App Server. It's great!
When I first started using it, I spent a bit of time debugging the "Connection in use...Retrying...
error log messages below before I realized they were spurious. Any idea what's happening, or how we could prevent them? Looks like they're from gunicorn, I assume initially connecting to its workers, and the app's Python runtime just hasn't finished loading yet? I tried a different gunicorn port and both the default entrypoint
and a custom one in my app.yaml
, but no luck. I also looked for any gunicorn settings around worker connection grace period, but no luck.
[2021-10-31 09:45:51 -0700] [25527] [INFO] Starting gunicorn 20.1.0
[2021-10-31 09:45:51 -0700] [25527] [INFO] Listening at: http://0.0.0.0:8090 (25527)
[2021-10-31 09:45:51 -0700] [25527] [INFO] Using worker: gthread
[2021-10-31 09:45:51 -0700] [25528] [INFO] Booting worker with pid: 25528
* Running on http://localhost:8080/ (Press CTRL+C to quit)
* Restarting with stat
[2021-10-31 09:45:56 -0700] [25531] [INFO] Starting gunicorn 20.1.0
[2021-10-31 09:45:56 -0700] [25531] [ERROR] Connection in use: ('', 8090)
[2021-10-31 09:45:56 -0700] [25531] [ERROR] Retrying in 1 second.
[2021-10-31 09:45:57 -0700] [25531] [ERROR] Connection in use: ('', 8090)
[2021-10-31 09:45:57 -0700] [25531] [ERROR] Retrying in 1 second.
[2021-10-31 09:45:58 -0700] [25531] [ERROR] Connection in use: ('', 8090)
[2021-10-31 09:45:58 -0700] [25531] [ERROR] Retrying in 1 second.
[2021-10-31 09:45:59 -0700] [25531] [ERROR] Connection in use: ('', 8090)
[2021-10-31 09:45:59 -0700] [25531] [ERROR] Retrying in 1 second.
[2021-10-31 09:46:00 -0700] [25531] [ERROR] Connection in use: ('', 8090)
[2021-10-31 09:46:00 -0700] [25531] [ERROR] Retrying in 1 second.
* Debugger is active!
* Debugger PIN: 116-286-908
[2021-10-31 09:46:01 -0700] [25531] [ERROR] Can't connect to ('', 8090)
127.0.0.1 - - [31/Oct/2021 09:46:22] "GET / HTTP/1.1" 200 -
Another data point is that they happen again when you change an app source file and gunicorn loads its worker, which confirms the theory that it's the worker startup delay, but the Connection in use
message is still a bit confusing.
Hi again! I haven't dug into this one yet, but I figured I'd report it first. Evidently static_files
isn't supported for the home page? eg this returns a 404:
- url: /
static_files: static/index.html
upload: static/index.html
...but if you add any path to url
, like this, it works.
- url: /x
static_files: static/index.html
upload: static/index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.