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

Sapphire-localnet initialization stalls on WSL #655

Open
ZigaMr opened this issue Nov 25, 2024 · 1 comment
Open

Sapphire-localnet initialization stalls on WSL #655

ZigaMr opened this issue Nov 25, 2024 · 1 comment

Comments

@ZigaMr
Copy link

ZigaMr commented Nov 25, 2024

SUMMARY

Using latest image, sapphire-localnet container initialization stalls indefinitely at the bootstrapping phase.

ISSUE TYPE
  • Bug Report
ENVIRONMENT

OS: Windows with WSL2 (Ubuntu 20.04.6 LTS)
Docker Version: 27.3.1
Container Image: ghcr.io/oasisprotocol/sapphire-localnet:latest

STEPS TO REPRODUCE
  1. Clean Docker environment (no running containers/images)
    docker info returns:

Client: Docker Engine - Community
 Version:    27.3.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.17.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.7
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 27.3.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 Kernel Version: 5.10.16.3-microsoft-standard-WSL2
 Operating System: Ubuntu 20.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 7.663GiB
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
  1. Run: docker run -it -p8545:8545 ghcr.io/oasisprotocol/sapphire-localnet:latest
ACTUAL RESULTS

Execution hangs on this line for > 10 minutes

  • Bootstrapping network (this might take a minute).
Unable to find image 'ghcr.io/oasisprotocol/sapphire-localnet:latest' locally
latest: Pulling from oasisprotocol/sapphire-localnet
2d429b9e73a6: Pulling fs layer 
618981b55ea2: Pulling fs layer 
7ed959c17c7b: Pulling fs layer 
431cf073b69a: Pulling fs layer 
cc0e682fd2f9: Pulling fs layer 
221481c5d41f: Pulling fs layer 
f89ff912103f: Pulling fs layer 
f1b9ef6382aa: Pulling fs layer 
b580a5f8f382: Pulling fs layer 
901dda2d5945: Pulling fs layer 
9efe3130a746: Pulling fs layer 
476619923e85: Pulling fs layer 
72278cb7764b: Pulling fs layer 
f2fd7e5abf77: Pulling fs layer 
15ceb1fec567: Pulling fs layer 
d86faa1d04e7: Pulling fs layer 
3e957e97c719: Pulling fs layer 
f5d5fa57213d: Pulling fs layer 
e1e0d72e64c9: Pulling fs layer 
39a4b82a47d5: Pulling fs layer 
6109cdb26329: Pulling fs layer 
2dd6870ff86c: Pulling fs layer 
831e9fcc0e35: Pulling fs layer 
b8e388c4219d: Pull complete 
1e8310ccdac8: Pull complete 
0db8eb23d9b8: Pull complete 
123bb5946af1: Pull complete 
221e8c965254: Pull complete 
74a7c6c1adb0: Pull complete 
0e8173aa25eb: Pull complete 
ae2d6b005cc9: Pull complete 
678df0f01bea: Pull complete 
cc03cce98afa: Pull complete 
Digest: sha256:7b177756d54176e0f9ebc9d743cd56cec5a59ea0fea740ebc26174e2d71c492e
Status: Downloaded newer image for ghcr.io/oasisprotocol/sapphire-localnet:latest
sapphire-localnet 2024-11-22-git502678f (oasis-core: 24.3, sapphire-paratime: 0.9.0-testnet, oasis-web3-gateway: 5.1.0)

 * No ROFLs detected.
 * Starting oasis-net-runner with sapphire...
 * Waiting for Postgres to start.
 * Waiting for Oasis node to start.......
 * Waiting for Envoy proxy to start.
 * Starting oasis-web3-gateway...
 * Bootstrapping network (this might take a minute).
EXPECTED RESULTS
@ptrus
Copy link
Member

ptrus commented Nov 25, 2024

I cannot reproduce this (used a fresh WSL2 VM with Ubuntu 20.04.6 LTS). Same docker as reported above.

If you are able to reproduce this, can you re-run the docker container with debug logs:

$  docker run -e OASIS_NODE_LOG_LEVEL=debug -it -p8545:8545 ghcr.io/oasisprotocol/sapphire-localnet:latest

And then share:

  • container output (as you did above)
  • keymanager-0 node logs (available at: /serverdir/node/net-runner/network/keymanager-0/node.log inside the container)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants