riverrun

riverrun

I am the maintainer of Comeonin (and its password hashing dependencies).

Several users are having problems deploying argon2_elixir, as can be seen in this issue. It seems that there are no problems with bcrypt_elixir.

If anyone is successfully deploying argon2_elixir, we would love to hear from you :slight_smile: Hopefully, you can help resolve this issue.

Showing Posts 18 to 9

riverrun

riverrun OP

Great to hear you got it working

fireproofsocks

fireproofsocks

I think I got this worked out… not really sure what the hiccup was… I was working through a lot of Docker issues, now everything seems to be coming up clean.

riverrun

riverrun OP

Also, how much memory is your server / docker instance going to have?

riverrun

riverrun OP

For information about choosing the m_cost (memory allocation), see Argon2.Stats — argon2_elixir v4.1.3 - you can set the value in the config file (you will probably need to reduce it to 16 or 15).

And here is some information about using Docker with argon2_elixir - Deployment · riverrun/comeonin Wiki · GitHub

fireproofsocks

fireproofsocks

Sorry to be clueless, but how do I deduce the m_cost? Is that a config value somewhere?

As for cores, I don’t know. The Docker Daemon on Mac I have configured to use 4 CPUs, but I don’t know if that will be equivalent.

riverrun

riverrun OP

How many cores are you using? You need to use more than one.
For docker deployments, you will also probably need to reduce the m_cost.
Finally, you can remove the comeonin line from your mix.exs file.
Let me know how you get on.

fireproofsocks

fireproofsocks

I’m having trouble with this… trying to build for Docker deployments (per our company’s DevOps requirements).

I get an error like the following on startup:

crash_report #{label=>{proc_lib,crash},report=>[[{initial_call,{supervisor,kernel,[‘Argument__1’]}},{pid,<0.2040.0>},{registered_name,},{error_info,{exit,{on_load_function_failed,‘Elixir.Argon2.Base’},[{init,run_on_load_handlers,0,},{kernel,init,1,[{file,“kernel.erl”},{line,212}]},{supervisor,init,1,[{file,“supervisor.erl”},{line,295}]},{gen_server,init_it,2,[{file,“gen_server.erl”},{line,374}]},{gen_server,init_it,6,[{file,“gen_server.erl”},{line,342}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,249}]}]}},{ancestors,[kernel_sup,<0.2014.0>]},{message_queue_len,0},{messages,},{links,[<0.2016.0>]},{dictionary,},{trap_exit,true},{status,running},{heap_size,376},{stack_size,27},{reductions,273}],]}

This is using

{:comeonin, "~> 5.0"},
{:argon2_elixir, "~> 2.0"},

in an umbrella app using distillery {:distillery, "~> 2.0.12", runtime: false}

smartdevbr

smartdevbr

what about this…

$ iex -S mix
==> argon2_elixir
could not compile dependency :argon2_elixir, “mix compile” failed. You can recompile this dependency with “mix deps.compile argon2_elixir”, update it with “mix deps.update argon2_elixir” or clean it with “mix deps.clean argon2_elixir”
==> Project
** (Mix) “nmake” not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

riverrun

riverrun OP

Problem solved :smile:

Simplifying the Makefile, along with a couple of other minor changes to the NIF code, (in version 1.2.13) seems to have solved the problem.

If anyone here was having issues creating a release, please update to 1.2.13.

riverrun

riverrun OP

Quick update: I have made changes to the Makefile (removed some of the optimization options), and I’m waiting for feedback on those changes.

Where Next? Top

Trending in Questions Top

katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
achenet
Hello, I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind. However, when I launch mix phx.server, I get an error...
New
kpanic
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
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
Cxx-mlr
I’m working on a small exercise involving update_in/3, and I came up with this solution: data = %{ name: "Periodic Table", category:...
New
ChrisAmelia
I’ve got trouble wrapping my head around the order in which functions are called in this snippet (from Phoenix’s authentication): toke...
New

Other Trending Topics Top

GenericJam
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
JesseHerrick
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
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews