silverstrike icon indicating copy to clipboard operation
silverstrike copied to clipboard

Docker instructions lead to invalid request block size

Open sebastian-burlacu opened this issue 2 years ago • 1 comments

Running Ubuntu 18.04 and latest docker available for this OS.

Cloned repo https://github.com/agstrike/docker

Changed secret key to my own gibberish, then started services (docker compose up -d)

Unfortunately I cannot connect and docker logs show this:

invalid request block size: 6304 (max 4096)...skip
[uwsgi-http key: $HOSTNAME:8000 client_addr: $CLIENTIP client_port: 57985] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647]

I tried setting wsgi buffer size in Dockerfile in two different ways:

# grep 32768 Dockerfile 
ENV UWSGI_WSGI_FILE=wsgi.py UWSGI_HTTP=:8000 UWSGI_MASTER=1 UWSGI_WORKERS=2 UWSGI_THREADS=8 UWSGI_UID=1000 UWSGI_GID=2000 UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy UWSGI_BUFFER_SIZE=32768
CMD sleep 5 && python manage.py migrate && uwsgi -b 32768

But I get the same error messages. I saw some tips online about using 'http = 0.0.0.0:8000' instead of socket but I don't know where to configure this.

Any help would be appreciated, this app looks super cool but I'm having trouble getting it running.

sebastian-burlacu avatar May 27 '22 15:05 sebastian-burlacu

Gave up on docker btw, but I'll leave this open because some tips for increasing request block size would be swell, no matter what I did it was stuck at 4k.

sebastian-burlacu avatar May 28 '22 00:05 sebastian-burlacu