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 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!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
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
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
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted”
Version...
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
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
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
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
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
- #blog-post
- #ai
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #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.