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

Unable to start node with Go 1.12 #128

Closed
ghost opened this issue Mar 31, 2019 · 6 comments
Closed

Unable to start node with Go 1.12 #128

ghost opened this issue Mar 31, 2019 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ghost
Copy link

ghost commented Mar 31, 2019

System information

Lightchain version: `Version: 1.0.0-beta MainNet`
OS & version: OSX Mojave 10.14.4 / Kernel Version Kernel Version 18.5.0:
Branch: master
Commit hash: e602722

Expected behaviour

node starts successfully

Actual behaviour

node does not start due to max fd allowance. Due to golang/go#30401

Steps to reproduce the behaviour

  • install Go 1.12
  • try to start lightchain node

Console output (if applicable)

➜  lightchain git:(master) ✗ $GOPATH/bin/lightchain init --datadir=/Users/diegomariani/.lightchain
INFO [03-31|16:49:26.299] Maximum peer count                       ETH=25 LES=0 total=25
Fatal: Failed to raise file descriptor allowance: invalid argument

When using geth@master instead of 1.18 release it seems to work. Probably fixed with the next release of geth (1.19?)

@emizzle
Copy link

emizzle commented May 15, 2019

I'm also having this exact same issue using:

Lightchain version: Version: 1.1.0-beta MainNet
OS & version: OSX Mojave 10.14.4 / Kernel Version 18.5.0
Go version: go version go1.12.5 darwin/amd64
Geth version: Version: 1.8.27-stable

Console output

$> lightchain init
INFO [05-15|15:18:19.939] Maximum peer count                       ETH=25 LES=0 total=25
Fatal: Failed to raise file descriptor allowance: invalid argument

@0x13A - you were able get this working by compiling the latest geth from master? Is that solution still working for you?

@EnchanterIO
Copy link
Contributor

EnchanterIO commented May 15, 2019

Thx for reporting @0x13A, we will take care of it right after we finish some other topics. If you are having issues compiling the binary from scratch, @emizzle you can always download the pre-compiled binary from our AWS S3 meanwhile. Here is the docs: https://docs.lightstreams.network/getting-started/install/

Or directly:

Mac:

wget "https://s3.eu-central-1.amazonaws.com/lightstreams-public/lightchain/latest/lightchain-osx" -O /usr/local/bin/lightchain

Linux (amd64):

wget "https://s3.eu-central-1.amazonaws.com/lightstreams-public/lightchain/latest/lightchain-linux-amd64" -O /usr/local/bin/lightchain

@ghost
Copy link
Author

ghost commented May 15, 2019

@emizzle it works on the latest release of geth. Fixed here #140 cc @EnchanterIO

@emizzle
Copy link

emizzle commented May 16, 2019

Thanks @0x13A - I've built lightchain off your branch (as a temp solution until that fix is merged and a new release is cut) and can confirm the issue is no longer present.

@ggarri
Copy link
Contributor

ggarri commented May 16, 2019

Thanks @0x13A for the PR I have been reviewing and it is ready to be merged. The reasons for this update were on go-ethereum v1.8.24

@emizzle
Copy link

emizzle commented May 17, 2019

Thanks @ggarri, I can confirm this works now!

@ggarri ggarri added this to the Smooth Little Chains milestone May 29, 2019
@ggarri ggarri added the bug Something isn't working label May 29, 2019
@ggarri ggarri self-assigned this May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants