Silent-Wraith01
dev@dev:\~/discuss$ iex -S mix phx.server
Erlang/OTP 25 \[erts-13.1.5\] \[source\] \[64-bit\] \[smp:16:2\] \[ds:16:2:10\] \[async-threads:1\] \[jit:ns\]
\[error\] Unable to load crypto library. Failed with error:
“:load_failed, Failed to load NIF library /home/dev/.asdf/installs/erlang/25.2.3/lib/crypto-5.1.2/priv/lib/crypto: ‘libcrypto.so.1.1: cannot open shared object file: No such file or directory’”
OpenSSL might not be installed on this system.
\[warning\] The on_load function for module crypto returned:
{:error,
{:load_failed,
‘Failed to load NIF library /home/dev/.asdf/installs/erlang/25.2.3/lib/crypto-5.1.2/priv/lib/crypto: 'libcrypto.so.1.1: cannot open shared object file: No such file or directory'’}}
\[notice\] Application plug exited: Plug.Application.start(:normal, [ ]) returned an error: shutdown: failed to start child: Plug.Upload
\*\* (EXIT) an exception was raised:
\*\* (UndefinedFunctionError) function :crypto.strong_rand_bytes/1 is undefined (module :crypto is not available)
(crypto 5.1.2) :crypto.strong_rand_bytes(3)
(plug 1.16.1) lib/plug/upload.ex:210: Plug.Upload.init/1
(stdlib 4.2) gen_server.erl:851: :gen_server.init_it/2
(stdlib 4.2) gen_server.erl:814: :gen_server.init_it/6
(stdlib 4.2) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
\[notice\] Application telemetry exited: :stopped
\[notice\] Application plug_crypto exited: :stopped
\[notice\] Application mime exited: :stopped
\[notice\] Application eex exited: :stopped
\[notice\] Application runtime_tools exited: :stopped
\*\* (Mix) Could not start application plug: Plug.Application.start(:normal, [ ]) returned an error: shutdown: failed to start child: Plug.Upload
\*\* (EXIT) an exception was raised:
\*\* (UndefinedFunctionError) function :crypto.strong_rand_bytes/1 is undefined (module :crypto is not available)
(crypto 5.1.2) :crypto.strong_rand_bytes(3)
(plug 1.16.1) lib/plug/upload.ex:210: Plug.Upload.init/1
(stdlib 4.2) gen_server.erl:851: :gen_server.init_it/2
(stdlib 4.2) gen_server.erl:814: :gen_server.init_it/6
(stdlib 4.2) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
dev@dev:\~/discuss$
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
NobbZ
You have to install
libcrypto, usually part of OpenSSL.Details on how to do that should be described in your Linux Distributions manual.
Silent-Wraith01
That’s the problem I was gifted this computer without any manual, I know that the distributor id is Ubuntu, I’m running Ubuntu 24.04.3 LTS.
NobbZ
With “your Linux Distributions manual” I meant whatever ressources you can find through the Internet.
Though for Ubuntu its very likey
apt install openssl, maybeopenssl-devSilent-Wraith01
Hello and Thank you. I will get back to you on this matter, I am thankful for your help. I hope that we can keep in touch.
Silent-Wraith01
I just did Sudo apt install openssl and it states that it’s already installed, In my problem it states that it’s not installed.
NobbZ
Therefore I have asked you to also try the
openssl-devNobbZ
Wait, I have read the original error again. It is asking for version 1.1 of the library. That has been deprecated many years ago and hasn’t been shipped in Ubuntu since 22.04.
I also have realized, that you are using OTP 25.2. The prebuilt versions might indeed still link to that old version. If you are lucky a very recent 25.3.2.21 might link the correct libcrypto by default, as it is a quite recent release.
If not you might have to force a sourcebuild or try even OTP 26 or newer.
I haven’t used ASDF in ages, so I do not remember how to enforce an erlang build from source.
Silent-Wraith01
I tried exactly what you said and it didn’t work out because it states that openssl is already installed on my laptop. I know that I don’t have a lot of information about this, I hope that you will keep helping me until I can solve this issue.
Silent-Wraith01
If you know how I can manually install and or update these things that would be very helpful, I’m sorry for being so clueless here.
NobbZ
All I remember about
asdfis, that there should be a.tool-versionsin your project, which you have to adjust. But in which way, you have to check in the documentation of theasdf-erlangplugin you use.