Bitcoin Forum
June 16, 2024, 03:32:27 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Hardware / Re: Official FutureBit Apollo BTC Software/Image and Support thread on: November 22, 2022, 03:42:38 AM
Anyone run into issues where the unit goes to sleep if you 'lock' the computer? If I leave it unlocked and just turn my monitor off, I don't run into connectivity issues.  But, after a few hours if I 'lock' the computer, unit loses connection to the internet in some capacity and the result is that my miner stops delivering hash to slushpool.  Anyone else run into this issue?  I don't see anything in the settings that would change this result when 'locking' the computer.
2  Bitcoin / Hardware / Re: Announcing the FutureBit Apollo BTC - A Full Node/Mining Platform for the Home! on: November 18, 2022, 04:49:29 PM
Hello All,
Been running my apollo full unit for about 4 months now.  I turned it on yesterday and it is making a fairly loud humming sound now.  Definitely different than before.  It does not seem to be the fan as the sound is made even when the fan isn't running.  Anyone else run into this ?  Worried something might be wrong inside.  I booted it up and its been running for about 15 mins now.  Everything seems to work just fine when using the OS, mining, the node...just pretty annoying sound no way this can be in a room with me when sleeping.
3  Bitcoin / Development & Technical Discussion / Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node on: November 16, 2022, 09:15:40 PM
Ran it, here is the result  Sad

error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set.  See -rpcpassword and -stdinrpcpass.  Configuration file: (/root/.bitcoin/bitcoin.conf)
4  Bitcoin / Development & Technical Discussion / Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node on: November 16, 2022, 05:14:19 PM
Hi N0nce,

I followed the steps you outlined to install bitcoin-cli.  Doesn't appear to have worked, unfortunately.  I am getting the same error after installation in the debug file and when I ran bitcoin-cli echo 'hello world', I got the following:

error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set.  See -rpcpassword and -stdinrpcpass.  Configuration file: (/home/futurebit/.bitcoin/bitcoin.conf)

I'm thinking I don't actually have bitcoin-cli installed as when I entered the command sudo install -m 0755 -o root -g root -t /usr/local/bin bin/bitcoin-cli, the command line simply reloaded to the base user and nothing was communicated about installation.  I tried tweaking your instructions so that I was in the folder with bitcoin-cli:

cd /home/futurebit/bitcoin-23.0/bin
sudo install bitcoin-cli

But I got the following error about suffixes, unsure of which one to use after reviewing the help install --help text (if this alternative would even work for installing bitcoin-cli):

install: missing destination file operand after 'bitcoin-cli'
Try 'install --help' for more information
5  Bitcoin / Development & Technical Discussion / Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node on: November 16, 2022, 09:23:01 AM
Hi N0nce,
I ran the debug and this was the following result:

2022-11-16T09:06:37.986Z DEBUG   lightningd: Opened log file /home/futurebit/.lightning/debug.log
2022-11-16T09:06:37.986Z DEBUG   lightningd: Opened log file /home/futurebit/.lightning/debug.log
2022-11-16T09:06:38.003Z DEBUG   plugin-manager: started(2204939) /usr/local/bin/../libexec/c-lightning/plugins/autoclean
2022-11-16T09:06:38.018Z DEBUG   plugin-manager: started(2204940) /usr/local/bin/../libexec/c-lightning/plugins/bcli
2022-11-16T09:06:38.030Z DEBUG   plugin-manager: started(2204941) /usr/local/bin/../libexec/c-lightning/plugins/fetchinvoice
2022-11-16T09:06:38.047Z DEBUG   plugin-manager: started(2204942) /usr/local/bin/../libexec/c-lightning/plugins/funder
2022-11-16T09:06:38.060Z DEBUG   plugin-manager: started(2204943) /usr/local/bin/../libexec/c-lightning/plugins/topology
2022-11-16T09:06:38.076Z DEBUG   plugin-manager: started(2204944) /usr/local/bin/../libexec/c-lightning/plugins/keysend
2022-11-16T09:06:38.090Z DEBUG   plugin-manager: started(2204945) /usr/local/bin/../libexec/c-lightning/plugins/offers
2022-11-16T09:06:38.106Z DEBUG   plugin-manager: started(2204946) /usr/local/bin/../libexec/c-lightning/plugins/pay
2022-11-16T09:06:38.120Z DEBUG   plugin-manager: started(2204947) /usr/local/bin/../libexec/c-lightning/plugins/txprepare
2022-11-16T09:06:38.134Z DEBUG   plugin-manager: started(2204948) /usr/local/bin/../libexec/c-lightning/plugins/spenderp
2022-11-16T09:06:38.154Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_channeld
2022-11-16T09:06:38.163Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_closingd
2022-11-16T09:06:38.172Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_connectd
2022-11-16T09:06:38.183Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_gossipd
2022-11-16T09:06:38.192Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_hsmd
2022-11-16T09:06:38.199Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_onchaind
2022-11-16T09:06:38.206Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_openingd
2022-11-16T09:06:38.214Z DEBUG   hsmd: pid 2204956, msgfd 39
2022-11-16T09:06:38.271Z DEBUG   connectd: pid 2204957, msgfd 43
2022-11-16T09:06:38.272Z DEBUG   hsmd: new_client: 0
2022-11-16T09:06:38.275Z DEBUG   connectd: Proxy address: 127.0.0.1:9050
2022-11-16T09:06:38.275Z DEBUG   connectd: Created listener on 127.0.0.1:9735
2022-11-16T09:06:38.275Z DEBUG   connectd: REPLY WIRE_CONNECTD_INIT_REPLY with 0 fds
2022-11-16T09:06:38.275Z DEBUG   connectd: connectd_init_done
2022-11-16T09:06:38.300Z **BROKEN** plugin-bcli: \nbitcoin-cli not found. Is bitcoin-cli (part of Bitcoin Core) available in your PATH?\n\nMake sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.\n\nYou can verify that your Bitcoin Core installation is ready for use by running:\n\n    $ bitcoin-cli echo 'hello world'\n
2022-11-16T09:06:38.301Z INFO    plugin-bcli: Killing plugin: exited before we sent init


>> i'm not really certain how to read the results, but if it helps for your troubleshooting thought I'd send it over.  Really appreciate working through this, learning a lot regardless Smiley
6  Bitcoin / Development & Technical Discussion / Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node on: November 16, 2022, 09:15:30 AM
Alas, I'm giving it my best shot here but I'm stuck with the following error message and resulting status info after going through the whole process again.  Made sure to double check my files and to use futurebit as the user instead of bitcoin:


sudo service lightningd start:
Job for lightningd.service failed because the control process exited with error code.
See "systemctl status lightningd.service" and "journalctl -xe" for details.

systemctl status lightningd.service:
● lightningd.service - C-Lightning daemon
     Loaded: loaded (/lib/systemd/system/lightningd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-11-16 01:06:38 PST; 1min 24s ago
    Process: 2204936 ExecStart=/usr/local/bin/lightningd --daemon --conf /home/futurebit/.lightning/bitcoin/lightningd.conf (code=exited, status=1/FAILURE)

Nov 16 01:06:38 futurebitbtc systemd[1]: lightningd.service: Scheduled restart job, restart counter is at 5.
Nov 16 01:06:38 futurebitbtc systemd[1]: Stopped C-Lightning daemon.
Nov 16 01:06:38 futurebitbtc systemd[1]: lightningd.service: Start request repeated too quickly.
Nov 16 01:06:38 futurebitbtc systemd[1]: lightningd.service: Failed with result 'exit-code'.
Nov 16 01:06:38 futurebitbtc systemd[1]: Failed to start C-Lightning daemon.

I think I might just be in over my head.  I'll probably give it another try to implement on my futurebit after learning some more about working in linux.  Thanks again for your help N0nce and for putting together the guide.  And if any other troubleshooting ideas come to mind, let me know I'll give it a go.
7  Bitcoin / Development & Technical Discussion / Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node on: November 15, 2022, 11:58:46 PM
Hi N0nce,
I did notice the difference in the guide between creating the 'bitcoin' user.  I believe I accounted for that in following the guide step by step and just used the futurebit user where necessary.  I just tried briefly to make the update you suggested to the debug file, however it is still not working.  I'll need to dive in a bit more tonight once my kid is asleep, maybe try again from scratch.  Thanks again for your help with a noobie like myself trying to fully utilize my apollo Smiley
8  Bitcoin / Development & Technical Discussion / Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node on: November 14, 2022, 11:34:56 PM
Ya I see that..

I tried removing entirely as you suggested.  I am getting this error now:

Warning: The unit file, source configuration file or drop-ins of lightningd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for lightningd.service failed because the control process exited with error code.
See "systemctl status lightningd.service" and "journalctl -xe" for details.

>>I executed system systemctl daemon-reload and tried again but got the same error.  Here is the system ctl status:


● lightningd.service - C-Lightning daemon
     Loaded: loaded (/lib/systemd/system/lightningd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2022-11-14 15:26:49 PST; 28s ago
    Process: 1043529 ExecStart=/usr/local/bin/lightningd --daemon --conf /home/bitcoin/.lightning/bitcoin/lightningd.conf (code=exited, status=1/FAILURE)

Nov 14 15:26:49 futurebitbtc systemd[1]: lightningd.service: Scheduled restart job, restart counter is at 5.
Nov 14 15:26:49 futurebitbtc systemd[1]: Stopped C-Lightning daemon.
Nov 14 15:26:49 futurebitbtc systemd[1]: lightningd.service: Start request repeated too quickly.
Nov 14 15:26:49 futurebitbtc systemd[1]: lightningd.service: Failed with result 'exit-code'.
Nov 14 15:26:49 futurebitbtc systemd[1]: Failed to start C-Lightning daemon.

Thanks so much for your help, please don't hesitate to let this be at any moment as it is totally possible I screwed something up that you can't see in the instructions you provided.  I will take no offense to that. Cheers!
9  Bitcoin / Development & Technical Discussion / Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node on: November 14, 2022, 10:30:11 PM
Hi n0nce,

Thanks for the quick reply.  I tried just now to update and replace bitcoind.service with apollo.service.  Seems to be a similar issue, I got the following message:

Failed to start lightningd.service: Unit apollo.service not found
10  Bitcoin / Development & Technical Discussion / Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node on: November 13, 2022, 09:50:45 AM
Core Lightning
[1] Install dependencies
Code:
sudo apt install autoconf automake build-essential git libtool libgmp-dev libsqlite3-dev python3 python3-pip python3-mako net-tools zlib1g-dev libsodium-dev gettext
pip3 install --upgrade pip
pip3 install --user poetry

echo -e '#!/bin/sh\ntouch $2\nexit 0' | sudo tee /usr/local/bin/mrkd
sudo chmod 755 /usr/local/bin/mrkd

[2] Create another Tor hidden service for C-Lightning. Similar procedure as before.
Code:
sudo nano /etc/tor/torrc

[3] Below the other hidden service, add this info for Lightning.
Code:
HiddenServiceDir /var/lib/tor/lightningd_hidden_service/
HiddenServiceVersion 3
HiddenServicePort 9735 127.0.0.1:9735

[4] Then restart Tor and retrieve the new v3 Tor hostname for your Lightning installation. Copy it somewhere so you have it handy in step 7.
Code:
sudo service tor restart
sudo cat /var/lib/tor/lightningd_hidden_service/hostname

[5] Log into bitcoin user and download + build Lightning. v0.11.1 is the currently latest version.
Code:
su - bitcoin
git clone https://github.com/ElementsProject/lightning.git
cd lightning
git checkout v0.11.1
./configure
make -j $(nproc)

[6] Create Lightning config.
Code:
mkdir -p /home/bitcoin/.lightning/bitcoin
nano /home/bitcoin/.lightning/bitcoin/lightningd.conf

[7] Enter the following. Alias can be chosen at will! Smiley Replace onion_address_you_got with the hidden service hostname you got in step 4!
Code:
daemon
alias=alias_for_your_node
network=bitcoin
log-level=debug
log-file=/home/bitcoin/.lightning/debug.log

# incoming via tor
bind-addr=127.0.0.1:9735
announce-addr=onion_address_you_got.onion

# outgoing via tor
proxy=127.0.0.1:9050
always-use-proxy=true

[8] Log back out of the unprivileged bitcoin account to install Lightning and create the service.
Code:
exit
cd /home/bitcoin/lightning
sudo make install

sudo nano /usr/lib/systemd/system/lightningd.service

[9] In the service file, we need the following contents.
Code:
[Unit]
Description=C-Lightning daemon
Requires=bitcoind.service
After=bitcoind.service
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/local/bin/lightningd --daemon --conf /home/bitcoin/.lightning/bitcoin/lightningd.conf

User=bitcoin
Group=bitcoin
Type=forking
Restart=on-failure

# Hardening measures
####################

# Provide a private /tmp and /var/tmp.
PrivateTmp=true

# Mount /usr, /boot/ and /etc read-only for the process.
ProtectSystem=full

# Disallow the process and all of its children to gain
# new privileges through execve().
NoNewPrivileges=true

# Use a new /dev namespace only populated with API pseudo devices
# such as /dev/null, /dev/zero and /dev/random.
PrivateDevices=true

# Deny the creation of writable and executable memory mappings.
MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target

[10] Start the Lightning service
Code:
sudo systemctl enable lightningd.service
sudo service lightningd start

[11] To check if it's running, we can use the lightning-cli command as bitcoin user with any of its parameters.
Code:
su - bitcoin
lightning-cli getinfo

Hi N0nce,
Thanks so much for this guide.  I thought I'd give it a go on my futurebit apollo ( I did not flash a custom install of linux ; I am using futurebit's latest OS).  I am pretty new to linux and working with it, but I thought I did a decent job getting through the steps you outlined.  However, I got to the point where I did: sudo service lightningd start, and I got the following message: Failed to start lightningd.service: Unit bitcoind.service not found

Any ideas or help you can provide would be greatly appreciated, would love to dive into lightning.  Thanks again I see you posting all the time and find you to be very helpful to the community.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!