mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 01:10:09 +03:00
Error importing backup #650
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HumaLock on GitHub.
<html><head> </head>Bad Request
Your browser sent a request that this server could not understand.
</html>Configured according to this example
https://github.com/dani-garcia/vaultwarden/wiki/Docker---Traefik---ModSecurity-Setup
I get the error above. In addition, registration does not work even though it is allowed.
When installing, Traefik does not receive a certificate from Lats Encrypt, so CloudFlare TLS Full mode is used. Which allows you to get a working system even when using a self-signed certificate. Perhaps this is the problem. Or there may be a bug in the program. Docker compose config one to one from the example.
@HumaLock commented on GitHub:
"response":{"protocol":"HTTP/1.1","status":400,"headers":{"Content-Length":"226","Connection":"close","Content-Type":"text/html; charset=iso-8859-1"},"body":"\n<html><head>\n\n</head>\n
Bad Request
\nYour browser sent a request that this server could not understand.
\n</html>\n"},"audit_data":{"messages":["JSON parsing error: parse error: client cancelled parse via callback return value\n","Access denied with code 400 (phase 2). Match of "eq 0" against "REQBODY_ERROR" required. [file "/etc/modsecurity.d/modsecurity.conf"] [line "72"] [id "200002"] [msg "Failed to parse request body."] [data "JSON parsing error: parse error: client cancelled parse via callback return value\x0a"] [severity "CRITICAL"]"],"error_messages":["[file "apache2_util.c"] [line 275] [level 3] [client 162.158.175.74] ModSecurity: JSON parsing error: parse error: client cancelled parse via callback return value\\n [hostname "vaultbox.pro"] [uri "/api/ciphers/import"] [unique_id "ZU5mbYc5UkatpQu_jTHDmgAAAFU"]","[file "apache2_util.c"] [line 275] [level 3] [client 162.158.175.74] ModSecurity: Access denied with code 400 (phase 2). Match of "eq 0" against "REQBODY_ERROR" required. [file "/etc/modsecurity.d/modsecurity.conf"] [line "72"] [id "200002"] [msg "Failed to parse request body."] [data "JSON parsing error: parse error: client cancelled parse via callback return value\\\\x0a"] [severity "CRITICAL"] [hostname "vaultbox.pro"] [uri "/api/ciphers/import"] [unique_id "ZU5mbYc5UkatpQu_jTHDmgAAAFU"]"],"action":{"intercepted":true,"phase":2,"message":"Match of "eq 0" against "REQBODY_ERROR" required."},"handler":"proxy-server","stopwatch":{"p1":771,"p2":36,"p3":0,"p4":0,"p5":255,"sr":201,"sw":1,"l":0,"gc":0},"response_body_dechunked":true,"producer":["ModSecurity for Apache/2.9.7 (http://www.modsecurity.org/)","OWASP_CRS/3.3.5"],"server":"Apache/2.4.57 (Unix) OpenSSL/3.0.11","engine_mode":"ENABLED"}}\n
The same thing only in an easy to read form
HTTP Response
Response Body
Audit Data
@HumaLock commented on GitHub:
I can provide any logs to help solve the problem. And participate in the analysis
@BlackDex commented on GitHub:
This doesn't look like a Vaultwarden error too me.
What do the Vaultwarden logs say?
This more looks like a middleware issue too me.