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!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
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
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted”
Version...
New
Other Trending Topics
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
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
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
- #elixirconf-us
- #blog-post
- #ai
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










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.