Giter Site home page Giter Site logo

akelch / app_server Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 8.0 1.19 MB

a lightweight web application launcher for gunicorn and static files.

Home Page: https://pypi.org/project/app-server

License: MIT License

Python 99.95% CSS 0.02% Shell 0.03%
python gunicorn werkzeug viur-framework

app_server's Introduction

languages and tools

Python Jinja GCP ViUR

Vue Shoelace PostCSS

app_server's People

Contributors

akelch avatar arnegudermann avatar phorward avatar snarfed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

app_server's Issues

suppress "Connection in use" error logs at startup

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.

static handler for home page doesn't work

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.