multiversx / mx-chain-scripts

GNU General Public License v3.0
4 stars 5 forks source link

Install a Validator Node failed #13

Closed sylviahuang123 closed 1 year ago

sylviahuang123 commented 1 year ago

I'm working on install a node follow this https://docs.multiversx.com/validators/nodes-scripts/install-update, but unfortunately it failed with below

……
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading github.com/polydawn/refmt v0.89.0
# github.com/multiversx/mx-chain-go/cmd/node
/usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-626590680/000027.o: in function `_cgo_c8b2814cf347_Cfunc_wasmer_set_sigsegv_passthrough':
/tmp/go-build/cgo-gcc-prolog:709: undefined reference to `wasmer_set_sigsegv_passthrough'
/usr/bin/ld: /tmp/go-link-626590680/000036.o: in function `_cgo_a138dfb3d792_Cfunc_wasmer_set_sigsegv_passthrough':
/tmp/go-build/cgo-gcc-prolog:709: undefined reference to `wasmer_set_sigsegv_passthrough'
/usr/bin/ld: /tmp/go-link-626590680/000045.o: in function `_cgo_547b49a6f014_Cfunc_wasmer_instance_disable_rkyv':
/tmp/go-build/cgo-gcc-prolog:434: undefined reference to `wasmer_instance_disable_rkyv'
/usr/bin/ld: /tmp/go-link-626590680/000045.o: in function `_cgo_547b49a6f014_Cfunc_wasmer_instance_enable_rkyv':
/tmp/go-build/cgo-gcc-prolog:446: undefined reference to `wasmer_instance_enable_rkyv'
/usr/bin/ld: /tmp/go-link-626590680/000045.o: in function `_cgo_547b49a6f014_Cfunc_wasmer_instance_reset':
/tmp/go-build/cgo-gcc-prolog:554: undefined reference to `wasmer_instance_reset'
/usr/bin/ld: /tmp/go-link-626590680/000045.o: in function `_cgo_547b49a6f014_Cfunc_wasmer_set_sigsegv_passthrough':
/tmp/go-build/cgo-gcc-prolog:752: undefined reference to `wasmer_set_sigsegv_passthrough'
collect2: error: ld returned 1 exit status
bogdan-rosianu commented 1 year ago

Hello. What version of Ubuntu do you use?

sylviahuang123 commented 1 year ago

Ubuntu 22.04.3, thanks.

Hello. What version of Ubuntu do you use?

valentin-lup commented 1 year ago

Hi, From the errors I see that you are trying to install the node on an arm64 architecture which is not fully supported yet.

sylviahuang123 commented 1 year ago

yep, thanks a lot, you're right. May I ask another question, how can I open the api service for my own node, like https://api.multiversx.com/?

bogdan-rosianu commented 1 year ago

Follow the readme of the mx-api-service project: https://github.com/multiversx/mx-api-service

sylviahuang123 commented 1 year ago

thanks. I found that I can only query data of shard 2 and other shards are null from elasticsearch, anything wrong? oh, I should install and start 4 nodes, right?