adityapk00 / zecwallet-light-cli

Zecwallet Lightclient Library and CLI interface
MIT License
69 stars 66 forks source link

"tcp open error" on startup #107

Closed nickbax closed 2 years ago

nickbax commented 2 years ago

I encounter this error every time I try to start up zecwallet-cli in ubuntu:

~/linux-zecwallet-cli-v1.8.0-beta2$ ./zecwallet-cli
Lightclient connecting to https://lwdv3.zecwallet.co:443/
id: 1, batch: 0/2, blocks: 0/1000, decryptions: 0, tx_scan: 0
id: 1, batch: 0/2, blocks: 0/1000, decryptions: 0, tx_scan: 0
id: 1, batch: 0/2, blocks: 0/1000, decryptions: 0, tx_scan: 0
id: 1, batch: 0/2, blocks: 0/1000, decryptions: 0, tx_scan: 0
id: 1, batch: 0/2, blocks: 0/1000, decryptions: 0, tx_scan: 0
id: 1, batch: 0/2, blocks: 1000/1000, decryptions: 950, tx_scan: 0
Error getting client: tonic::transport::Error(Transport, hyper::Error(Connect, ConnectError("tcp open error", Os { code: 24, kind: Uncategorized, message: "Too many open files" })))
Ready!
Couldn't get chain name. Unexpected character: E at (1:1)
adityapk00 commented 2 years ago

I think your Ubuntu is running out of file handles. You might need to increase the limits.

https://linuxhint.com/increase-open-file-limit-ubuntu/

nickbax commented 2 years ago

works, thanks!