Git Product home page Git Product logo

Comments (5)

wbobeirne avatar wbobeirne commented on August 25, 2024 1

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.

jamaljsr avatar jamaljsr commented on August 25, 2024

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.

wbobeirne avatar wbobeirne commented on August 25, 2024

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.

jamaljsr avatar jamaljsr commented on August 25, 2024

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.

jamaljsr avatar jamaljsr commented on August 25, 2024

@wbobeirne FYI, the timeout increase to 60secs is now in master (75acb8f)

from polar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.