Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One more question (not a bug) #152

Open
nhpip opened this issue Aug 11, 2024 · 2 comments
Open

One more question (not a bug) #152

nhpip opened this issue Aug 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nhpip
Copy link

nhpip commented Aug 11, 2024

First, I love what you made with burrito, especially the UTF8 birrito on mix release.

So when I said no-shell, it's part of a Docker scratch container. I get this error. Have you managed to run burrito in this way?

Thanks again...

debug: Directory Exists: /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases
debug: Directory Exists: /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0
debug: Unpacked File: /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0/elixir
debug: Unpacked 886 files
[i] Install path is being overriden using `INJECT_ELIXIR_INSTALL_DIR`
[i] New install path is: /
debug: Going to clean up older versions of this application...
debug: Launching erlang...
debug: CLI List: { /.burrito/inject_elixir_erts-14.2.4_0.1.0/erts-14.2.4/bin/erlexec, -elixir ansi_enabled true, -noshell, -s elixir start_cli, -mode embedded, -setcookie, MBWZ2XGJOTLI6AM5DB5FGNBUYEECOHDA7HEBBRJYVMRF2CUYG24Q====, -boot, /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0/start, -boot_var, RELEASE_LIB, /.burrito/inject_elixir_erts-14.2.4_0.1.0/lib, -args_file, /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0/vm.args, -config, /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0/sys.config, -extra, --help }
error: FileNotFound
/usr/lib/zig/std/posix.zig:1845:19: 0x15e7664 in execveZ (inject_elixir)
/usr/lib/zig/std/posix.zig:1881:57: 0x15cbfaa in execvpeZ_expandArg0__anon_9505 (inject_elixir)
/usr/lib/zig/std/process.zig:1679:5: 0x158d8a2 in execve (inject_elixir)
/collection_server/tools/inject_elixir/deps/burrito/src/erlang_launcher.zig:109:9: 0x158cbb4 in launch (inject_elixir)
/collection_server/tools/inject_elixir/deps/burrito/src/wrapper.zig:145:5: 0x157a2da in main (inject_elixir)

Not using scratch:

debug: Directory Exists: /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases
debug: Directory Exists: /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0
debug: Unpacked File: /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0/elixir
debug: Unpacked 886 files
[i] Install path is being overriden using `INJECT_ELIXIR_INSTALL_DIR`
[i] New install path is: /
debug: Going to clean up older versions of this application...
debug: Launching erlang...
debug: CLI List: { /.burrito/inject_elixir_erts-14.2.4_0.1.0/erts-14.2.4/bin/erlexec, -elixir ansi_enabled true, -noshell, -s elixir start_cli, -mode embedded, -setcookie, MBWZ2XGJOTLI6AM5DB5FGNBUYEECOHDA7HEBBRJYVMRF2CUYG24Q====, -boot, /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0/start, -boot_var, RELEASE_LIB, /.burrito/inject_elixir_erts-14.2.4_0.1.0/lib, -args_file, /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0/vm.args, -config, /.burrito/inject_elixir_erts-14.2.4_0.1.0/releases/0.1.0/sys.config, -extra, --help }
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell) or set the ELIXIR_ERL_OPTIONS="+fnu" environment variable
@nhpip nhpip added the bug Something isn't working label Aug 11, 2024
@nhpip
Copy link
Author

nhpip commented Aug 12, 2024

we are using our own erlang image, but it appears that erlexec required musl

@doawoo
Copy link
Contributor

doawoo commented Sep 3, 2024

@nhpip The pre-built "universal" erlangs provided by burrito to require musl, which usually get extracted before the executable is launched.

you mentioned you were using your own Erlang image, did you set that up in your mix.exs as a custom ERTS? Or are you referring to a docker/container image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants