Git Product home page Git Product logo

Comments (4)

rico2095 avatar rico2095 commented on August 13, 2024

I am having the same issues now for a few days, have tried resetting tor and rebooting but no luck.
Was working excellent until then

from mynode.

tril0byte avatar tril0byte commented on August 13, 2024

If you are having this issue, see if it was for the same reason as me

  • lnd requires Tor to start
  • Tor requires an accurate clock to start
  • myNode uses systemd-timesyncd to set the clock
  • systemd-timesyncd is configured with DNS names for its NTP servers
  • DNS requires /etc/resolv.conf to contain a valid nameserver line
  • resolv.conf is created by the startup script, see issue #133
  • If any of these are blocking your node, fix them and reboot

from mynode.

tril0byte avatar tril0byte commented on August 13, 2024

There's multiple issues going on here. The first issue is the clock is always wrong on the Pi 4 on boot. There is no Real Time Clock saved on the hardware, so Pi depends on a network time server. I believe some script is writing to systemd-timesyncd.service unit file which causes systemd to refuse to start the unit:

admin@myNode:/mnt/hdd/mynode/bitcoin $ sudo systemctl start systemd-timesyncd
Warning: The unit file, source configuration file or drop-ins of systemd-timesyncd.service changed on disk. Run 'systemctl daemon-reload' to reload units.

To work around this every time my Pi boots MyNode:
(The below is assuming you already worked around issue #133 by commenting the line in mynode_startup.sh and have working nameservers in /etc/resolv.conf )
sudo systemctl daemon-reload
sudo systemctl start systemd-timesyncd
The clock now gets set correctly.

After this point, it seems Tor, then LND both may need manual restarts... or I'm not waiting long enough. I wasn't able to find what writes to the systemd timesyncd unit file as the text timesyncd doesn't occur in /usr/bin - possibly a batch copy.

sudo systemctl start tor
(Wait a few minutes)
sudo systemctl restart lnd
The unlock script is already waiting and runs automatically in about 30 sec after this and LND starts up.

from mynode.

tehelsper avatar tehelsper commented on August 13, 2024

Tor is not on a much newer version. Closing.

from mynode.

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.