IloSophiep
Hello together, I hope I can post a quick question here related to deployment problems:
I am currently struggling to get a simple release running on windows 10 with distillery. I’ve tried following the guide on their website, but as soon as I try running the release it crashes with Powershell errors (tested on three computers).
Is there anything in the docs with additional Infos for Windows? Should I create a new topic with the exact steps I’ve taken and the error message?
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app?
Looking for hints regarding:
Addi...
New
Hi all, I wanted to ask how the community is dealing with post-release steps.
Today we have Ecto migrations, which make sure that the db...
New
Kia ora,
We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
Hello,
I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










First 9 of 9 Posts
NobbZ
Yes, please open a new Thread, and also please add what kind of error messages you see when you try to start your application.
Inlcuding the steps you have taken to build and move the release is a big plus as well.
edit
Nevermind, I’ll move this post into a new thread, still you’ll need to provide errors as you see them and the steps taken to create/move the release.
IloSophiep
Thanks for the reply! I will write down the steps i took as best as possible. (please forgive me my german folder structure and logs…)
I started with a blank project using
mix:After opening it in VS Code i modified my application dependencies to include Distillery:
Afterwards i continued in the shell, simply following the steps described in the distillery documentation about getting your dependencies, initializing the release configuration and then building the release and running it:
Sorry for the long post, but i didn’t want to leave out any log messages that might be important…
Thanks to anyone helping!
(P.S.: Really enjoying writing Elixir, just currently struggling trying to not only run my programs via
iex..)In case the german error messages are a problem i tried to translate them (as best as i could…):
NobbZ
@bitwalker, can you read anything from those logs?
chgeuer
Hi @IloSophiep,
can you give this one a shot?
I did a few tweaks on Fix on Win10 · chgeuer/external_bitwalker_distillery@2232cd1 · GitHub … When I try this, I bump into this in the end, but that’s probably because I didn’t configure anything with the release:
Today, I did a fresh install of
otp_win64_21.3.exeandelixir-v1.8.1-setup.exeon Windows 10 version 1809 Build 17763.379 x64… Themix releaseis in an administrativecmd.exesession, because distillery docs said something about symlinks and stuff.IloSophiep
Thank you for your response!
When i use your customized version of distillery (at least that’s how i understood what you did), i also end up with the error message you got:
You wrote
which makes me think i can fix that error myself, because i simply forgot to do some additional steps after
mix release.initbut beforemix release? Any pointers for that, because reading through the distillery docs it seems like they instantly build the release after initializing.I am using PowerShell Core 6, running as admin.
Running with any of the other start params (
consoleandstart) results in the same error.Thanks again for your help!
Edit: Looking for the new error message i seem to find a few issues and posts here on the forum.
_builddirectory or remove thesmart_clean.bootit still doesn’t seem to work.elixir --version, in case that helpsSo is it a problem that once it's Erlang/OTP 21 and once it's Erlang/OTP 20..?
chgeuer
I believe that the template for erts.ps1 needs to be fixed by @bitwalker upstream. I just did a naive first attempt in my clone. In addition, you certainly need to properly use distillery in your own project, i.e. tweak the distillery config etc. I won’t have time today to look at it, certainly give it a shot tonight.
chgeuer
And @IloSophiep one remark: if you have a Win10 version where you can run the Windows Subsystem for Linux WSL, that’s certainly also a good way to develop. Just to be clear, as Microsoft employee, I’m incredibly happy that Erlang, Elixir and Distillery support Windows, but WSL gives a damn good Elixir dev environment, just sayin
IloSophiep
I am now using a “workaround”. When i went and created the release in a docker container based on ubuntu everything worked flawlessly with the same steps i took in my Windows environment.
With that i decided that i would probably be fine to run my application either on a native ubuntu host that can run the release i created in docker - or i would run a docker container executing my release (that’s what i currently did for testing on my local machine). I am thinking about using elixir in my bachelor thesis and being able to “build/release and run” an application this way should be enough for my needs.
That being said it feels like there is a bug with distillery on windows 10, because i don’t think taking the same steps in two different environments should end up with different results, right? If i understand correctly @bitwalker is the brain behind distillery? Should i create an issue on the github page with the information provided here? There seem to be a few issues regarding windows already, but none seem to be the one i am having (at least i hope i didn’t miss it)…
NobbZ
As @chgeuer already pointed out, the error seems to be in powershell scripts that orchestrate the release.
So, yeah, those massively depend on the host operating system.
But as it seems, Can't start application on windows 10 · Issue #599 · bitwalker/distillery · GitHub is at least partially related.