Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

ServiceDiscovery Failure on handle result #21

Closed
sleipnir opened this issue Mar 15, 2021 · 6 comments · Fixed by #19
Closed

ServiceDiscovery Failure on handle result #21

sleipnir opened this issue Mar 15, 2021 · 6 comments · Fixed by #19
Assignees
Labels
bug Something isn't working platform
Projects

Comments

@sleipnir
Copy link
Member

During tests @ralphlaude found some errors during discovery phase.
This may be related to the issue #20

iex --name [email protected] -S mix
Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]

2021-03-07 21:31:44.033 [[email protected]]:[pid=<0.655.0> ]:[warn]: [libcluster:dev] unable to connect to :"[email protected]"
2021-03-07 21:31:44.034 [[email protected]]:[pid=<0.655.0> ]:[warn]: [libcluster:dev] unable to connect to :"[email protected]"
2021-03-07 21:31:44.034 [[email protected]]:[pid=<0.664.0> ]:[info]: Starting Horde.RegistryImpl with name MassaProxy.GlobalRegistry
2021-03-07 21:31:44.035 [[email protected]]:[pid=<0.667.0> ]:[info]: Starting Horde.DynamicSupervisorImpl with name MassaProxy.GlobalSupervisor
2021-03-07 21:31:44.035 [[email protected]]:[pid=<0.671.0> ]:[info]: Starting Proxy Cluster...
2021-03-07 21:31:44.035 [[email protected]]:[pid=<0.671.0> ]:[info]: [massa proxy on :"[email protected]"]: Connecting Horde to :"[email protected]"
2021-03-07 21:31:44.035 [[email protected]]:[pid=<0.671.0> ]:[info]: [massa proxy on :"[email protected]"]: Connecting Horde to :"[email protected]"
2021-03-07 21:31:44.036 [[email protected]]:[pid=<0.671.0> ]:[debug]:Starting Supervisors...
2021-03-07 21:31:44.039 [[email protected]]:[pid=<0.551.0> ]:[info]: Starting Registry for EventSourced
2021-03-07 21:31:44.039 [[email protected]]:[pid=<0.677.0> ]:[info]: [MassaProxy on :"[email protected]"][EntityRegistry]: Initializing...
2021-03-07 21:31:44.039 [[email protected]]:[pid=<0.675.0> ]:[warn]: CRDT: %{}
2021-03-07 21:31:44.039 [[email protected]]:[pid=<0.675.0> ]:[warn]: Picked up [] for EventSourced
2021-03-07 21:31:44.039 [[email protected]]:[pid=<0.551.0> ]:[info]: Starting Registry for CRDT
2021-03-07 21:31:44.040 [[email protected]]:[pid=<0.678.0> ]:[info]: [MassaProxy on :"[email protected]"][EntityRegistry]: Initializing...
2021-03-07 21:31:44.040 [[email protected]]:[pid=<0.675.0> ]:[warn]: CRDT: %{}
2021-03-07 21:31:44.040 [[email protected]]:[pid=<0.675.0> ]:[warn]: Picked up [] for CRDT
2021-03-07 21:31:44.040 [[email protected]]:[pid=<0.551.0> ]:[info]: Starting Registry for Stateless
Interactive Elixir (1.11.3) - press Ctrl+C to exit (type h() ENTER for help)
2021-03-07 21:31:44.040 [[email protected]]:[pid=<0.679.0> ]:[info]: [MassaProxy on :"[email protected]"][EntityRegistry]: Initializing...
2021-03-07 21:31:44.040 [[email protected]]:[pid=<0.675.0> ]:[warn]: CRDT: %{}
2021-03-07 21:31:44.040 [[email protected]]:[pid=<0.675.0> ]:[warn]: Picked up [] for Stateless
iex([email protected])1> 2021-03-07 21:31:44.041 [[email protected]]:[pid=<0.551.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
2021-03-07 21:31:50.043 [[email protected]]:[pid=<0.682.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
2021-03-07 21:31:50.043 [[email protected]]:[pid=<0.551.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
2021-03-07 21:31:56.046 [[email protected]]:[pid=<0.745.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
2021-03-07 21:31:56.046 [[email protected]]:[pid=<0.551.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
2021-03-07 21:32:02.049 [[email protected]]:[pid=<0.808.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
@sleipnir sleipnir added bug Something isn't working platform labels Mar 15, 2021
@sleipnir sleipnir self-assigned this Mar 15, 2021
@sleipnir sleipnir added this to To do in Massa Proxy via automation Mar 15, 2021
@sleipnir sleipnir linked a pull request Mar 15, 2021 that will close this issue
@ralphlaude
Copy link
Collaborator

It was the same error I had locally. I have nothing to add. Let the fix for #20 and see how it works.

@sleipnir
Copy link
Member Author

@ralphlaude your error message was slightly different from the message reported by @marcellanz test.
What I need to know about you are the versions that are using the protocol and how I can reproduce the error locally, which image used in your tests and etc ...
It would help me a lot.

@ralphlaude
Copy link
Collaborator

Sorry :) @sleipnir to be late with the error-log. I hope it can help.

iex --name [email protected] -S mix
Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]

2021-03-16 22:44:29.657 [[email protected]]:[pid=<0.480.0> ]:[warn]: [libcluster:dev] unable to connect to :"[email protected]"
2021-03-16 22:44:29.658 [[email protected]]:[pid=<0.480.0> ]:[warn]: [libcluster:dev] unable to connect to :"[email protected]"
2021-03-16 22:44:29.658 [[email protected]]:[pid=<0.489.0> ]:[info]: Starting Horde.RegistryImpl with name MassaProxy.GlobalRegistry
2021-03-16 22:44:29.659 [[email protected]]:[pid=<0.492.0> ]:[info]: Starting Horde.DynamicSupervisorImpl with name MassaProxy.GlobalSupervisor
2021-03-16 22:44:29.659 [[email protected]]:[pid=<0.496.0> ]:[info]: Starting Proxy Cluster...
2021-03-16 22:44:29.659 [[email protected]]:[pid=<0.496.0> ]:[info]: [massa proxy on :"[email protected]"]: Connecting Horde to :"[email protected]"
2021-03-16 22:44:29.659 [[email protected]]:[pid=<0.496.0> ]:[info]: [massa proxy on :"[email protected]"]: Connecting Horde to :"[email protected]"
2021-03-16 22:44:29.659 [[email protected]]:[pid=<0.496.0> ]:[debug]:Starting Supervisors...
2021-03-16 22:44:29.661 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Registry for EventSourced
2021-03-16 22:44:29.662 [[email protected]]:[pid=<0.500.0> ]:[info]: [MassaProxy on :"[email protected]"][EntityRegistry]: Initializing...
2021-03-16 22:44:29.662 [[email protected]]:[pid=<0.498.0> ]:[warn]: CRDT: %{}
2021-03-16 22:44:29.662 [[email protected]]:[pid=<0.498.0> ]:[warn]: Picked up [] for EventSourced
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Registry for CRDT
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.501.0> ]:[info]: [MassaProxy on :"[email protected]"][EntityRegistry]: Initializing...
Interactive Elixir (1.11.3) - press Ctrl+C to exit (type h() ENTER for help)
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.498.0> ]:[warn]: CRDT: %{}
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.498.0> ]:[warn]: Picked up [] for CRDT
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Registry for Stateless
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.503.0> ]:[info]: [MassaProxy on :"[email protected]"][EntityRegistry]: Initializing...
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.498.0> ]:[warn]: CRDT: %{}
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.498.0> ]:[warn]: Picked up [] for Stateless
2021-03-16 22:44:29.663 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
iex([email protected])1> 2021-03-16 22:44:35.665 [[email protected]]:[pid=<0.504.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
2021-03-16 22:44:35.666 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
2021-03-16 22:44:41.669 [[email protected]]:[pid=<0.568.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
2021-03-16 22:44:41.669 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
2021-03-16 22:44:47.672 [[email protected]]:[pid=<0.631.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
2021-03-16 22:44:47.672 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
2021-03-16 22:44:53.674 [[email protected]]:[pid=<0.693.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
2021-03-16 22:44:53.675 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
2021-03-16 22:44:59.677 [[email protected]]:[pid=<0.755.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
2021-03-16 22:44:59.677 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080
2021-03-16 22:45:05.679 [[email protected]]:[pid=<0.817.0> ]:[error]:GenServer Discovery.Worker terminating
** (stop) bad return value: %ArgumentError{message: "argument error"}
Last message: :work
State: []
2021-03-16 22:45:05.680 [[email protected]]:[pid=<0.376.0> ]:[info]: Starting Elixir.Discovery.Worker on target function address tcp://127.0.0.1:8080

@sleipnir
Copy link
Member Author

Thanks @ralphlaude can you report what the proxy tested against? I'm interested on the User Function side, it was a docker image that I can download, it was a branch of some repository, what version of the protocol is used by this user function, and etc ...?
How can I reproduce your test faithfully to get to the same error?

@ralphlaude
Copy link
Collaborator

@sleipnir locally I ran only the following commands:

  1. iex --name [email protected] -S mix
  2. iex --name [email protected]
  3. iex --name [email protected]

I didn't start a docker image. If you just run all the following commands you can reproduce the errors. I would like to help more.

@sleipnir
Copy link
Member Author

So there is no error, this message is normal because no user role was found. I'm closing this issue.
Thanks @ralphlaude

Massa Proxy automation moved this from To do to Done Mar 17, 2021
@sleipnir sleipnir added this to the eigr/massa v0.1.0 milestone Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working platform
Projects
Massa Proxy
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants