Skip to content
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

Multiple errors running the hypervisor and visor on mainnet-milestone2 #22

Closed
Senyoret1 opened this issue Oct 8, 2019 · 4 comments
Closed
Assignees
Labels
bug Something isn't working on hold Put on hold until a specific event

Comments

@Senyoret1
Copy link
Contributor

Describe the bug
Using the mainnet-milestone2 branch, the hypervisor does not run. Also, the visor has problems connecting to the dmsg server.

Environment information:

  • OS: Linux (Ubuntu 18.04.1)
  • Platform: Linux 4.15.0-65-generic x86_64

Steps to Reproduce
Steps to reproduce the behavior:

  1. Run make install using the mainnet-milestone2 branch.

  2. Run hypervisor gen-config -o hypervisor-config.json, to create a default configuration file for the hypervisor.

  3. Run hypervisor. It will fail with Failed to parse rpc port from rpc address: parse :7080: missing protocol scheme.

  4. Open the configuration file created in the second step and change the value of rpc_addr to localhost:7080.

  5. Run hypervisor again. It will fail with Failed to parse rpc port from rpc address: strconv.ParseUint: parsing "": invalid syntax.

  6. Open the configuration file created in the second step again and change the value of rpc_addr to http://skycoin.net:7080.

  7. Run hypervisor again. The console will start displaying no dms_servers found: trying again in 1s... error="Get /dmsg-discovery/available_servers: unsupported protocol scheme """. The problem with the rpc address appears to be solved.

  8. Open the configuration file created in the second step again and change the value of dmsg_discovery to https://messaging.discovery.skywire.skycoin.net.

  9. Run hypervisor again. The console will start displaying no dms_servers found: trying again in 1s... error="Get https://messaging.discovery.skywire.skycoin.net/dmsg-discovery/available_servers: dial tcp: lookup messaging.discovery.skywire.skycoin.net: no such host".

In a similar way, trying to run a visor with the default config results in no dms_servers found: trying again in 1s... error="json: cannot unmarshal number into Go value of type disc.HTTPMessage" being displayed every second in the console.

Actual behavior
The errors previously described appear. Also, the hypervisor is not connecting with the visors, as it does in the master branch.

Expected behavior
The hypervisor and the visor should work like in the master branch, with the default config. If it is currently necessary to run a local dmsg server for making the visor and hypervisor work, it would be good to add instructions in the readme, and it could be also useful in other cases.

Additional context

Possible implementation

@Senyoret1 Senyoret1 added the bug Something isn't working label Oct 8, 2019
@Darkren Darkren self-assigned this Dec 24, 2019
@Darkren
Copy link
Contributor

Darkren commented Dec 24, 2019

@Senyoret1 currently on the milestone2 branch hypervisor seems to be running with the default config. I followed the first 3 of the steps you've described, it started without errors. Please check it out. Regarding the visor - it fails to start, I'll notify you on the progress with this

@Senyoret1
Copy link
Contributor Author

@Darkren Sorry for the late response. I filed this issue while using the mainnet-milestone2 branch, which I think was removed and is different from the current milestone2 branch. Maybe this issue is not valid anymore, at least not in the same terms as when I wrote it

@Darkren
Copy link
Contributor

Darkren commented Dec 30, 2019

Currently on hold. Some of stuff is fixed, needs to be revisited later on when m2 is ready

@nkryuchkov nkryuchkov added the on hold Put on hold until a specific event label Dec 30, 2019
@jdknives
Copy link
Member

Seems to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working on hold Put on hold until a specific event
Projects
None yet
Development

No branches or pull requests

4 participants