-
Notifications
You must be signed in to change notification settings - Fork 103
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
target module not available on remote node #122
Comments
To me this looks like if you have a cluster with heterogenous OTP apps. |
@arjan this is happening soon after running |
So are the same OTP applications started on both nodes? |
yes the same applications were started in both nos. It's working right now. however if I stop one of the applications and start again many times the problem mentioned above happens. |
Do you mean stopping the node or just stopping the application? ( |
The problem seems to be that the second node is still loading code when Swarm on the first node tells Swarm on the second node to start a process (resulting in the crash, because the code isn't loaded yet). This is happening because when running with Mix, applications and their code are loaded and started sequentially, while in a release, all application code is first loaded, then applications are started. My guess is that Mix starts Swarm before it starts the part of the system which invokes @arjan @beardedeagle Until we get the refactoring implemented so that Swarm can be started under the supervision tree rather than as its own tree, we could provide a configuration option which allows specifying an application that needs to be started before Swarm will start serving requests, and then basically just loop until the application status (via |
@bitwalker I circumvented the situation using the dynamicSypervisor. |
@bitwalker I think that's a workable temp solution, though I'd take it a step further and allow it to accept a list of applications. |
I have a service
calculator
and theinvestigator
running through thelibcluster
.but when I register my service, sometimes something strange happens.
for example:
When I start the
calculator
service it returns me the following message.and in the
investigator
service I get the following returnbut if I try to start it sometimes it works without problems.
can anybody help me?
The text was updated successfully, but these errors were encountered: