Comments (5)
Nce detective work! Yeah I'm on a Macbook Pro 2015, and was definitely running a good few things at the same time, so not quite the monster you're packing. I think bumping it up would definitely be reasonable for those of us developing on the go.
Glad to hear the catch is in place though, that was definitely the main issue. I'll close this out since that was merged.
from polar.
I'm not sure what's going on here. I've tried to replicate it locally with no luck. Was this a one time issue or are you able to replicate it? If so, can you share these log files?
App Logs
~/.polar/logs/main.log
and ~/.polar/logs/renderer.log
LND Log (just from one node that didn't start)
~/.polar/networks/<networkId>/volumes/lnd/<node>/logs/bitcoin/regtest/lnd.log
from polar.
Sorry for the delay, here's everything from around the time it crashed: https://gist.github.com/wbobeirne/eb6875309d3ac15e81286f7a76fc9673
Looks like the noteworthy log is carol's last one:
2020-03-05 07:24:23.452 [ERR] LTND: Unable to create chain control: unable to connect to bitcoind: -28: Loading block index...
from polar.
No worries. Thanks so much for the logs. They are super helpful.
Note: In the timestamps below, please ignore the hour. They are offset because of timezone differences in the docker containers. Focus on the minute & seconds.
I think I see what happened here. We currently give all the nodes 30 seconds to boot up and successfully respond to RPC requests before deeming them as failed. The app polls 10 times in 3 second intervals. In your case, it took 28 seconds for bitcoind to boot up, from 01:19:15 to 01:19:43. During that time, the LND node just kept failing to connect to bitcoind and restarting itself. Eventually it did successfully boot up after 38 secs, with the last log line at 07:19:53, but this was after Polar already gave up trying and threw an error.
Were you running this in a VM or had a bunch of other stuff running on your machine at this time? Does it normally take this long for you? On my machine, bitcoind usually boots up in less than 5 secs and LND within 10 secs. I have an i9 with 64Gb of RAM so my machine is probably not ideal for benchmarking. I am not sure how long it takes on most other's machines. I have seen this happen occasionally when I am testing Polar in a Windows VM, but I thought my VM configuration was just screwed up. I don't have any slow bootup issues in my Ubuntu & ArchLinux VMs.
The only solution I can think of for this problem is to increase the retries to 20 (60 second timeout) to better accommodate for longer bootup times. Hopefully, that is enough time for most people.
Looks like the noteworthy log is carol's last one:
2020-03-05 07:24:23.452 [ERR] LTND: Unable to create chain control: unable to connect to bitcoind: -28: Loading block index...
I don't think this logged error is related because the timestamp is 5 minutes later at 01:24:12. It looks like you restarted the network here. This error is normal when the network is first booting up as LND is trying to connect to bitcoind but failing. You can also see this same message at 07:19:21 and afterwards it eventually connected successfully.
There is a second issue here because you shouldn't ever see that full screen error. That means the app isn't catching it. I actually already fixed this uncaught error in the Log Viewer PR (here) that I was working on. This fix wasn't in master yet when you opened this issue, but it is in master now.
from polar.
@wbobeirne FYI, the timeout increase to 60secs is now in master (75acb8f)
from polar.
Related Issues (20)
- Bug: Viewing terminals on Linux just gives a loading animated icon HOT 5
- Feature Request: External API HOT 2
- Polar cannot be opened because the developer cannot be verified on macOS HOT 2
- Bug: incorrect big amount when depositing funds on Eclair HOT 1
- Tutorial Requirements HOT 1
- data from docker container's gets erased after restarting the system HOT 2
- Docker Compose Not Found HOT 2
- Unable to connect to c-lightning node HOT 7
- question:How to get root on nodes
- Feature Request: Minimize to system tray HOT 4
- Feature Request: Support Certificate Generation with tlsextraip HOT 1
- Bug: Source and destination of unconfirmed channel is shown reverse HOT 2
- Rapid Gossip Sync Server HOT 3
- Lightning terminal: Litd HOT 1
- Feature Request: Add support for CLN v23.05 HOT 2
- Bug: Cannot find module '@hodlone/tapd-api' HOT 1
- Bug: Doesn't support docker compose v2
- Bug: network doesn't start HOT 9
- Bug: Update fails with "Cannot read property 'versions' of undefined". HOT 7
- Feature Request: Add support for Linux aarch64 architecture HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polar.