multiversx / mx-ide-vscode

💻 VS Code extension for developing MultiversX Smart Contracts - Rust, C and C++.
MIT License
70 stars 36 forks source link

Testnet won't start #14

Closed webcrafters closed 2 years ago

webcrafters commented 3 years ago

VS Code extension 0.8.0, running on a

MacBook Pro with macOS Catalina 10.15.7

I followed the steps in the YT tutorial.

Prior to that, I have never used Rust or Go on this machine, so all the steps in the tutorial came with their respective installations of toolchains. All went well.

When I got to right-clicking on testnet.toml --> Start Fresh Testnet

a few things went wrong;


INFO:cli.testnet:Configuring testnet...
INFO:testnet:testnet folder is /Users/dinu/work/Crypto/ELROND/dev/my_adder/testnet
INFO:testnet:Patching the source code...
INFO:myprocess:run_process: ['go', 'env'], in folder: None
INFO:myprocess:Successful run. Output:
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/dinu/elrondsdk/golang/GOCACHE"
GOENV=""
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/dinu/elrondsdk/golang/GOPATH/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/dinu/elrondsdk/golang/GOPATH"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/dinu/elrondsdk/golang/go1.15.2/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/dinu/elrondsdk/golang/go1.15.2/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build702677139=/tmp/go-build -gno-record-gcc-switches -fno-common"

INFO:testnet:Building seednode...
INFO:myprocess:run_process: ['go', 'build'], in folder: /Users/dinu/elrondsdk/elrond_go/master/elrond-go-master/cmd/seednode
INFO:myprocess:Successful run. Output:
**[No output]**
INFO:testnet:Building node...
INFO:myprocess:run_process: ['go', 'build'], in folder: /Users/dinu/elrondsdk/elrond_go/master/elrond-go-master/cmd/node
INFO:myprocess:Successful run. Output:
**[No output]**
INFO:testnet:Building arwen...
INFO:myprocess:run_process: ['make', 'arwen'], in folder: /Users/dinu/elrondsdk/elrond_go/master/elrond-go-master
INFO:myprocess:Successful run. Output:
# When referencing a non-release version, add the commit hash, like this:
#go get github.com/ElrondNetwork/arwen-wasm-vm/cmd/arwen@...
#When referencing a released version, use this instead:
go get github.com/ElrondNetwork/arwen-wasm-vm/cmd/arwen@v0.5.4
go: found github.com/ElrondNetwork/arwen-wasm-vm/cmd/arwen in github.com/ElrondNetwork/arwen-wasm-vm v0.5.4
go build -o /Users/dinu/elrondsdk/elrond_go/master/elrond-go-master/cmd/node github.com/ElrondNetwork/arwen-wasm-vm/cmd/arwen
stat /Users/dinu/elrondsdk/elrond_go/master/elrond-go-master/cmd/node
16777220 53051403 drwxrwxr-x 9 dinu staff 0 288 "Dec 11 13:36:51 2020" "Dec 19 22:53:38 2020" "Dec 19 22:53:38 2020" "Dec 11 13:36:51 2020" 4096 0 0 /Users/dinu/elrondsdk/elrond_go/master/elrond-go-master/cmd/node

INFO:testnet:Building proxy...
INFO:myprocess:run_process: ['go', 'build'], in folder: /Users/dinu/elrondsdk/elrond_proxy_go/master/elrond-proxy-go-master/cmd/proxy
CRITICAL:cli:External process error:
Command line: ['go', 'build']
Output: # github.com/ElrondNetwork/arwen-wasm-vm/wasmer
**Undefined symbols for architecture x86_64:**
  "_wasmer_instance_cache", referenced from:
      __cgo_a2a2e5914ae2_Cfunc_wasmer_instance_cache in _x002.o
     (maybe you meant: __cgo_a2a2e5914ae2_Cfunc_wasmer_instance_cache)
  "_wasmer_instance_from_cache", referenced from:
      __cgo_a2a2e5914ae2_Cfunc_wasmer_instance_from_cache in _x002.o
     (maybe you meant: __cgo_a2a2e5914ae2_Cfunc_wasmer_instance_from_cache)
  "_wasmer_instance_set_points_limit", referenced from:
      __cgo_a2a2e5914ae2_Cfunc_wasmer_instance_set_points_limit in _x002.o
     (maybe you meant: __cgo_a2a2e5914ae2_Cfunc_wasmer_instance_set_points_limit)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

...INFO:cli.testnet:Starting testnet...
INFO:testnet:testnet folder is /Users/dinu/work/Crypto/ELROND/dev/my_adder/testnet
Traceback (most recent call last):
  File "/Users/dinu/elrondsdk/erdpy-venv/bin/erdpy", line 33, in <module>
    sys.exit(load_entry_point('erdpy==1.0.0', 'console_scripts', 'erdpy')())
  File "/Users/dinu/elrondsdk/erdpy-venv/lib/python3.9/site-packages/erdpy/cli.py", line 29, in main
    _do_main()
  File "/Users/dinu/elrondsdk/erdpy-venv/lib/python3.9/site-packages/erdpy/cli.py", line 53, in _do_main
    args.func(args)
  File "/Users/dinu/elrondsdk/erdpy-venv/lib/python3.9/site-packages/erdpy/cli_testnet.py", line 66, in testnet_start
    testnet.start(args)
  File "/Users/dinu/elrondsdk/erdpy-venv/lib/python3.9/site-packages/erdpy/testnet/core.py", line 20, in start
    loop.run_until_complete(do_start(args))
  File "/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/Users/dinu/elrondsdk/erdpy-venv/lib/python3.9/site-packages/erdpy/testnet/core.py", line 68, in do_start
    await asyncio.gather(*to_run)
  File "/Users/dinu/elrondsdk/erdpy-venv/lib/python3.9/site-packages/erdpy/testnet/core.py", line 74, in run
    process = await asyncio.create_subprocess_exec(*args, env=env, stdout=asyncio.subprocess.PIPE,
  File "/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/subprocess.py", line 236, in create_subprocess_exec
    transport, protocol = await loop.subprocess_exec(
  File "/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1661, in subprocess_exec
    transport = await self._make_subprocess_transport(
  File "/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/unix_events.py", line 197, in _make_subprocess_transport
    transp = _UnixSubprocessTransport(self, protocol, args, shell,
  File "/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_subprocess.py", line 36, in init
    self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
  File "/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/unix_events.py", line 789, in _start
    self._proc = subprocess.Popen(

File "/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 947, in init
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1819, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
**FileNotFoundError: [Errno 2] No such file or directory: './seednode'**

Thanks!

andreibancioiu commented 2 years ago

@webcrafters, sorry for the delayed reply :pray:

The command erdpy testnet prerequisites - used by the IDE under the hood - has been improved in the meantime. Please let us know if you experience any issue using the latest extension and the latest erdpy (run the command Install SDK).

TheoremaLC commented 2 years ago

Hi, so I'm having the same issue when starting fresh testnet from the testnet.toml file, meaning "FileNotFoundError: [Errno 2] No such file or directory: './seednode. Any advice?