-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[WARN] tls handshake with 127.0.0.1:XXXXX failed: received corrupt message of type InvalidContentType #4112
Comments
It seems to work fine for me. Tested both the FQDN and It could be your host platform which causes some (Open)SSL client settings to be different host-wide, and causes this to happen. Also, i see you use port I'm not able to reproduce this on my side. |
Let me give it a shot.
Debian 11 with the latest version of Docker, I doubt that's the issue.
I don't think they do have a full chain, it's just a regular certificate generated by mkcert
Port 80 is the default for the container. I expose another port on the Debian host, which is open only to the reverse proxy, but I don't see how that's related, as the healthcheck should curl "localhost", since
|
@BlackDex Though I didn't just try to run the healthcheck manually. This is the error:
And the timestamp matches a corresponding error in the container logs:
Relevant issue: curl/curl#12183 |
Ah! Looks like That scenario isn't covered it looks like. |
Okay, definitely a minor bug, I fixed it by adding this in my docker-compose:
Not sure why I didn't set it like that in the first place, that's how I do it everywhere. Anyways, all good now. This is probably the reason:
|
That is if not running via Docker. But that could be cleared up. Since there also is a ENV variable which can relocate the |
Gotcha, thanks for the help! Even though my issue is resolved, do you still want to keep this open as a reminder? |
Yes please, this is something we need to fix i think. |
If someone is using a `.env` file or configured the `ENV_FILE` variable to use that as it's configuration, this was missed by the healthcheck. So, `DOMAIN` and `ROCKET_TLS` were not seen, and not used in these cases. This commit fixes this by checking for this file and if it exists, then it will load those variables first. Fixes dani-garcia#4112
* Fix BWDC when re-run with cleared cache Using the BWDC with a cleared cache caused invited users to be converted to accepted users. The problem was a wrong check for the `restore` function. Fixes #4114 * Remove useless variable During some refactoring this seems to be overlooked. This variable gets filled but isn't used at all afterwards. Fixes #4105 * Check some `.git` paths to force a rebuild When a checked-out repo switches to a specific tag, and that tag does not have anything else changed in the files except the tag, it could happen that the build process doesn't see any changes, while it could be that the version string needs to be different. This commit ensures that if some specific paths are changed within the .git directory, cargo will be triggered to rebuild. Fixes #4087 * Do not delete dir on file delete Previously during a `delete_file` check we also tried to delete the parent directory and ignored all errors, like not being empty for example. Since this function is called `delete_file` and does not mention anything in regards to a directory i have removed that code and it will now only delete the file and leave the rest as-is. If this somehow is still needed or wanted, which i do not think we want, then we should create a new function. Fixes #4081 * Fix healthcheck when using an ENV file If someone is using a `.env` file or configured the `ENV_FILE` variable to use that as it's configuration, this was missed by the healthcheck. So, `DOMAIN` and `ROCKET_TLS` were not seen, and not used in these cases. This commit fixes this by checking for this file and if it exists, then it will load those variables first. Fixes #4112 * Add missing route While there was a function and a derive, this endpoint wasn't part of the routes. Since Bitwarden does have this endpoint ill add the route instead of deleting it. Fixes #4076 Fixes #4144 * Update crates to update the openssl crate Because of a bug in the openssl-sys crate we pinned the version to an older version. This issue has been fixed and was released 2 days ago. This commit updates the openssl crates including others. This should also fix the issues with building Vaultwarden using newer versions of LibreSSL. Fixes #4051
Subject of the issue
Container shows as unhealthy on portainer, even though everything is working. Unsure why I'm getting these WARN logs, the curl healthcheck works within the container.
Deployment environment
1.30.1
Install method:
Docker
Clients used:
Irellevant
Reverse proxy and version:
Irellevant
Other relevant details:
Relevant .env changes:
Steps to reproduce
Expected behaviour
Container to show as healthy
Actual behaviour
Container shows as unhealthy, even though everything is working.
Troubleshooting data
The text was updated successfully, but these errors were encountered: