-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
My Razor server fails to start with openssl3 #67375
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones Issue DetailsDescriptionMy Razor server fails to start with error message Reproduction StepsStart vscode with c# extension installed and open cshtml file Expected behaviorShould start Razor server Actual behaviorFails to start Razor server Regression?It worked in Fedora 35 which used openssl1.1 I think. However I do have a openssl1.1 installed. Known WorkaroundsDo not know any ConfigurationFedora 36
Other informationNo response
|
Hm, yeah, |
@adamijak what version of RZLS do you have? If you go to View, Output, and change the drop down to "Razor Log", you should see a log message similar to this:
It looks like rzls is a self-contained .NET 6 app, but built on a preview of .NET 6, which may not have had all of the incorporated OpenSSL 3 fixes yet. @bartonjs do you recall which preview OpenSSL 3 was added in .NET 6? |
Yes I can see message saying it uses dotnet6 preview |
EVP_MD_size got renamed to EVP_MD_get_size after OSSL3b1. So if you're using a .NET 6 preview build, it sounds like you're using one older than Preview 7 (which contains the fix #55542). Assuming the Razor preview versions align with the shared framework preview versions, you need p7 or higher. Or, you can force OpenSSL 1.1 by setting the environment variable CLR_OPENSSL_VERSION_OVERRIDE to the value 1.1: export CLR_OPENSSL_VERSION_OVERRIDE=1.1
dotnet command goes here |
Based on the output of
It looks like Razor Language Server had runtime with commit @(#)Version 6.0.21.35102 @Commit: cf2938f. @bartonjs's fix landed in b72548e. Based on dates, Jeremy's fix landed after the commit that Razor Language Server is built with. |
To summarize:
|
Opened dotnet/razor#6241 |
The portion we can control was already fixed. Since there's a workaround and we've opened an issue against the component that just needs to upgrade (thanks @vcsjones) there's not really anything left to do here, so I'm going to go ahead and close the issue. |
Description
My Razor server fails to start with error message
Cannot get required symbol EVP_MD_size from libssl
Reproduction Steps
Start vscode with c# extension installed and open cshtml file
Expected behavior
Should start Razor server
Actual behavior
Fails to start Razor server
Regression?
It worked in Fedora 35 which used openssl1.1 I think. However I do have a openssl1.1 installed.
Known Workarounds
CLR_OPENSSL_VERSION_OVERRIDE=1.1 code
Configuration
Fedora 36
Razor.VSCode version 6.0.0-preview.5.21358.6
Other information
No response
The text was updated successfully, but these errors were encountered: