interpretive_scholar

interpretive_scholar

Creating container error: exception error: undefined function erlang:nif_error/1

I am trying to build a container for a new Phoenix app that I want to deploy in our kubernetes cluster. The container blows up when it reaches the `mix local.hex --force` step.

I am trying to use the following base container

https://docker.io/hexpm/elixir:1.20.2-erlang-29.0.2-debian-trixie-20260623-slim

This is the error

root@9f01ee8ee21e:/app# mix local.hex --force
=ERROR REPORT==== 22-Jul-2026::16:22:23.426455 ===
** State

machine user_drv terminating
** When server state  = {undefined,undefined}
** Reason for termination = error:undef
** Callback modules = [user_drv]
** Callback mode = state_functions
** Stacktrace =
**  [{erlang,nif_error,[undef],[{error_info,#{module => erl_erts_errors}}]},
{prim_tty,isatty,1,[{file,"prim_tty.erl"},{line,1375}]},
{user_drv,init,1,[{file,"user_drv.erl"},{line,184}]},
{gen_statem,init_it,6,[{file,"gen_statem.erl"},{line,3316}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,333}]}]

=CRASH REPORT==== 22-Jul-2026::16:22:23.427725 ===
crasher:
initial call: user_drv:init/1
pid: <0.67.0>
registered_name: 

exception error: undefined function erlang:nif_error/1
in function  prim_tty:isatty/1 (prim_tty.erl:1375)
in call from user_drv:init/1 (user_drv.erl:184)
in call from gen_statem:init_it/6 (gen_statem.erl:3316)
ancestors: [<0.66.0>,kernel_sup,<0.47.0>]
message_queue_len: 0
messages: 

links: 

dictionary: 

trap_exit: true
status: running
heap_size: 610
stack_size: 29
reductions: 372
neighbours:

=CRASH REPORT==== 22-Jul-2026::16:22:33.862193 ===
crasher:
initial call: supervisor_bridge:user_sup/1
pid: <0.66.0>
registered_name: 

exception exit: nouser
in function  gen_server:init_it/6 (gen_server.erl:2257)
ancestors: [kernel_sup,<0.47.0>]
message_queue_len: 0
messages: 

links: [<0.49.0>]
dictionary: 

trap_exit: true
status: running
heap_size: 376
stack_size: 29
reductions: 717
neighbours:

=SUPERVISOR REPORT==== 22-Jul-2026::16:22:33.865150 ===
supervisor: {local,kernel_sup}
errorContext: start_error
reason: nouser
offender: [{pid,undefined},
{id,user},
{mfargs,{user_sup,start,
}},
{restart_type,temporary},
{significant,false},
{shutdown,2000},
{child_type,supervisor}]

=CRASH REPORT==== 22-Jul-2026::16:22:33.884885 ===
crasher:
initial call: application_master:init/3
pid: <0.46.0>
registered_name: 

exception exit: {{shutdown,{failed_to_start_child,user,nouser}},
{kernel,start,[normal,
]}}
in function  application_master:init/3 (application_master.erl:147)
ancestors: [application_controller,<0.10.0>]
message_queue_len: 1
messages: [{'EXIT',<0.47.0>,normal}]
links: [<0.45.0>]
dictionary: 

trap_exit: true
status: running
heap_size: 233
stack_size: 29
reductions: 63
neighbours:

=INFO REPORT==== 22-Jul-2026::16:22:33.885142 ===
application: kernel
exited: {{shutdown,{failed_to_start_child,user,nouser}},
{kernel,start,[normal,
]}}
type: permanent

Kernel pid terminated (application_controller) ("{application_start_failure,kernel,{{shutdown,{failed_to_start_child,user,nouser}},{kernel,start,[normal,
]}}}")

Crash dump is being written to: erl_crash.dump...done

Edit: it seems like the container is broken. How would I report this? 


I guess I can try some other OS to see I am getting the same error.

Any other ideas on how I can move forward with this?

First Post!

interpretive_scholar

interpretive_scholar

It seems like there is problem with the Elixir installation in the container. I am trying another container

Last Post!

interpretive_scholar

interpretive_scholar

It appears to be a problems with the base containers. Anyone knows how I would report this issue? Where?

Where Next?

Popular in Troubleshooting Top

ndan
Oban.Pro.Migration.up(version: "1.7.0", only: :indexes) fails on partitioned oban_jobs table when upgrading Oban Pro from 1.6 to 1.7 def...
New
bugnano
Hello everyone. I’m the author of GitHub - bugnano/wtransport-elixir: Elixir bindings for the WTransport WebTransport library · GitHub ,...
New
Lotoen
Hello, I am currently using Elixir 1.18.4 and OTP 27 with Linux Mint 22.3 - Cinnamon 64-bit as my operating system. I came across this er...
New
AstraLuma
Experienced programmer writer her first Elixir, and maybe bit off more than she can chew? I’m trying to start two GenServers, where the ...
New
ChrisAmelia
Currently reading and experimenting through, which is in 1.6 Chapter 7: Sign up | Phoenix Tutorial (Phoenix 1.6) | Softcover.io In regar...
New
cpeluti
Well, after getting tired of using prints to debug, I’ve decided to setup the debugger. After setting the launch as this: { "configu...
New
interpretive_scholar
I am trying to build a container for a new Phoenix app that I want to deploy in our kubernetes cluster. The container blows up when it ...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44139 214
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement