lbryio / lbrycrd

The blockchain that provides the digital content namespace for the LBRY protocol
https://lbry.com
MIT License
2.57k stars 178 forks source link

non-selectable socket created #367

Closed tiger5226 closed 4 years ago

tiger5226 commented 4 years ago

Still getting this inside containers for lbrycrd. I can't run lbrycrd in a container after initial sync. If the container goes down or if its stateless and is recreated, this error pops up and crashes lbrycrd. All versions 17.3.2.1 and up.

lbrycrd_1  | 2020-02-20T04:17:31Z BerkeleyEnvironment::Open: LogDir=/data/.lbrycrd/database ErrorFile=/data/.lbrycrd/db.log
lbrycrd_1  | 2020-02-20T04:17:32Z [default wallet] nFileVersion = 170302
lbrycrd_1  | 2020-02-20T04:17:32Z [default wallet] Keys: 2002 plaintext, 0 encrypted, 2002 w/ metadata, 2002 total. Unknown wallet records: 1
lbrycrd_1  | 2020-02-20T04:17:32Z [default wallet] Wallet completed loading in              60ms
lbrycrd_1  | 2020-02-20T04:17:32Z [default wallet] setKeyPool.size() = 2000
lbrycrd_1  | 2020-02-20T04:17:32Z [default wallet] mapWallet.size() = 1
lbrycrd_1  | 2020-02-20T04:17:32Z [default wallet] mapAddressBook.size() = 1
lbrycrd_1  | 2020-02-20T04:17:32Z mapBlockIndex.size() = 741815
lbrycrd_1  | 2020-02-20T04:17:32Z nBestHeight = 719000
lbrycrd_1  | 2020-02-20T04:17:32Z Cannot create connection: non-selectable socket created (fd >= FD_SETSIZE ?)
lbrycrd_1  | 2020-02-20T04:17:32Z Error: Couldn't open socket for incoming connections (socket returned error No such file or directory (2))
lbrycrd_1  | 2020-02-20T04:17:32Z Cannot create connection: non-selectable socket created (fd >= FD_SETSIZE ?)
lbrycrd_1  | 2020-02-20T04:17:32Z Error: Couldn't open socket for incoming connections (socket returned error No such file or directory (2))
lbrycrd_1  | 2020-02-20T04:17:32Z Error: Error: Couldn't open socket for incoming connections (socket returned error No such file or directory (2))
lbrycrd_1  | Error: Error: Couldn't open socket for incoming connections (socket returned error No such file or directory (2))
lbrycrd_1  | Error: Failed to listen on any port. Use -listen=0 if you want this.
lbrycrd_1  | 2020-02-20T04:17:32Z Error: Failed to listen on any port. Use -listen=0 if you want this.
lbrycrd_1  | 2020-02-20T04:17:32Z tor: Thread interrupt
lbrycrd_1  | 2020-02-20T04:17:32Z Shutdown: In progress...
hashbender commented 4 years ago

I'm getting this too.

bvbfan commented 4 years ago

How this can happen https://github.com/lbryio/lbrycrd/blob/master/src/compat.h#L114 I suspect using an old build or build that not include these changes

hashbender commented 4 years ago

@bvbfan I'm just using the binary from the v0.17.3.2 release

bvbfan commented 4 years ago

Can you use v0.17.4.2 where the fix presents. It needs full reindex for SQLite backend.

BrannonKing commented 4 years ago

Don't use 17.4.2. It has too many bugs. I'll post a new build shortly.

tiger5226 commented 4 years ago

Confirmed fix is good on 17.4.3 release