Bible Pay

Read 532602 times

  • oncoapop
  • Full Member

    • 171


    • 17
    • October 23, 2018, 12:31:17 PM
    more
Dear Rob,
I have finally managed to set up a Cantabo VPS with the specs. 8 vCPU, 30 Gb RAM, 800 Gb SSD. What is the recommended method to set up each of the sanctuaries such that I can also set up cockroachdb on the same server to optimize usage of the machine? If there is a Wiki somewhere for this process, could you please point me to it, so that I can set it up properly from the first go without having to reprovision it if I screw up.
Thank you.
Blessings
oncoapop


  • Rob Andrews
  • Administrator

    • 4141


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Dear Rob,
I have finally managed to set up a Cantabo VPS with the specs. 8 vCPU, 30 Gb RAM, 800 Gb SSD. What is the recommended method to set up each of the sanctuaries such that I can also set up cockroachdb on the same server to optimize usage of the machine? If there is a Wiki somewhere for this process, could you please point me to it, so that I can set it up properly from the first go without having to reprovision it if I screw up.
Thank you.
Blessings
oncoapop

Hi Oncoapop,

Thats awesome.  Well there is no Temple guide yet, but, I can make one because we will absolutely have problems when we start talking about running 10 instances of biblepayd on different ports and also sharing the 10* instances of data directories (which requires a setting),  and also sharing the 10* config files (which requires a setting).  So I will be able to make one.

But in the mean time to get you started, pre-notes:
1) You won't need 10 sub vms inside the big vm, you will just need to run 10 instances of BBP to be a temple
2) You can ignore the section about Swap as thats only for nodes with < 1gb ram
3) You can ignore the developer notes and troubleshooting notes as those are primarily for building windows and mac

I recommend first just building one instance of biblepay first, and see if you get to the end of the build so that it makes a biblepayd file.
Once it gets that far it should be relatively easy for me to make a Temple guide and get you to the point where 10 are running properly.
Then I need to make yet another enhanced guide to handle the new unreleased cockroachdb cluster installer (which we can tackle after these first two big steps).

Plz follow this guide: Building BBP on linux:

https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt


In my case I usually install BBP prod in "/biblepay" and BBP testnet in "/biblepaytest" from the root of the drive and install everything as root (so that all paths can be written to).

(You dont need to install bbp test, just pointing it out that you can also use that big box for testing as well.



PART II:


Here is the guide to set up 10 sancs to be a Potential Temple:

https://wiki.biblepay.org/Building_A_Temple

Let me know when you get all 10 running and Ill make a guide for releasing a cockroach cluster.

Also, if you are looking for the EasySanc doc (this is what gives you the sanctuary BLS_PRIV_KEY) there is a link for it in the Red Sea release post above (the one with the red sea picture/mandatory upgrade).


« Last Edit: July 08, 2023, 02:16:36 PM by Rob Andrews »


  • oncoapop
  • Full Member

    • 171


    • 17
    • October 23, 2018, 12:31:17 PM
    more
Thank you, Rob, the guide was useful.

I used the precomplied binaries which were downloaded instead of compiling it on the server as compilation did not work on the first try.

Let's say one sanc chain is fully synced, which directories can I copy to the rest of the other /data/biblepay(n) directories so that their chain will be also synced with each of the other sancs, without having to sync from scratch for each of them, or is it necessary for temple sancs to sync from scratch (ie do template sancs communicate with one another to ensure they are internally synced with each other?) What happens when on sanc is out-of-sync, does it automatically get a consensus from internal temple sancs first or just from the blockchain on the internet?

Also, I instead of putting the conf files in a directory called /config, each of them are in the respective directories to aid trouble-shooting eg /data/biblepay1/biblepay1.conf

Would you like to commission my son who is on summer break to design some NFTs? We need to have a bit of back and forth as to what the designs are as they have to look professional and desirable!

Thank you.

Blessings
oncoapop



  • oncoapop
  • Full Member

    • 171


    • 17
    • October 23, 2018, 12:31:17 PM
    more
Thank you, Rob, the guide was useful.

I used the precomplied binaries which were downloaded instead of compiling it on the server as compilation did not work on the first try.

Let's say one sanc chain is fully synced, which directories can I copy to the rest of the other /data/biblepay(n) directories so that their chain will be also synced with each of the other sancs, without having to sync from scratch for each of them, or is it necessary for temple sancs to sync from scratch (ie do template sancs communicate with one another to ensure they are internally synced with each other?) What happens when on sanc is out-of-sync, does it automatically get a consensus from internal temple sancs first or just from the blockchain on the internet?

edit: all my 10 sancs are synced

Also, I instead of putting the conf files in a directory called /config, each of them are in the respective directories to aid trouble-shooting eg /data/biblepay1/biblepay1.conf

Would you like to commission my son who is on summer break to design some NFTs? We need to have a bit of back and forth as to what the designs are as they have to look professional and desirable!

Thank you.

Blessings
oncoapop


  • Rob Andrews
  • Administrator

    • 4141


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Thank you, Rob, the guide was useful.

I used the precomplied binaries which were downloaded instead of compiling it on the server as compilation did not work on the first try.

Let's say one sanc chain is fully synced, which directories can I copy to the rest of the other /data/biblepay(n) directories so that their chain will be also synced with each of the other sancs, without having to sync from scratch for each of them, or is it necessary for temple sancs to sync from scratch (ie do template sancs communicate with one another to ensure they are internally synced with each other?) What happens when on sanc is out-of-sync, does it automatically get a consensus from internal temple sancs first or just from the blockchain on the internet?

Also, I instead of putting the conf files in a directory called /config, each of them are in the respective directories to aid trouble-shooting eg /data/biblepay1/biblepay1.conf

Would you like to commission my son who is on summer break to design some NFTs? We need to have a bit of back and forth as to what the designs are as they have to look professional and desirable!

Thank you.

Blessings
oncoapop
Ok, it might be OK that you've moved the configs to other places in this case (hopefully).

Do you know what error you received in the compile and what led up to it?  Im not against using the precompiled binaries, but it doesnt make me feel too good if we go end to end building the temple and we have a basic compile problem (will probably become an issue when we get to the advanced troubleshooting with cockroachdb, possibly).

I dont want to set expectations too high on the NFT side; Im not going to have the bandwidth to talk about NFTs for quite a while; I would prefer if you work directly with the community on that so that Im not a blocker.

Any progress on testing the phone system?



  • oncoapop
  • Full Member

    • 171


    • 17
    • October 23, 2018, 12:31:17 PM
    more
1. The error that I can see on the compile script is this:

Fetching qtbase-opensource-src-5.9.6.tar.xz from https://download.qt.io/archive/qt/5.9/5.9.6/submodules
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Fetching qtbase-opensource-src-5.9.6.tar.xz from https://download.qt.io/archive/qt/5.9/5.9.6/submodules
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Fetching qtbase-opensource-src-5.9.6.tar.xz from https://download.qt.io/archive/qt/5.9/5.9.6/submodules
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Fetching qtbase-opensource-src-5.9.6.tar.xz from https://bitcoincore.org/depends-sources
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
make: *** [funcs.mk:247: /root/biblepay/depends/sources/download-stamps/.stamp_fetched-qt-qtbase-opensource-src-5.9.6.tar.xz.hash] Error 22

2. The script then fails to compile at the end..
configure: error: libdb_cxx headers missing, Biblepay Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)
make: *** No targets specified and no makefile found.  Stop.

Any suggestions?


Blessings
oncoapop

« Last Edit: July 14, 2023, 10:19:43 AM by oncoapop »


  • oncoapop
  • Full Member

    • 171


    • 17
    • October 23, 2018, 12:31:17 PM
    more
On further inspection https://download.qt.io/archive/qt/
Requested: https://download.qt.io/archive/qt/5.9

Version 5.9 no longer exists on the site. can we substitute another version?

Blessings
oncoapop


  • oncoapop
  • Full Member

    • 171


    • 17
    • October 23, 2018, 12:31:17 PM
    more
One more basic question:
For the Windows Desktop BMS server ie unchained.

How does one sign in? I cannot perform any actions without signing in and I am sorry but I cannot figure out how to sign in.

I think I was signed in previously as I could add the NFTs, but I am not signed in at present.

Thank you.

Blessings
oncoapop


  • Rob Andrews
  • Administrator

    • 4141


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
One more basic question:
For the Windows Desktop BMS server ie unchained.

How does one sign in? I cannot perform any actions without signing in and I am sorry but I cannot figure out how to sign in.

I think I was signed in previously as I could add the NFTs, but I am not signed in at present.

Thank you.

Blessings
oncoapop
Hi bro Oncoapop,

The way authentication works on Desktop unchained is if you have a New wallet, (and no Unchained keypair yet in your Receiving addresses list) , we create one and then we create an 'unchained.conf' file in the data directory (similar to wallet.dat).
That keypair is then used for authentication and spending within all of unchained.  (Phone calls are billed there and file hosting is billed there too, and you can spend from that key from the unchained wallet page).
If you move your system you would have to copy that unchained.conf and then it would authenticate as you again.
(On a side note I sent you an email a few weeks back using this forum email address you have on file).
You can go to Profile and change your Nickname and click save, and that should save your record and prove when you move machine to machine you are logged in.

One more thing, when you have phone numbers attached to that key they stay with that key, so its very important to keep that file once phone numbers and NFTs are attached to that key.




  • Rob Andrews
  • Administrator

    • 4141


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
On further inspection https://download.qt.io/archive/qt/
Requested: https://download.qt.io/archive/qt/5.9

Version 5.9 no longer exists on the site. can we substitute another version?

Blessings
oncoapop





You also asked:
Let's say one sanc chain is fully synced, which directories can I copy to the rest of the other /data/biblepay(n) directories so that their chain will be also synced with each of the other sancs, without having to sync from scratch for each of them, or is it necessary for temple sancs to sync from scratch (ie do template sancs communicate with one another to ensure they are internally synced with each other?) What happens when on sanc is out-of-sync, does it automatically get a consensus from internal temple sancs first or just from the blockchain on the internet?

-> I havent found a way to make multiple sanc instances share a data directory (I think thats impossible).  I just have one data directory per sanc.  So they all sync individually right now.  Mainly because database locking - you cant share the database file with more than one node at a time.  (If you are bootstrapping you can ungzip a copy of the synced folder in first; which we dont publish yet but we should in the future).


Ok, thanks for the detailed compile report.
Ive reproduced this on one of my boxes and it is exactly as you say, a build dependency issue is missing and would have affected any upstream coin as well (AKA Dash, Bitcoin) until the build dependency script was fixed (which it looks like it was fixed in the future because there have been commits made to bitcoin and dash for this).  Yes/No on using a new version; No in the sense you cant just change it as it requires a hash and compatibility, but Yes it can be fixed other ways but is very tedious.

The issue with changing these dependencies is there are a whole slew of patches with different QT versions and we cant simply pull the latest Depends(build) files from DASH, because they are Only compatible with recent builds, and you cant change the QT version without disrupting the patches.
Best bet is to inherit all these Depends changes at once during our next rebase and in the mean time fix the dependency URL to point to a real download of 5.9 from somewhere else on the internet.

Ok, now that I know of the problem Ill see if I can host QT 5.9 on the biblepay server a little later and see if that fixes it with a clean build.

Will you be testing a phone call soon?

« Last Edit: July 15, 2023, 06:38:59 AM by Rob Andrews »


  • Rob Andrews
  • Administrator

    • 4141


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
On further inspection https://download.qt.io/archive/qt/
Requested: https://download.qt.io/archive/qt/5.9

Version 5.9 no longer exists on the site. can we substitute another version?

Blessings
oncoapop

Ok this is fixed.
To build biblepay:
git pull origin master

cd depends
make -j 8

Then after it builds the dependencies, you can continue (just in case you want to verify the entire build finishes, then we can have self built binaries in the future).



  • oncoapop
  • Full Member

    • 171


    • 17
    • October 23, 2018, 12:31:17 PM
    more
Compile completes and the binaries appear in the directory, so it appears to work!
Great job!
Thanks.
Blessings
oncoapop


  • oncoapop
  • Full Member

    • 171


    • 17
    • October 23, 2018, 12:31:17 PM
    more
Dear Rob,
Sorry for some reason I could not remember which web wallet was open when I connected to unchained and hence I cannot login with the same credentials.
I have a phone number (provisioned with 12065310541 to BAuYpKr22mkULvTKb3YiqG3TszbgdXzWRR) but as I cannot login, I cannot make calls.
Blessings
Damian

Hi bro Oncoapop,

The way authentication works on Desktop unchained is if you have a New wallet, (and no Unchained keypair yet in your Receiving addresses list) , we create one and then we create an 'unchained.conf' file in the data directory (similar to wallet.dat).
That keypair is then used for authentication and spending within all of unchained.  (Phone calls are billed there and file hosting is billed there too, and you can spend from that key from the unchained wallet page).
If you move your system you would have to copy that unchained.conf and then it would authenticate as you again.
(On a side note I sent you an email a few weeks back using this forum email address you have on file).
You can go to Profile and change your Nickname and click save, and that should save your record and prove when you move machine to machine you are logged in.

One more thing, when you have phone numbers attached to that key they stay with that key, so its very important to keep that file once phone numbers and NFTs are attached to that key.


  • Rob Andrews
  • Administrator

    • 4141


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Dear Rob,
Sorry for some reason I could not remember which web wallet was open when I connected to unchained and hence I cannot login with the same credentials.
I have a phone number (provisioned with 12065310541 to BAuYpKr22mkULvTKb3YiqG3TszbgdXzWRR) but as I cannot login, I cannot make calls.
Blessings
Damian

I just remembered I had fixed a few problems in unchained during the last round of phone testing and maybe I broke login; let me release the new version of unchained with voice mail and we can test login again.

Hang on...



  • Rob Andrews
  • Administrator

    • 4141


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Dear Rob,
Sorry for some reason I could not remember which web wallet was open when I connected to unchained and hence I cannot login with the same credentials.
I have a phone number (provisioned with 12065310541 to BAuYpKr22mkULvTKb3YiqG3TszbgdXzWRR) but as I cannot login, I cannot make calls.
Blessings
Damian

Ok, I released the latest version (6.52) which includes voice mail.
Go ahead and click Unchained from the left menu from your node and it should upgrade (it could take a good 3-4 mins).  Ive got a future feature coming where it will display the upgrade progress but that is hard to release (right now there is a 50% chance you will get a popup telling you that its upgrading); either way just wait til the web page loads.

Then verify its v6.52 on the web UI; then you should be logged in.

Try saving your NickName just to be sure things work then you should be able to test the phone.

I tested this upgrade on my remote test node and it worked.