question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot start Razor server "Cannot get required symbol EVP_MD_size from libssl"

See original GitHub issue

Environment data

dotnet --info output:

.NET SDK (gemäß "global.json"):
 Version:   6.0.301
 Commit:    43f9b18481

Laufzeitumgebung:
 OS Name:     ubuntu
 OS Version:  22.04
 OS Platform: Linux
 RID:         ubuntu.22.04-x64
 Base Path:   /usr/share/dotnet/sdk/6.0.301/

Host (useful for support):
  Version: 6.0.6
  Commit:  7cca709db2

.NET SDKs installed:
  3.1.420 [/usr/share/dotnet/sdk]
  5.0.408 [/usr/share/dotnet/sdk]
  6.0.301 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.26 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.17 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.26 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.17 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

VS Code version:

Version: 1.69.2
Commit: 3b889b090b5ad5793f524b5d1d39fda662b96a2a
Date: 2022-07-18T16:14:10.636Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Linux x64 5.15.0-41-generic

C# Extension version: v1.25.0

OmniSharp log

Steps to reproduce

  1. Open any .cshtml file

Expected behavior

The Razor server should start.

Actual behavior

The Razor server crashes repeatedly due to the following:

Cannot get required symbol EVP_MD_size from libssl
[Info  - 10:33:46] Connection to server got closed. Server will restart.

As a result, the server never starts.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

6reactions
felipebuenocommented, Sep 28, 2022

I tried setting CLR_OPENSSL_VERSION_OVERRIDE to 1.1 but it didin’t work.

Cannot get required symbol EVP_MD_size from libssl
[Error - 11:33:11 AM] Connection to server got closed. Server will not be restarted.
[Error - 11:33:11 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:994214)
	at Object.dispose (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:1050936)
	at x.handleConnectionClosed (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:1051111)
	at x.handleConnectionClosed (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:1070276)
	at t (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:1049310)
	at n.invoke (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:979052)
	at r.fire (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:979782)
	at $ (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:986274)
	at n.invoke (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:979052)
	at r.fire (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:979782)
	at l.fireClose (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:997133)
	at Socket.<anonymous> (/home/usernamehere/.vscode/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/dist/extension.js:2:997895)
	at Socket.emit (node:events:538:35)
	at Pipe.<anonymous> (node:net:687:12)
3reactions
muchirajuniorcommented, Sep 26, 2022

Launching VSCode by adding CLR_OPENSSL_VERSION_OVERRIDE=1.1 to the launch command seems to have resolved this issue.

Can you help us with more detail information how to fix the issue please.

that does’t solve this issue at all

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error after updating to Ubuntu Server 22.04 - Support
Hi, After upgrading to Ubuntu Server 22.04 LTS I now receive the following error for all back ups: Failed: EVP_MD_size assembly: type: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found