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

Feature flag service build fails on Mac M1 #901

Closed
mviitane opened this issue May 23, 2023 · 5 comments
Closed

Feature flag service build fails on Mac M1 #901

mviitane opened this issue May 23, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@mviitane
Copy link
Member

Bug Report

Which version of the demo you are using?
Using main/latest

Symptom

Starting with a clean system
$ docker system prune -a

Build fails:

$ docker compose build featureflagservice
…
 => ERROR [builder 20/25] RUN ~/.mix/rebar3 grpc_regen                                                                                                                                                                                                      0.3s
------
 > [builder 20/25] RUN ~/.mix/rebar3 grpc_regen:
#0 0.236 escript: exception error: undefined function rebar3:main/1
#0 0.236   in function  escript:run/2 (escript.erl, line 758)
#0 0.236   in call from escript:start/1 (escript.erl, line 277)
#0 0.236   in call from init:start_em/1 
#0 0.236   in call from init:do_boot/3 
------
failed to solve: executor failed running [/bin/sh -c ~/.mix/rebar3 grpc_regen]: exit code: 127
@mviitane mviitane added the bug Something isn't working label May 23, 2023
@tsloughter
Copy link
Member

Is there anything cached? That error usually means the rebar3 is built for an incompatible version of Erlang.

@mviitane
Copy link
Member Author

I tried to clean my docker env with the prune command beforehand, but it didn't help. Also got a confirmation @cedricziel saw the same problem.

@tsloughter
Copy link
Member

I can confirm it fails for me too the same way and I'm not on a Mac. So this is unrelated to the arch.

@tsloughter
Copy link
Member

Oooooh, I know what it is.

We released rebar3 3.21.0 last week and it is built for OTP-26 (we only support the last 3 versions of OTP, so 23 which this Dockerfile uses is no longer supported -- well it technically works, but not with the prebuilt binary that the Dockerfile downloads).

@mviitane
Copy link
Member Author

This got fixed with #903

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