-
Notifications
You must be signed in to change notification settings - Fork 74
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
OTP version mismatch #54
Comments
See the discussion in #35 on why that is the case. In short, the precompiled packages we use are compiled with erlang 19. |
I agree that looks like a better option; the situation now is better than 2015 when this project started, when the recommended way was to use the Precompiled.zip and the Precompiled.zip had only one compiled OTP version now when the hexpm build service has https://repo.hex.pm/builds/elixir/v1.6.1-otp-20.zip it looks like better than to use the default |
Another option would be to |
A co-worker and I just created a Docker image that uses the |
if you track some earlier discussions in this issue tracker, I was intended to do that way, download the source tarball and compile and docker build, like what I did in the erlang images, Right now the "OTP version mismatch" is indeed a problem, it's because using a latest Erlang image (built from latest version Erlang source) + latest Elixir binary release, but the binary Precompiled.zip was built with a previous version of OTP, for wider OTP compatibility reasons, which is causing the mismatch problem; Should we now switch back to use the building from source tarball solution? I'd like to keep this open for longer time discussion. |
Elixir always guarantees it works with the minimum supported version, so in theory, using the precompiled version should be fine. @michaelstalker, did you try running the Sentry suite with Erlang 19 and the same precompiled Elixir version and see if the issue happens as well? I cannot think of anything in the compiler that would justify the behaviour you are seeing. |
@josevalim I haven't tried compiling the Sentry library with Erlang 19 and the precompiled Elixir. That's a good idea. I was never able to get a good trace to see which files the compiler couldn't find. However, one file that triggered the failure only contained references to Mix modules and modules built into the Elixir language, which strikes me as really odd, because like Mix and Elixir should both have been loaded already in order for compilation to even start for my project. That makes me think it's possible that I'm misdiagnosing the problem. |
When I use the elixir:1.6.1-alpine image, there's a mismatch between the OTP version on the OS and the OTP version for Elixir.
outputs
I think this is causing some intermittent Sentry compilation errors like getsentry/sentry-elixir#232.
The text was updated successfully, but these errors were encountered: