mwiwids
Mix edeliver start production response is "Received 'pang' from ... "
I want to make a hot-swapping elixir code using edeliver and distillary but without phoenix.
This is my code :
defmodule Countup do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, 1)
end
def init(state) do
send(self(), {:increment, 2})
{:ok, state}
end
def handle_info({:increment, value}, state) do
mystate = state + value
IO.puts(mystate)
Process.send_after(self(), {:increment, value}, 1_000)
{:noreply, mystate}
end
end
I am using :
{:edeliver, "~> 1.6"},
{:distillery, "~> 2.0"}
and learn the step from :
https://www.digitalocean.com/community/tutorials/how-to-automate-elixir-phoenix-deployment-with-distillery-and-edeliver-on-ubuntu-16-04
Well, “response : recieve pang” already show up in this forum at :
https://forum.elixirforum.com/t/mix-edeliver-start-production-cookie-mismatch-help/15937/13
I succeeded (do hot swapping) when using phoenix but failed when I didn’t use phoenix (in this code)
when I excecute ‘mix edeliver start production’, it result :
EDELIVER COUNTUP WITH START COMMAND -----> starting production servers production node: user : sammy host : example.com path : /home/sammy/app_release response: ▸ Received 'pang' from countup@127.0.0.1! ▸ Possible reasons for this include: ▸ - The cookie is mismatched between us and the target node ▸ - We cannot establish a remote connection to the node ▸ Received 'pang' from countup@127.0.0.1! ▸ Possible reasons for this include: ▸ - The cookie is mismatched between us and the target node ▸ - We cannot establish a remote connection to the node START DONE!
Any suggestions, reading or ways to navigate this?
Marked As Solved
mwiwids
Also Liked
mwiwids
Popular in Questions
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
Hi,
I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Hi,
I’m quite new in Elixir and I’m trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and I...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
I have a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
New
Hi,
I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
What is the proper way to load a module from a file in to IEX?
In the python world, doing something like this pretty standard:
from ....
New
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
Other popular topics
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Hey all,
I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
I would like to know what is the best IDE for elixir development?
New
Update:
How to use the Blogs & Podcasts section
You can post links to your blog posts or podcasts either in one of the Official Blog...
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
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









