non-selectable socket created #367

Closed
opened 2020-02-20 05:22:11 +01:00 by tiger5226 · 6 comments
tiger5226 commented 2020-02-20 05:22:11 +01:00 (Migrated from github.com)

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...
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 2020-02-20 05:37:49 +01:00 (Migrated from github.com)

I'm getting this too.

I'm getting this too.
bvbfan commented 2020-02-20 07:15:58 +01:00 (Migrated from github.com)

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

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 2020-02-21 15:28:40 +01:00 (Migrated from github.com)

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

@bvbfan I'm just using the binary from the v0.17.3.2 release
bvbfan commented 2020-02-21 15:41:05 +01:00 (Migrated from github.com)

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

Can you use v0.17.4.2 where the fix presents. It needs full reindex for SQLite backend.
BrannonKing commented 2020-02-21 15:50:34 +01:00 (Migrated from github.com)

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

Don't use 17.4.2. It has too many bugs. I'll post a new build shortly.
tiger5226 commented 2020-02-22 03:18:24 +01:00 (Migrated from github.com)

Confirmed fix is good on 17.4.3 release

Confirmed fix is good on 17.4.3 release
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#367
No description provided.