Comments (3)
I'm not sure what the problem you're having is. I'm not able to reproduce it locally. I ran docker compose up
which pulled down several images. Once all the services were running docker inspect --format "{{json .State.Health }}" lint-review_web_1
returned the following
{"Status":"healthy","FailingStreak":0,"Log":[
{"Start":"2019-07-31T01:59:09.8513175Z","End":"2019-07-31T01:59:10.1255362Z","ExitCode":0,"Output":" % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 25 100 25 0 0 2802 0 --:--:-- --:--:-- --:--:-- 3125\nlint-review: 2.12.1 pong\n"},
{"Start":"2019-07-31T01:59:20.1467486Z","End":"2019-07-31T01:59:20.3609946Z","ExitCode":0,"Output":" % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 25 100 25 0 0 1397 0 --:--:-- --:--:-- --:--:-- 1470\nlint-review: 2.12.1 pong\n"},
{"Start":"2019-07-31T01:59:30.3807698Z","End":"2019-07-31T01:59:30.651296Z","ExitCode":0,"Output":" % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0lint-review: 2.12.1 pong\n\r100 25 100 25 0 0 1331 0 --:--:-- --:--:-- --:--:-- 1388\n"},
{"Start":"2019-07-31T01:59:40.6631892Z","End":"2019-07-31T01:59:40.8187857Z","ExitCode":0,"Output":" % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0lint-review: 2.12.1 pong\n\r100 25 100 25 0 0 2286 0 --:--:-- --:--:-- --:--:-- 2500\n"},
{"Start":"2019-07-31T01:59:50.8416773Z","End":"2019-07-31T01:59:50.9939845Z","ExitCode":0,"Output":" % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 25 100 25 0 0 2923 0 --:--:-- --:--:-- --:--:-- 3125\nlint-review: 2.12.1 pong\n"}
]}
I didn't set LINTREVIEW_SERVER_NAME
or LINTREVIEW_GUNICORN_DEBUG
in my environment variables. Perhaps that is the source of your problems? The healthcheck scripts attempt to reach localhost:5000
. One possibility that I can see is that the healthcheck script needs to use 127.0.0.1:5000
or the IP defined in SERVER_NAME
?
from lint-review.
OK, omitting LINTREVIEW_SERVER_NAME resolves the health checks returning 404. I think where I got confused was reading the following in the README: For the most basic installation you'll need to set GITHUB_OAUTH_TOKEN, and LINTREVIEW_SERVER_NAME.
Would you be amenable to a PR clarifying when it is and isn't required? I can write one up if you can summarize the logic for me - Python isn't my strong suit and I'm having a bit of trouble finding references to SERVER_NAME
in the codebase. EDIT: Thanks for your help!
from lint-review.
Sure. An update to the readme would be great. The SERVER_NAME variable ends up going into gunicorn, and does what the gunicorn docs say.
from lint-review.
Related Issues (20)
- Suddenly stopped working HOT 2
- Lint riview not working
- Installing GitHub hooks via Docker after settings configuration doesn't work HOT 2
- Linting fails when previous lint job hasn't finished HOT 2
- Add ESLint HTML plugin to package.json HOT 1
- Support linting R HOT 3
- Source file not found HOT 19
- Gunicorn is getting 404 errors HOT 15
- Unable to connect Sticker CI to an organization repo HOT 4
- Use the flake8 config file HOT 5
- Flake8 linter is missing a usage of typing.List HOT 8
- Add support for kotlin lint HOT 1
- Create a 'Deploy to Heroku' Button
- Can you please tell me where to put the config file for tslint HOT 4
- Add support for C/C++ Linter HOT 3
- Add support for HTML HOT 4
- Can this project be run without RabbitMQ & Celery but with Waitress? HOT 2
- Could not publish job to celery. Make sure its running.
- Celery JSON serializer errors out when using Python3.6+ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lint-review.