Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid request block size: 4243 (max 4096)...skip #28

Closed
edalcin opened this issue Sep 6, 2020 · 4 comments · Fixed by #189
Closed

invalid request block size: 4243 (max 4096)...skip #28

edalcin opened this issue Sep 6, 2020 · 4 comments · Fixed by #189
Labels
bug Something isn't working

Comments

@edalcin
Copy link

edalcin commented Sep 6, 2020

Installed at Unraid but can't open WebUI. This is the log:

Operations to perform:
Apply all migrations: admin, auth, bookmarks, contenttypes, sessions
Running migrations:
No migrations to apply.
There is already a secret key in `secretkey.txt`
[uWSGI] getting INI configuration from uwsgi.ini
[uwsgi-static] added mapping for /static => static
*** Starting uWSGI 2.0.18 (64bit) on [Sun Sep 6 07:36:41 2020] ***
compiled with version: 6.3.0 20170516 on 07 June 2020 12:18:45

os: Linux-4.19.107-Unraid #1 SMP Sun Mar 8 14:34:03 CDT 2020
nodename: 86ee98549238
machine: x86_64
clock source: unix
detected number of CPU cores: 8
current working directory: /etc/linkding
writing pidfile to /tmp/linkding.pid
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
setgid() to 33
setuid() to 33
chdir() to /etc/linkding
your processes number limit is 123542
your memory page size is 4096 bytes
detected max file descriptor number: 40960
building mime-types dictionary from file /etc/mime.types...554 entry found
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on :9090 fd 4
uwsgi socket 0 bound to TCP address 127.0.0.1:34187 (port auto-assigned) fd 3
Python version: 3.7.7 (default, May 20 2020, 21:22:20) [GCC 6.3.0 20170516]

Python main interpreter initialized at 0x55a85049e140
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 416720 bytes (406 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x55a85049e140 pid: 10 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 10)
spawned uWSGI worker 1 (pid: 11, cores: 2)
spawned uWSGI worker 2 (pid: 12, cores: 2)
spawned uWSGI worker 3 (pid: 14, cores: 2)
spawned uWSGI worker 4 (pid: 16, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 18 ***
spawned uWSGI http 1 (pid: 18)
invalid request block size: 4211 (max 4096)...skip
[uwsgi-http key: 10.1.0.10:9090 client_addr: 10.1.0.100 client_port: 3026] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647]
@sissbruecker
Copy link
Owner

@edalcin Did you use the Docker image? Other than that this is not much to go on, I don't use Unraid, so I can't really tell what the issue might be.

@sissbruecker
Copy link
Owner

Closing due to inactivity.

@elmodor
Copy link
Contributor

elmodor commented Apr 5, 2021

@sissbruecker I had the same issue using docker-compose on debian. In fact this had nothing to do with the host but with the client.
Using firefox in private mode (no addons) it worked. However with all my addons I got the same error message.
"invalid request block size: 4388 (max 4096)"

According to this:
https://topic.alibabacloud.com/a/when-uwsgi-is-deployed-to-nginx-invalid-request-block-size-4161-max-4096-appears_8_8_20029027.html
The header size of uwsgi by default is only 4k.
Upping it to 8k by adding this line in uwsgi.ini:
buffer-size = 8192
solved the issue.

@sissbruecker
Copy link
Owner

@elmodor Thanks for debugging this, I guess increasing the header size in uwsgi should be no problem. I'll reopen this.

@sissbruecker sissbruecker reopened this Apr 5, 2021
@sissbruecker sissbruecker added the bug Something isn't working label May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants