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

new release v1.2.0 geth_linux is not works #1525

Closed
m1iktea opened this issue Apr 25, 2023 · 12 comments
Closed

new release v1.2.0 geth_linux is not works #1525

m1iktea opened this issue Apr 25, 2023 · 12 comments

Comments

@m1iktea
Copy link

m1iktea commented Apr 25, 2023

Expected behaviour

geth ok

Actual behaviour

[root@k8s-123-95 bsc]# sha256sum geth_linux 
75f50ce27b8ea080d6adfb18b223d355f42298f740f734c1e40d0134c409847c  geth_linux
[root@k8s-123-95 bsc]# chmod +x ./geth_linux 
[root@k8s-123-95 bsc]# ./geth_linux -h
Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md.
[root@k8s-123-95 bsc]# 

i download it from release page

@kris-ss
Copy link

kris-ss commented Apr 25, 2023

hi @m1iktea,

Tried on my end, did not get the same error.

Screenshot 2023-04-25 at 3 01 00 PM

Please try chmod -v u+x geth_linux and ./geth_linux -h again.

Also please note that this version is not recommend for mainnet to use this version, especially validator, since more test is needed to make sure it is stable.

@zoulja
Copy link

zoulja commented Apr 25, 2023

The same problem here:

$ uname -a
Linux testhost 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
$ wget https://github.com/bnb-chain/bsc/releases/download/v1.2.0/geth_linux
$ chmod +x geth_linux
$ sha256sum geth_linux
75f50ce27b8ea080d6adfb18b223d355f42298f740f734c1e40d0134c409847c  geth_linux
$ ./geth_linux version
Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md.

@kris-ss
Copy link

kris-ss commented Apr 25, 2023

Hi @zoulja Please refer to this #1521 (comment)

Pls try with the below env set and try again

export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"

@zoulja
Copy link

zoulja commented Apr 25, 2023

Hi @kris-ss, thanks for cheking this

$ export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
$ export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"
$ ./geth_v1.2.0 version
Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md.

Previous version is working fine on this host.
Also I'm just wondering why binary size has increased from 54262990 to 91568768, it's pretty big difference which could contain all the dependencies

@banlieu451
Copy link

banlieu451 commented Apr 25, 2023

Ok, right now it work for me when delete last golang-go version and downgrade it and check last release of BSC last 4 hours ago do this :

  • sudo apt remove golang-go
  • sudo apt update && apt upgrade -y
  • curl -LO https://go.dev/dl/go1.18beta1.linux-amd64.tar.gz
  • sudo tar -C /usr/local -xzf go1.18beta1.linux-amd64.tar.gz
  • export GOROOT=/usr/local/go
  • export GOPATH=$HOME/go
  • export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
  • source ~/.bashrc
  • go version

Normaly it gonna be : 1.18

And it look like this when running :
dqa

@kris-ss
Copy link

kris-ss commented Apr 25, 2023

@banlieu451 This is ok. You can ignore the warning messages. It will be resolved here - #1527

@m1iktea
Copy link
Author

m1iktea commented Apr 26, 2023

wait a second, This means that i cant just download the geth_linux in release page and use it? Do i have to download the build file and build the geth_linux by myself?

@banlieu451
Copy link

banlieu451 commented Apr 26, 2023

Do like this dear friend : (i use server linux unbuntu)

  • git clone https://github.com/bnb-chain/bsc

  • cd bsc

  • make all

  • cd build/bin

  • wget https://github.com/binance-chain/bsc/releases/download/v1.2.0/mainnet.zip

  • unzip mainnet.zip

  • ./geth --datadir node init genesis.json (here if you get the same error as up; downgrade golang-go as i explain)

  • ./geth .... yours commands ...
    (ex: ./geth --config ./config.toml --datadir ./node --cache 18000 --rpc.allow-unprotected-txs --txlookuplimit 0 --maxpeers 60000 --syncmode snap --ws --ws.port 8546 --ws.addr localhost console )

@zoulja
Copy link

zoulja commented Apr 26, 2023

Thanks for the workaround @banlieu451 but it doesn't solve the initial issue - broken official binary published in Release area, so typical upgrade procedure (just by replacing binary) can't be used anymore

@plansten
Copy link

plansten commented May 3, 2023

Read my issue: #1562

@GBBx
Copy link

GBBx commented May 3, 2023

I managed to fix this issue. Please see my comment here:
#1521 (comment)

@m1iktea
Copy link
Author

m1iktea commented May 23, 2023

Thank you for your concern, this issue has been resolved, I cant download geth_linux form release page and it works! 😊😊

wget https://github.com/bnb-chain/bsc/releases/download/v1.2.4/geth_linux
chmod +x geth_linux
./geth_linux -help
NAME:
   geth_linux - the go-ethereum command line interface

   Copyright 2013-2021 The go-ethereum Authors

USAGE:
   geth_linux [options] [command] [command options] [arguments...]
   
VERSION:
   1.2.4-3c5f54fc-20230523
...

@m1iktea m1iktea closed this as completed May 23, 2023
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

6 participants