GithubHelp home page GithubHelp logo

thetatoken / guardian-mainnet-guide Goto Github PK

View Code? Open in Web Editor NEW
147.0 147.0 34.0 3.18 MB

Guide for setting up the Guardian Node for the mainnet

Home Page: https://docs.thetatoken.org/

blockchain-technology distributed-systems

guardian-mainnet-guide's People

Contributors

jieyilong avatar weslevitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

guardian-mainnet-guide's Issues

How to get Holder Summary from command line interface?

I am running a Theta Guardian Node (TGN) via the Terminal on my
Ubuntu-Linux pc - i.e. via command-line-interface (cli).
I was using a GUI-TGN but was having problems with it, so changed to cli.

I would like to stake some THETA to this node but am not sure what my
"Holder Summary" is:

When I query the TGN via cli by entering the following cli:

 ./thetacli query guardian

I get the headings:

     * "Address"

     * "BlsPubkey"

     * "Signature"

     * "Summary"

Are one of these (Address, PlsPubkey, Signature, Summary) the "Holder
Summary" that is asked for?

Thank you for your kind attention.
Yours sincerely
Duncan

Guardian Node can not synch

I have been running the node for months and rebooted my Ubunto machine after updating the OS with patches and now it will not synch after days to trying. It gets to 99,65% and now is going backwards. The log files show:

2020-11-16 09:03:05.041] [error] [2020-11-16 09:03:05] WARN [ledger] validateSourceAdvanced failed on 0x70eB754ec0aca59ab661717085B9a1288b03933f: Result{code:100002, message:ValidateInputAdvanced: Got 90, expected 73. (acc.seq=72)}
[2020-11-16 09:03:05.042] [info] [2020-11-16 09:03:05] WARN [ledger] validateSourceAdvanced failed on 0x70eB754ec0aca59ab661717085B9a1288b03933f: Result{code:100002, message:ValidateInputAdvanced: Got 90, expected 73. (acc.seq=72)}

running multiple instances

Hi there,

I have 2 separate wallets and would like to do staking for both of them using my Server. the first instance of the theta guardian app works fine. However I am trying to run the another instance but have the following error:
WARN[0269] Failed to detect the NAT device: no NAT found prefix=p2p
WARN[0269] Failed to perform NAT port mapping: No available NAT device prefix=p2p
FATA[0273] Failed to initiate net listener: listen tcp 0.0.0.0:30001: bind: address already in use prefix=p2p

I can see that the port already binded with the first instance of the theta guardian, What can I do to have both of them run on my Server ? I don't want to put all of tokens in one wallet.

Regards,

Syncing issues with Theta Guardian node on Ubuntu VPS

I followed the guide and the Theta node started to sync. It has now been syncing for approximately 5 hours (guide states should be completed in less than 10 minutes). The VPS specifications is in accordance to, or better than the required specs for running a node.

Can anyone help me sort out this issue?

Guardian Node can not load

I have been running the node for 6 months and have had no recent changes to the Ubunto OS. Today I rebooted my laptop running the node and I get the following run time error after the node successfully synchs

Node Runtime Error
panic: runtime error: invalid memory address or nil pointer dereference

any suggestions?

transferring guardian node

I have set up a guardian node on Ubuntu, but I am experiencing regular crashes on my system so I need to transfer my node to another system. It is not obvious to me at all how to go about this. If my system has to be reinstalled, it is equally a mystery how I would get my guardian node back. Any help gratefully received.

Some CLI questions

I have some questions about running theta (cli) on Ubuntu linux 20.04 server. I've searched for documentation but couldn't find answers. I installed it with the script in the docs.
I started the node with "theta start --config=../guardian_mainnet/node" and things started happening.
Then I ran "thetacli query status" from another terminal and got
"Failed to get account details: Post http://localhost:16888/rpc: dial tcp 127.0.0.1:16888: connect: connection refused"
But after about 15 minutes I connected and got:
" {
"address": "i...",
"chain_id": "mainnet",
"current_epoch":
"current_height":
"current_time":
"latest_finalized_block_epoch":
"latest_finalized_block_hash":
"latest_finalized_block_height":
"latest_finalized_block_time":
"peer_id": "...",
"syncing": false
}"

So, it looks like things were working fine. That was late yesterday. I control-c'd out of it and got back to it today. Now it's been running for an hour and the latest latest_finalized_block_time is about 8 hours ago. It's progressing, but very slowly and synching is true. What did I do wrong? Why is syncing so slow today but really fast yesterday?

  1. I see that "theta start .... " is a way to start the node. But what is the proper way to stop it? I may want to reboot or just stop it for a few minutes.
  2. Then how do you restart theta? "Screen theta --config=../guardian_mainnet/node"? Shouldn't I set this up as a service?
  3. If I stake my theta to this node and this computer crashes are my tokens lost to me? Can I unstake them if this node no longer exists? Will the password simply rebuild the same node later?
  4. Is there some documentation about these questions? Or a support forum?

no theta to stake after node syncs??

my node syncs fine, but when i try to stake it there's nothing there. i just set this whole deal up today...does it just take awhile to generate enough tokens to begin staking process?

Guardian Node is taking a long time to sync to the Theta Network

Hello,

I had setup a Guardian Node on my PC since September 2020, running Windows 10 Pro.
Just before Thanksgiving, the Guardian Node was pulling a lot of resources and my PC was locking up.
I let a few weeks pass and then attempted several times to start up the Guardian Node, no luck.
The GN is taking a long time to sync.
It does the snapshot quickly, no change, but the actual sync-to-network part will start off at about approximately 95.5% and it will take about a day to get to approximately 95.6%.
At this rate, it will take over a month to sync, assuming it remains constant.
Not only that, but if I allow the GN to run (attempt to sync) for more than 24 hours, it will really slow down the PC, I would need to reboot, especially by the 36th hour...never syncing to the network.

Since I was able to run the GN in September with a sync time of about 1 hour, give or take, why is it taking longer now?
My PC is not optimal, since it locks up pretty good, but can someone explain why the Theta Network is harder to sync to?

Did the network get bogged down because of the additional Guardian Nodes (reaching 2,200+)?

I would figure that a solid machine wouldn't lock up at all, may not even flinch or skip a bit, but with a slow machine you can notice a difference between September and December.


In late September we were at ~50.5% total staked Theta, with ~1,380 Guardian Nodes.

On 14NOV20, we were at 52.35% total staked Theta, with 1,472 Guardian Nodes.

Right now we are at 55.5% total staked Theta, with 2,264 Guardian Nodes.

Empty response body

Hello there!
Sometimes (completely random) the method theta.GetBlockByHeight returns {} instead of a block

Method: theta.GetStatus
Params: []
Response: {'jsonrpc': '2.0', 'id': 'healthcheck', 'result': {'address': '0x3B826E9505C6bbA8dE1A14E3755104206D4ecb95', 'chain_id': 'mainnet', 'peer_id': '0x3B826E9505C6bbA8dE1A14E3755104206D4ecb95', 'latest_finalized_block_hash': '0xa52730cfe660441f7252ee66c8042542b774ae91f7a5b94eca852e8030d62fbe', 'latest_finalized_block_height': '8823291', 'latest_finalized_block_time': '1610530346', 'latest_finalized_block_epoch': '8895917', 'current_epoch': '8895919', 'current_height': '8823291', 'current_time': '1610530363', 'syncing': False}}
Method: theta.GetBlockByHeight
Params: [{'height': '8823291'}] #height from 'latest_finalized_block_height'
Response: {'jsonrpc': '2.0', 'id': 'healthcheck', 'result': {}}

Could you please help us?

Connects, disconnects, connects, now won't connect at all???

Running Linux Debian. Was staking no problem for a couple months, then disconnected, reconnected a few days, now disconnected and will not reconnect! It runs and runs the "matrix code" for days but never starts to stake/mine tfuel. Guardian Monitor shows it offline and it syncs 'true' and not 'false'. Not a coder AT ALL so feel pretty lost! Really be great if anyone could help.

Syncing Theta Wallet stuck at 99.99% for hours...

Hello I have been trying to get my Theta Guardian Node to sync and it has been stuck on 99.99% for almost a day! It is currently stuck at (8,707,199 / 8,708,451) and nothing I do will work. I have tried to delete the node database and it didn't work. I even tried to delete the key and it won't even let me do that. When I uninstall the Theta Guardian application and re-install it doesn't even ask me to do a fresh install or bring me to the application welcome screen where I can choose a install directory, even after reinstalling it just immediately goes back to trying to sync the node and doesn't even give me the option of a fresh install. Please if anyone could help I would be greatly appreciative.

Theta tokens missing, unlocked Keystore AND Nmemonic passphrase

If this is the wrong place to post this, please direct me to the correct place. New user and not understanding the problem.
I just got 10,000 theta tokens onto wallet.theta.org (unlocked wallet), went to the stake tab and deposited stake (entire amount) to the Gpool GN Holder (summary) and saw the quantity reside in this tab. That was 8 hours ago. This morning, the wallet.thetatoken.org page is empty, no sign of the previously listed transactions, tokens or Tfuel.

I've imported the keystore (although I first exported it when the wallet was empty) and then I tried entering the mnemonic 12 words. My understanding is that the tokens should still be on the blockchain and not lost, as I didn't transfer the sum out - delegating in done without moving the tokens off the wallet?

Please advise @jieyilong @weiribao @weslevitt , much appreciated

Pending Withdrawal

Hi
I deposited tokens in a guardian now but after 15 minutes i didn't see any tokens being earned so I withdrew them. The tokens are now in a pending withdraw status. When I withdrew the tokens there was a note saying the Guardian Node is now inactive for two day. Can someone advise me what is going on and do I need to do anything to get the tokens back to me account.

Thanks
Donal

Issue running node on mac

Failed on Mac:

ERROR Failed to create tree store for: 0xb4b8f74e32c34a3ca8b8c118f968db290b7b04826ddef0ca57863598fe605e1b: missing trie node b4b8f74e32c34a3ca8b8c118f968db290b7b04826ddef0ca57863598fe605e1b (path )

Exit Confirm

Consider adding confirmation when closing GN/PEEN to prevent a user unintentionally closing the application and having to go through re-sync

What about this ?

I'm getting this issue

[2021-01-30 11:43:26] DEBUG [request] refreshCounter: 2
[2021-01-30 11:43:26] DEBUG [request] Resampled peers to send requests: []
[2021-01-30 11:43:29] DEBUG [consensus] Epoch timeout. Repeating epoch e.epoch=9100657
[2021-01-30 11:43:29] ERROR Failed to create tree store for: 0x045d73e3f816d57d104206b6fc288644255193c2a3bc12cd7f1b608a0cc619c0: missing trie node 045d73e3f816d57d104206b6fc288644255193c2a3bc12cd7f1b608a0cc619c0 (path )
[2021-01-30 11:43:29] PANIC [ledger] Failed to load state for validator pool block.BlockHeader.StateHash=0x045d73e3f816d57d104206b6fc288644255193c2a3bc12cd7f1b608a0cc619c0 block.HCC.BlockHash=0xd07802439b93b951316e4045412abe1d00bb808d6ff6f7ddb654a94769edb1ef block.Hash=0x32a40e802eb3489fb021323d356aaa05e17d0bbcabe92edf9ea8d2c6dd67968f block.Height=9027280 block.Status.IsTrusted()=false
panic: (*logrus.Entry) (0x12e96a0,0xc08df46b60)

goroutine 48 [running]:
github.com/sirupsen/logrus.Entry.log(0xc0000be000, 0xc0146ff8f0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:239 +0x2db
github.com/sirupsen/logrus.(*Entry).Log(0xc08df46af0, 0x0, 0xc00a351200, 0x1, 0x1)
/home/ubuntu/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:268 +0xeb
github.com/sirupsen/logrus.(*Entry).Panic(0xc08df46af0, 0xc00a351200, 0x1, 0x1)
/home/ubuntu/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:306 +0x55
github.com/thetatoken/theta/ledger.(*Ledger).GetFinalizedValidatorCandidatePool(0xc05d9c3200, 0x9f48b32e800ea432, 0x5aa6a353d3221b0, 0xdf2ee9abbc0b7de1, 0x8f9667ddc6d2a89e, 0x0, 0x20, 0xc003f5dc00, 0x0)
/home/ubuntu/go/src/github.com/thetatoken/theta/ledger/ledger.go:131 +0x5e7
github.com/thetatoken/theta/consensus.selectTopStakeHoldersAsValidatorsForBlock(0x16db100, 0xc0000dafd0, 0xd5a0240ff65dcd73, 0x8093acc5b2249d2e, 0xdf445de7a71e827d, 0x9c7a40677dba611f, 0xc00a351400, 0x8ed43c)
/home/ubuntu/go/src/github.com/thetatoken/theta/consensus/validator.go:161 +0x83
github.com/thetatoken/theta/consensus.(*RotatingValidatorManager).GetValidatorSet(0xc00014ac50, 0xd5a0240ff65dcd73, 0x8093acc5b2249d2e, 0xdf445de7a71e827d, 0x9c7a40677dba611f, 0xf01b9a99b27cd2aa)
/home/ubuntu/go/src/github.com/thetatoken/theta/consensus/validator.go:128 +0x50
github.com/thetatoken/theta/consensus.(*ConsensusEngine).shouldVoteByID(0xc0000dafd0, 0xb27cd2aa63d3ce81, 0xc46ff753f01b9a99, 0xf65dcd736ac8fc1c, 0xb2249d2ed5a0240f, 0xa71e827d8093acc5, 0x7dba611fdf445de7, 0x9c7a4067, 0x0)
/home/ubuntu/go/src/github.com/thetatoken/theta/consensus/engine.go:677 +0x4b
github.com/thetatoken/theta/consensus.(*ConsensusEngine).shouldVote(0xc0000dafd0, 0xd5a0240ff65dcd73, 0x8093acc5b2249d2e, 0xdf445de7a71e827d, 0x9c7a40677dba611f, 0x2)
/home/ubuntu/go/src/github.com/thetatoken/theta/consensus/engine.go:673 +0x9d
github.com/thetatoken/theta/consensus.(*ConsensusEngine).vote(0xc0000dafd0)
/home/ubuntu/go/src/github.com/thetatoken/theta/consensus/engine.go:685 +0xbd
github.com/thetatoken/theta/consensus.(*ConsensusEngine).mainLoop(0xc0000dafd0)
/home/ubuntu/go/src/github.com/thetatoken/theta/consensus/engine.go:265 +0x4f2
created by github.com/thetatoken/theta/consensus.(*ConsensusEngine).Start
/home/ubuntu/go/src/github.com/thetatoken/theta/consensus/engine.go:150 +0x1af

Not able to do fresh install of Guardian Node

I tried to uninstall and do a fresh install of the theta guardian node, however when I uninstalled and attempted to re-install it never brought me to the installation welcome page where I can create a new node and select a directory to install to, it just automatically tries to sync and never allows me to create a new node. I've tried to delete ALL files related to theta off my pc but somehow it still will not let me do a fresh install... can anyone please help?

System requirements to run a guardian node

I am very new to THETA and just created my guardian node. I have it running on my Windows labtop.

  1. Is that a good idea since it definitely is slowing down the reaction performance of my computer
  2. when I put my labtop in standy-bye mode it appears, that the node gets shut off!!!!!!!!!!

Could you please advise on above two items?

Thanks a lot

Guardian node activation - stuck on 'starting node'

Hi - i am trying to set up the Guardian node on my mac for the 1st time, after step1 i 'create the node' it asks me to enter a new password, i do and then the node status is 'starting node' but after watching some videos, it is supposed to start giving a loading %, which i never get, i am just stuck on 'Starting node'.

anyone experienced this? any advise to resolve?
Thanks

Guardian Node Snapshot seems to miss metadata?

Hi there,

was following this: https://github.com/thetatoken/theta-mainnet-integration-guide/blob/master/docs/mainnet.md

When trying to start the node, I get a fatal error.
FATA[0022] Snapshot validation failed, err: Failed to load snapshot metadata, rlp: too few elements for core.SnapshotFirstBlock, decoding into (core.SnapshotMetadata).ProofTrios[1].First

Seems like the Snapshot under https://mainnet-data.thetatoken.org/snapshot causes issues?

I'm running Ubuntu 20.04 with CLI on a root Server.

Thanks for any help!

Failed to get blockchain status

Followed the guide here for using CLI installtion of Guradian Node.

In one terminal window the node appears to be syncing/working etc.

But when I run commands like ./thetacli query status

I get the following error message: Failed to get blockchain status: Post http://localhost:16888/rpc: dial tcp 127.0.0.1:16888: connect: connection refused

Am I missing a configuration opition or something? Running this on a VPS droplet.

Searched for similar issues on here and didn't find any.

Any help is appreciated!

Thanks!

I don't get it.

I want to contribute. I installed the windows client, and followed as many directions as I could find online.
As soon as the app finishes loading - it's shows me the Deposit Stake screen. If I try to do that following these instructions: https://github.com/thetatoken/guardian-mainnet-guide/blob/master/docs/STAKING.md#staking-through-web-wallet

it's impossible - as there is no Theta in my account "Invalid amount. Must be at least 1,000 THETA"

..so, I can't complete the setup process of the guardian app?

What am I missing here?

ps. If you guys want larger adoption of your platform - you really need to provide user-friendly instructions to people (like me) that don't know a hellofalottabout how crypto staking/etc. works.

cannot find -lbls384_256

when performing 'make install', I get the following:

go install ./cmd/...

github.com/herumi/bls-eth-go-binary/bls

/usr/bin/ld: cannot find -lbls384_256
collect2: error: ld returned 1 exit status
make: *** [Makefile:22: release] Error 2

Any suggestions?

BIG problem with stacking and withdraw

Hello! I need help with stacking and withdraw. I wanted to test the system before making an investment so i deposited 1004 theta in a stake. Afther everything went well, i wanted to test the withdraw before i could make a real deposit. I made the same process with the withdraw option in the same theta wallet i used to deposit, the guardian node is now "out of operation" because the withdraw but the wallet balance does not show the withdawn thetas. Even worse, is that if i go to the guardian adress explorer, it shows the 1004 deposit, an out "0 theta" withdraw transaction "finalized", and a "0 theta" balance. Where are the 1004 thetas? Shall i wait?

Windows update changed hash

I established a node about 8 days ago. Client updated PC and the node hash changed. I have my original hash. How do I revert the node back to my first hash?

Staking on Ubuntu 20.04 VPS - sycn complete, 8 hours staking, no rewards

I setup a CLI guardian node using this guide https://docs.thetatoken.org/docs/running-a-guardian-node-through-command-line - staked 1000 THETA - everything seems ok: sync = true when I run ./thetacli query guardian

My mobile wallet shows that my stake is in place. My node even appears on https://guardianmonitor.io/ but shows that its OFFLINE/NEW NODE (address is 0x879283af95d925be6db63d131b01f203114c117c). Theta Explorer shows its a guardian node https://explorer.thetatoken.org/account/0x879283af95d925be6db63d131b01f203114c117c/

I've read on other issues that some folks have had to delete the snapshot and db folders. Is this safe to do? Or should I withdraw my stake BEFORE doing this? Don't wanna burn any THETA by getting this wrong ;)

Will post a couple of screen grabs from the node log console (it moves fast!)

resource hog

I am running my theta node on a Linux/ubuntu server. I have a 4 core processor and It is just using all of the processor it can get its hands on. I believe there is some serious work that needs to be done to make this run more efficiently in a linux enviroment.

Unable to deposit stake using Trezor One

I'm unable to deposit a stake to a Guardian node using a Trezor One hardware wallet. It just goes in to a continuous loop continuously asking me to reconfirm the transaction and then giving me a nonsensical error message.

I've recorded a screen cast showing the steps I'm going through. You can see warnings and error messages during this. See

https://www.dropbox.com/s/ffz0eke5lh1zt5l/Theta%20Token%20Wallet%20Unable%20to%20Deposit%20Stake.mp4?dl=0

I sent an email with this issue to [email protected] two days ago but have yet to receive a response

Error on "make install" command

Hello,

I know that Issue #1 has a similar problem on the same command, but I am facing a different error.

I am trying to compile the sourcecode on ARM (Cortex-A7) (RaspberryPi 2 mod B running Raspbian GNU/Linux 10 Buster)

I ran every command on the list without any problem, but when I run the "make install" command, I get this error:

pi@raspberrypi:~/go/src/github.com/thetatoken/theta $ make install
go install ./cmd/...
/usr/local/go/bin/go: 1: /usr/local/go/bin/go: ELF: not found
/usr/local/go/bin/go: 1: /usr/local/go/bin/go: �X$: not found
/usr/local/go/bin/go: 2: /usr/local/go/bin/go:��J��Jn�
�: not found
/usr/local/go/bin/go: 1: /usr/local/go/bin/go: M�: not found
/usr/local/go/bin/go: 2: /usr/local/go/bin/go: @%: not found
/usr/local/go/bin/go: 4: /usr/local/go/bin/go:O: not found
/usr/local/go/bin/go: 2: /usr/local/go/bin/go: Syntax error: word unexpected (expecting ")")
make: *** [Makefile:22: release] Error 2

What's going wrong, and how can I solve this? #

Verifying snapshot: ../guardian_mainnet/node/snapshot Killed

NFO[0010] Verifying snapshot: ../guardian_mainnet/node/snapshot prefix=snapshot
INFO[0010] Allocated cache and file handles, cache: 256, handles: 16 prefix=store
INFO[0010] Reading snapshot header, version: 2, magic: ThetaToDaMoon prefix=snapshot
INFO[0010] Saving the last checkpoint block: 0x0d9769d4348084c5e90ae6ef70b37f4bee0aaff39a71aae6bb06e4cae3d3ff36 prefix=snapshot
INFO[0010] Commit to data store, height: 1, rootHash: 0x7ada5b5bda556a0573364718e37a189043c80fd8defbd9e28d1bf5c1c197316c prefix=ledger
INFO[0011] Validating Snapshot, 5% done. prefix=snapshot
INFO[0011] Validating Snapshot, 10% done. prefix=snapshot
INFO[0012] Validating Snapshot, 15% done. prefix=snapshot
INFO[0012] Validating Snapshot, 20% done. prefix=snapshot
INFO[0013] Validating Snapshot, 25% done. prefix=snapshot
INFO[0014] Validating Snapshot, 30% done. prefix=snapshot
Killed

Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

dead Mac - ?best option for restarting node

TGN flatline for > 1 month -- help! was running on Mac (late-2013), I migrated data/app from old Mac to new before old Mac pooped out, and missing files needed to sync/run TGN, so gotta recover from HD.... Planning to retrieve HD to recover data, and install new SSD to primarily run TGN and edge nodes. Any suggestions for better plan? Thanks in advance for any help!

Stuck on `Validating Snapshot`

I have tried setting up my guardian node and it loads normally as if it will open but it gets stuck at 100%. Any solutions?

Guardian port

HI,

What is the router open port for GN ?

Regards

Guardian Node taking ages to Sync

Hello,

Can anyone please advise why would it be taking ages to sync to the Theta network when trying to set up the Node for staking, still sitting at 98.41%, only increase by 0.1% in 12 hours? help?

Public or private network

This may seem like a dumb question, but me being new to the blockchain technology - I am just trying to figure it all out.

When installing a guardian node, Windows Defender asks if I want to allow Theta to communicate on a private or public network or both.

What should I run my guardian node on? My guest network (public) or my Private network. Which one is most likely to keep all of the info on my private network secure?

Thanks

How to change the data folder

When installing for the first time, i have chosen a disk that has only 100MB of free storage. Now it does not want to complete "Loading snapshot" as it runs out of disk.. please help.
I have tried also to uninstall everything and it does not help.

Unstated Theta

Improvement suggestion: option to specify number of tokens to withdraw, maybe in multiples of 1000.
I require a few thousand unstaked yet had to unstake total balance thereby shutting down my node until I restate in 2 days.

Ubuntu CLI Install: System Automations

Running a guardian node on ubuntu 20.04 headless server. After going through the process of getting it to sync and working through the finickiness of the databases (see 42and 40) I'd like to understand (i) if there are any best practices for running as systemd and (ii) how does the summary fingerprint persists?

Systemd
The basic idea would be to create a system service. But I think it probably needs to run a bash or expect script to pass the node passphrase... Here's the idea:

#  /etc/systemd/system/guardian.service
[Unit]
Description=Guardian Node service
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/etc/systemd/system/guardian.sh

[Install]
WantedBy=multi-user.target

(Yes, I know... it's running as root...) This would be the script that is run in expect and would look to initialize the node on restart.

# /etc/systemd/system/guardian.sh
#!/usr/bin/expect

spawn /root/theta_mainnet/bin/theta start --config=/root/theta_mainnet/guardian_mainnet/node
expect "Please enter the password to launch the Theta node:"
send "super_secrete_password\r"
interact
EOF

And to be complete - run it with:

chmod +x guardian.sh
systemctl start guardian.service
systemctl enable guardian.service

Although this is how I've done similar automation on my servers with persistent services - I have some concerns about how the start/restart of the system will work relative to the DB.

summary fingerprint/key
During various iterations of my install I noticed that the summary key changed with each 'build'. If the db is deleted due to a corruption, does that create a new summary fingerprint such that the corrupted node has to be unstaked and then the new node restaked after the WithdrawnReturn Height is reached?

Thought I would start here before I begin hacking away.

Unable to stake to Guardian node with Ubuntu 20.04

I have followed the Github code to input on term after reinstalling Ubuntu 20.04:

screen -S theta_mainnet # if you run the node on a Linux server
mkdir ~/theta_mainnet
cd ~/theta_mainnet
mkdir bin
mkdir -p guardian_mainnet/node
curl -k --output bin/theta curl -k 'https://mainnet-data.thetatoken.org/binary?os=linux&name=theta'
curl -k --output bin/thetacli curl -k 'https://mainnet-data.thetatoken.org/binary?os=linux&name=thetacli'
wget -O guardian_mainnet/node/snapshot curl -k https://mainnet-data.thetatoken.org/snapshot
curl -k --output guardian_mainnet/node/config.yaml curl -k 'https://mainnet-data.thetatoken.org/config?is_guardian=true'
chmod +x bin/theta
chmod +x bin/thetacli
cd bin/

I launch node with : ' ./theta start --config=../guardian_mainnet/node' and it seems to be working.

I then query with : './thetacli query status' and get this:

george@george-System-Product-Name:$ ./thetacli query status
bash: ./thetacli: No such file or directory
george@george-System-Product-Name:
$ ./thetacli query status
bash: ./thetacli: No such file or directory
george@george-System-Product-Name:$ ./thetacli query status
bash: ./thetacli: No such file or directory
george@george-System-Product-Name:
$ ./thetacli query status
bash: ./thetacli: No such file or directory
george@george-System-Product-Name:~$

Additionally, I had previously successfully synced a Guardian node and was earning Tfuel. I also attempted to compile from the source code per Github instructed code.

Can anyone help me??
BTW, I am not a programmer, I copy and paste per instructions.

Any point in the right direction would be infinitely appreciated

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.