victorolinasc
Hello people!
I’ve been testing Elixir 1.9.0 releases and can’t make it work on a very simple project… it is failing with:
Generated <<project>> app
Release <<project>>-0.1.0 already exists. Overwrite? [Yn] Y
* assembling <<project>>-0.1.0 on MIX_ENV=prod
* using config/releases.exs to configure the release at runtime
Cannot read "<<project_root>>/_build/prod/rel/<<Project>>/releases/0.1.0/start.script"
** (MatchError) no match of right hand side value: :error
(mix) lib/mix/release.ex:433: Mix.Release.make_boot_script/4
(mix) lib/mix/tasks/release.ex:1063: anonymous fn/5 in Mix.Tasks.Release.make_boot_scripts/3
(stdlib) maps.erl:257: :maps.fold_1/3
(mix) lib/mix/tasks/release.ex:1060: Mix.Tasks.Release.make_boot_scripts/3
(mix) lib/mix/tasks/release.ex:1008: Mix.Tasks.Release.build_rel/2
(mix) lib/mix/tasks/release.ex:955: Mix.Tasks.Release.assemble/1
(mix) lib/mix/tasks/release.ex:931: Mix.Tasks.Release.run_steps/1
(mix) lib/mix/task.ex:331: Mix.Task.run_task/3```
This is a simple Phoenix project without ecto, html or webpack.
Elixir: 1.9.0 (with asdf)
Erlang: 21.3.8 (with asdf)
Nothing configured on mix.exs for releases. Can run project just fine with pure iex iex -S mix but cant generate the release. Run mix release.init just fine but mix release breaks.
The file it says it can’t read is there with readable permissions:
ls -la _build/dev/rel/<<project>>/releases/0.1.0/
total 152
drwxrwxr-x. 2 victorolinasc victorolinasc 4096 jul 3 12:01 .
drwxrwxr-x. 3 victorolinasc victorolinasc 4096 jul 3 12:01 ..
-rw-rw-r--. 1 victorolinasc victorolinasc 57409 jul 3 12:01 start.boot
-rw-rw-r--. 1 victorolinasc victorolinasc 1218 jul 3 12:01 start.rel
-rw-rw-r--. 1 victorolinasc victorolinasc 78962 jul 3 12:01 start.script
Tried to look for the line it says it is breaking (lib/mix/release.ex:433) but on tag 1.9 this line is comment and then not sure how to debug it further down.
Anyone with that problem?
Trending in Questions
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
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
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
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
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
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
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
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
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
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 6 to 1- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
axelson
That sounds like the issue that @boydm is investigating here: New project won't run · Issue #36 · ScenicFramework/scenic_new · GitHub
But my guess is it is unrelated to this issue.
victorolinasc
That was actually my poor copy and paste skill… though I am sure both environments had the same issue (tested this for some hours with all possible combinations I could think of at the moment).
As I said before, I’ve moved on to using Distillery. When I find some time I’ll try to reproduce it once again to see if I can upload a minimum project for helping debugging it.
Thanks!
krstfk
I don’t know if it has to do anything with your issue but the script is failing with
And you listed files from _build/dev.
(I actually have a similar weird issue with scenic where the driver always seems to be put in the wrong environment, but I didn’t have a chance to investigate).
OvermindDL1
If you can make a minimal reproduceable example, I know that @josevalim would love to have a link to the repo, probably in the elixir issue tracker (even better if its reproduced in a docker container for ease of stable platform testing), especially as that sounds like it could be a big issue!
victorolinasc
I’ve tried that several times to no avail. Also tried nuking deps, and some other nuke opttions also without success. I’ve moved back to distillery for now. Will try again later when I have more time.
Thanks!
OvermindDL1
I’d say wipe
_buildand try again, it looks like there was a release started but killed at one point. Elixir should still handle this better I’d think though. @josevalim?