-
Notifications
You must be signed in to change notification settings - Fork 17
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
errors when performing initial deployment using gatling #53
Comments
I was never able to get the app deployed using Debian 7.11 probably because of the lack of systemd. However, when I created a new Debian 8.7 droplet with my hosting provider I was able to successfully deploy the app. |
I am having similar issues. I have not been able to deploy on a fresh Ubuntu 16.04.2 x64 OS I get this error when I run the command sudo --preserve-env mix gatling.deploy app
Elixir version: 1.4.4 |
Getting similar issue but for upgrade deployments. Deployments were working fine for last few months, but this issue came up today.
There were no core changes in either mix files or any tasks related to it. In fact, the changes which were push were mainly in JavaScript. Elixir 1.4.2 |
Has anyone figured out how to get past this. Here is what I get when initially trying to deploy. ** (Mix) Trying to load MyApp.Mixfile from "nofile" but another project with the same name was already defined at "nofile" |
@laifharwood The problem we found was that Erlang version got upgraded on the deployment server to version 20, and Elixir to 1.4.4 Had to revert back the Erlang version to 19.3 and Elixir to 1.4.2. Deployments started working after that, but really not sure if that is the actual problem or something else. |
I am seeing the same problem and had to deploy manually on the server using Sadly I don't understand what is going here, but would love to assist in solving this. @dennisreimann can you check and help us out here? That would be awesome. |
My first guess would be a version conflict: Depending on your setup and Distillery config you might need the same Erlang versions on your build server and the production server. See the Distillery docs for more information on that: https://hexdocs.pm/distillery/walkthrough.html#deploying-your-release |
I only have one server. it builds and runs the production. And it only has one elixir version. When I run
So somehow gatling does something with the mix file and this doesn't work anymore on erlang/otp 20? Just a guess. |
Tried this yesterday with a fully fresh Digital Ocean droplet and Elixir 1.4.5 / OTP 20 on both sides. The deploying side was macOS, and the host was Ubuntu 17.04 , but otherwise all versions should've matched up. So I'd suspect its not a version conflict, but maybe there's something different between OSs? |
having same issue on my new deployment server that uses Elixir 1.4.5 / OTP 20 and Ubuntu 16.04. |
@Sathras Had the same problem and it was resolved when I removed Erlang & Elixir completely and installed the older versions again
** commands are from memory, you can verify before running them |
@wicliff Thank you! |
The same happening here. Why is not already solved? |
I believe this project is unfortunately stalled.
I am desperately waiting for a Phoenix 1.3 implementation since I don't
have the skill to adapt a full solution by myself but it seams not to many
people care :(
…On Wed, Oct 11, 2017 at 12:53 José Francisco Calvo ***@***.***> wrote:
The same happening here. Why is not already solved?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHukT3GXfnH8Cuu2LqOB6eOgCB_jltaDks5srQCNgaJpZM4NHvhk>
.
|
I switched to https://github.com/labzero/bootleg |
According to hex.pm edeliver seems to be a pretty popular solution. |
We are trying to free up some resources to work on this. Until then check out this video from last week on how to deploy using Gatling - https://www.dailydrip.com/topics/elixir/drips/deploying-a-phoenix-app-with-gatling Maybe it will help temporarily solve some of the issues? |
sudo mix gatling.deploy myapp `warning: redefining module MyApp.Mixfile (current version defined in memory) ** (Mix) Trying to load MyApp.Mixfile from "nofile" but another project with the same name was already defined at "nofile"` Same issue as reported above - spent a little time digging around trying to resolve this, but came up empty-handed. |
Am having the same issue now with a new Phoenix 1.3 app deployed to Ubuntu 16.04, I imagine it is probably an Erlang/OTP versioning issue as speculated above. Am going to try my luck with edeliver, hoping Gatling comes back to life soon!
|
Got the same issue, need to use the old version Erlang/OTP, really? ** (Mix) Trying to load Exsite.Mixfile from "nofile" but another project with the same name was already defined at "/root/exsite/mix.exs" |
@shisongsong eDeliver works for me on Erlang 1.4/OTP 20 with Phoenix 1.3 on Ubuntu, I recommend switching to that: https://github.com/edeliver/edeliver |
@niwest Thanks a lot ,I will have a try. |
Yo I didn't do anything. Give credit to the OG @shisongsong |
I'm using the below command on my VPS to deploy an app I recently put together.
sudo -E mix gatling.deploy kegcopr_api
However, the deployment errors out when it tries to start the app as a service.
Any help related to this issue would greatly be appreciated.
And I forgot to mention I'm using erlang 19.3 and elixir 1.4.2 via the asdf package manager.
Update
Removed the file
/etc/init.d/kegcopr_api
and reran the below command,sudo -E mix gatling.deploy kegcopr_api
Now I'm getting the following error messages.
The text was updated successfully, but these errors were encountered: