Comments (5)
Far from ideal though since sendfile() is what really makes it performant as the read and write happens within the kernel. Can you share the errors that you experienced? Hopefully we can solve them?
from ansible-archivematica-src.
The error is here:
https://projects.artefactual.com/issues/9874#note-5
from ansible-archivematica-src.
Can you reproduce if you download directly from gunicorn? i.e. bypass nginx proxy - I'm asking because the error seems to happen where sendfile is trying to write to a socket, which should be the one between gunicorn and Nginx, and it seems that Nginx is closing the socket too early.
from ansible-archivematica-src.
New environment variables AM_GUNICORN_SENDFILE
(in qa/1.x
) and SS_GUNICORN_SENDFILE
(in qa/0.x
) should do this, e.g.:
AM_GUNICORN_SENDFILE=false
SS_GUNICORN_SENDFILE=true
This is the code that parses the value of the environment string, in case you're wondering how that happens: https://github.com/benoitc/gunicorn/blob/1edf8fcff5cf19e1580a927b10acdedbda2152a0/gunicorn/config.py#L196-L205.
from ansible-archivematica-src.
See also files dashboard.gunicorn-config.py and storage-service.gunicorn-config.py. These are the Gunicorn configuration files that we bundle where AM_GUNICORN_SENDFILE
and SS_GUNICORN_SENDFILE
are looked up.
from ansible-archivematica-src.
Related Issues (20)
- 1.7 server vars is missing HOT 1
- Problem: pre-existing virtualenvs are not upgraded to Python 3
- Problem: Storage Service systemd unit is not configured to restart on errors HOT 1
- Problem: SS is not using MySQL as database by default and the role doesn't include tasks to migrate from sqlite3 to MySQL
- Problem: git clone task check outs git submodules
- Problem: SS migration from sqlite3 to MySQL fail when any package has been deleted
- Fixity cron job needs to support the SS using a MySQL db HOT 1
- Problem: Fixity fails when using SSL HOT 2
- Please add a dependency on ca-certificates HOT 2
- How to enable different authentication methods (Shibboleth)? HOT 4
- Issue: fixity-cron script shows empty lines & tries to email SS users with no email in their email field
- Problem: " Install pip with get-pip.py" fails, it requires python 3.7 HOT 3
- Problem: Role fails when cloning SS and AM directories with git HOT 2
- Problem: Role fails when cloning Automation-Tools directory with git HOT 1
- Problem: SS db sqlite3 to mysql migration fails in manage_django loaddata task
- Issue: 'Environment' variables not fully populated when using tags HOT 1
- Fails when installing packages HOT 4
- Update to use new GPG Key Mgmt for APT HOT 1
- nodejs_version cannot be set from Ubuntu 22.04 playbook
- Node.js distribution name has changed for Ubuntu 22.04
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 ansible-archivematica-src.