wdiechmann

wdiechmann

I’ve compiled as much info as possible in a gist here - but the recap is:

  • it’s a totally “empty” mix phx.new . --app battery_rehab
  • docker compose build works
  • docker compose run --rm phoenix mix test works
  • docker compose up ends phoenix with error 139

I’ve tried to google for it - but somehow I’ve managed to land both feet right into unchartered territory (with the closest thing that I could muster was that rebuild assets.deploy fail) :slightly_frowning_face: which probably speaks to the utter n00bness of me at all dabbling with 1.6 and containers (coming from ruby-land - and been wanting to for nearly 4/5 years on now without getting that well-deserved breakthrough - it’s tough) :cry:

Hoping one of you guys in here knows what kind of animal a ‘139’ is -

BR
Walther

Showing Posts 1 to 10

outlog

outlog

what computer are you on?

looks like esbuild is getting arm64 linux, and then crashing - is that correct-ish?

wdiechmann

wdiechmann OP

I’m on an M1 (Apple) - and I won’t deny that it sat with me for nearly 8 months before I tried to do any good with it :biohazard: (mostly because things like brew turned out to be such a hazzle :slightly_frowning_face: )

wdiechmann

wdiechmann OP

but the container is running off of elixir:latest (the Dockerfile gives that away in line 1) but what “platform” has never been of much interest to me - I use it very frequently with Rails containers

but I have to hurry to admit that I probably should care! And not knowing how to tell Docker to use a different “platform” may be an issue -

by the looks of it - the “platform” is aarch64

root@e2982d09dc8b:/app# uname -a
Linux e2982d09dc8b 5.10.25-linuxkit #1 SMP PREEMPT Tue Mar 23 09:24:45 UTC 2021 aarch64 GNU/Linux

dug into the ‘container-chain’ and it turns out that it all comes down to a Debian of sorts

outlog

outlog

most likely something with arm64 and that image.. can you try using the hexpm/elixir image instead hexpm/elixir - Docker Image

hexpm/elixir:1.12.0-erlang-24.1-alpine-3.14.0 maybe?

wdiechmann

wdiechmann OP

love to - right at it now!

wdiechmann

wdiechmann OP

thx!

That had me going forward!

Important lesson too! Not all platforms are made equal :wink:

(not that I didn’t know that - from building on Symbian60 in the late '90’s - but I kind’a guessed that with Docker being an “abstraction layer” this sort of was a thing of the past) - guess not :smile:

huge thank you!

outlog

outlog

awesome!

using https://asdf-vm.com for elixir/erlang/node and just running natively no containers is pretty big here in elixir land, so you can try that some adventurous day :wink:

wdiechmann

wdiechmann OP

I’m a big fan of asdf for sure - it did very well in ruby-land too, allowing me to context switch between 10+ year old projects and newly minted ones in a blink of an eye - or should I say cd :laughing:

Maybe the communities around projects like nokogiri have it ironed out by now but going 10/12 months back the M1 platform was in fact a terrible place to be running anything native that would require compiling open source stuff hence the “acquired taste” for containers :wink:

tjstankus

tjstankus

Just wanted to say thanks for posting this thread. I hit the exact same error. I thought for sure it would be some obscure thing I’d have to Google for a while. But, nope, the question and answer were right there on the front page of Elixir Forum! :grin:

wdiechmann

wdiechmann OP

:mechanical_arm: to outlog - he’s the real hero in this terrible ordeal :smiley:

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

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
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews