-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to deploy application on Dokku #2332
Comments
You included the versions you have on your local OS X, but what elixir and Erlang versions are installed on the dokku server? |
The Dokku server is configured as follow
|
@Loschcode there is something broken in your postgrex package. Postgrex 0.13.2 has 62 files but your compiler above says it has only 42. Or it is trying to use a previously cached version and that somehow is causing a failure or the dependency is somehow corrupt/broken. I would temporarily set the config to true below hoping it will force a full recompilation without reusing caches.
|
Sadly, it didn't change the error, I'm trying to understand why it doesn't compile properly but can't find out why
|
@Loschcode to be clear, you set |
Yes it's what I just did, it didn't change the error |
How does Dokku build Elixir projects, is there a buildpack? |
Yes, I use this buildpack https://github.com/HashNuke/heroku-buildpack-elixir It should work, I already used it for a released project ... |
It seems like you are using an outdated version of the buildpack or your config is outdated. The options |
You're right, I changed it to the following
But it didn't change the error with Postgrex, it keeps failing 😞 |
By downgrading the version of Postgrex to 0.13.0 the compilation succeeded (0.13.1 did not)
But that's getting weirder and weirder as it crashes for another reason now
My deps look like that
Maybe the fact I changed Postgrex version make the following dependencies crash ? |
@Loschcode there is definitely something messed up in your deployment pipeline as it is now missing a file from another dependency. I don't know what is the cause but it is definitely something unrelated to Phoenix. Is there any chance this current machine is borked? |
Well if you say so I can try to make everything from scratch including server, git and project and see what happens, it's extremely disturbing because I don't recall anything wrong in what I did 😞 I'll do that and if it works, then issue closed I guess. Other than that, my local machine is working clean, the local version is working as well, but the server I use seems to act funny with this specific repo ; i'll try to find out. |
@Loschcode maybe in dokku you can start a whole new project? If possible, maybe try that and make sure to start with the latest buildpack. |
this is clearly a heroku-buildpack-elixir issue. related HashNuke/heroku-buildpack-elixir#88
|
It's more likely it's a dokku issue or an issue with the machine it's running on since the buildpack has been working without issue on heroku from some time. The buildpack was made for heroku and I don't think it has been tested on dokku by the maintainers of the buildpack. |
Closing this until we can pinpoint it is a Phoenix issue. |
Environment
Expected behavior
When deploying on my Dokku application on DigitalOcean, it should just work. The application is fresh and I wrote literally nothing in it to troubleshoot the problem.
Actual behavior
After trying to push with
git push dokku
it goes through the process until it crashes with Postgrex.I'm out of solution, it's been several days now and it's literally a fresh new project without anything in it. I just configured the database properly taking inspiration from my own working projects on Dokku.
The text was updated successfully, but these errors were encountered: