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
I’m aware of 2 such projects, are there others?
git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
Hi everyone.
My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
I really like the adapter patterns that ecto, nebulex, waffle, etc. use and would love find something similar for a key management servic...
New
Hello folks!
So at work, we are seeing some situations where we have to define some “fixed” strings that are used across the codebase in...
New
How Can I Optimise Compile Time Dependencies
I have been building an elixir application for about 2 years now. Many modules and files ha...
New
Other Trending Topics
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
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
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with.
But I don’t use it anymore.
Serverless was the promis...
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
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming











Showing Posts 1 to 9- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
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.