碼農日常
碼農日常

Likecoin驗證人之一,旅日工作中 主頁在這,歡迎來訪->https://thumbb13555.pixnet.net/blog

Code Farmer's Daily - "Validator" I blew up my node, and then revived!

Maji 2.0 is reborn! Do you/you still dare to entrust me?

Actually, this was three weeks ago.


At the end of October, I happened to receive a new development task in the company, and then I thought " Oh sxxt, really bad ", I didn't expect that I would run it and cultivate it for more than 3 months. It should be like glue and affection with me. Thick Maji (validator node) actually went offline!

shock! All right! Dropped, dropped, usually just a restart at this time, then touch his head (imagine), he will happily continue to serve everyone

But! It's this But! !

Nani? Didn't make a successful comeback this time? ? Flower black spray? ?

After a careful look at the log, the result...

 Error: error during handshake: error on replay: wrong Block.Header.AppHash. Expected FBEF6433CE1F04DE5D12DA01A6BE82CA960F93F3D98383A8D2C884677900CE9A, got 41441A4396D1C3837B0D2B50B21312A69497AB3578B365EB35755EEA

(This is originally for programmers, it doesn't matter if you don't understand)

The point is that wrong Block.Header.AppHash, which I later asked the community and got this answer:

reply

Well, in fact, I also see the fog, but the main thing is this

Reply 2

OK, the general meaning is that this is basically a bug they encountered when upgrading IBC, and the solution is to clear the data in your current validator node, and then throw the data provided by them into the node, and then can continue to run

understand, understand, understand

But what to do! ! crash OTZ

Yes, starting from this step, I am about to go to the road of destruction of the code machine 1.0



tinkering with Linux again


I'm ashamed to say that, in fact, I didn't graduate from the Department of Labor and Employment (my motor), so I actually don't know how to operate the Linux system. When the verifier is in the frame, I just see what instructions are there, and then I go to Dudu to see it, and then Just give me this verifier.

Today, when I encounter such a situation, it is naturally a state where I don't understand anything; so I can only keep searching for some instructions, and then try bit by bit...

But trying is not the point, the point is that I was really nervous! I actually didn't make a backup from start to finish! !

That's how I feel when I try it

Terrier Warehouse

And more actually it should be like this

Terrier Warehouse

And then, just as I kept trying, my mari...

Terrier Warehouse

So, just when I was extremely sad, coupled with the persecution of the oxytocin demon , this crazy article was born.

Matt's Universe Project 21 | Imprisoned Souls

My mood that day:

Terrier Warehouse

Seriously, the more crashes, the more crashes QQ



Okay! Talk about technical reasons! !


In fact, my nodes are set up with services provided by Linode, and generally we first rent a VM (virtual host)

Screenshot of Linode

Then, usually we will attach a disk (Volumes) to a host

Screenshot of Linode

So, why would I blow up the node at the time? The reason is that at that time, I put the operation folder of LikeCoin-chain in Volumes , and then I accidentally executed this command in order to resize (re-adjust the capacity of Volume) Volume:

 mkfs.ext4 "/dev/disk/by-id/scsi-0Linode_Volume_backup"

This command means to initialize the disk ...that is to format the entire disk, and then...

Terrier Warehouse

...remembered to provoke QwQ



A journey of trying to reply to the node


In fact, until this point is written, it all happened within 2 days. So why did I deal with it for a week?

In fact, after my node was determined to be jailed and completely blown up on Monday, I was actually tinkering with a heavy-handed process, so I actually spent three days waiting for the node to sync

But by the way! ! !

The synchronization speed is simply a tortoise. To be honest, I originally used the server in Tokyo (Japan), although the connection occasionally dropped, but overall it was okay ... Until this time, the speed of his synchronization was really worrying me. ;It's only a few days' worth of data that needs to be synchronized, after I pinched my fingers... It will take several days to complete the synchronization.

I'm here, my mood is as bad as you say, my lips have begun to crack due to the pressure

So I went to seek the help of@catding, and he said to me " You can consider switching to the server in Atlanta (US), because the hardware facilities there have recently been updated. "

OK, good, no problem! I got the node in the mood to try again. I didn't expect this node to be like eating OO big tonic pills.

Sync fast! ! !

Originally, I expected the nodes to be synchronized until the weekend, OK! Great, by noon on Friday it was done in sync! very good! !

So, I ran the escape command:

 docker-compose run --rm liked-command \
tx slashing unjail \
        --from validator \
        --chain-id likecoin-mainnet-2 \
        --node tcp://liked-service:26657

it is good! I managed to see my Mag machine " Activity ", but...

Strange, why didn't the grid switch the lights? Obviously my node display has been synchronized!


BigDipper - not normal

⭕️

BigDipper - normal

I was so confused that I decided to ask the community for help again.

Screenshot of Discord

Later, after summoning nnkken, he helped me compare some things, and the result....

Screenshot of Discord


Terrier Warehouse

Maji RIP



comeback


The time at this time was noon on Friday. To be honest, I was in the same mood as the death of the lovely dog at home. I was extremely sad. I was so sad that I couldn’t do my work on Friday at all, and I just wanted to go home and sleep.

Among them, I have to say, @sloth's life is really caring, always enlightening me, comforting me, and listening to my speech; at this time, I also keep announcing all my good friends who have entrusted me

Sorry for disappointing you all, my maji is dead, please take the entrustment away!

But at the same time, there are still a few very caring friends @Carol.W, @星光光, etc. Private messages tell me it's okay, I will wait for you to establish a new node and then transfer to the past, etc.

do you know? Sometimes the most heartwarming thing for a person is that someone is on your side at all times. There is really nothing more precious in this world than this.

At this time I had to tell them: Thank you, but I want to calm down first and then go back and get a new Maji


...that's how I said it, but after I was enlightened by the sloth that night, I suddenly said to the sloth:

Hey, can I come to the live broadcast node?

Sloth: .....What? How about a little later? (Sloth dumbfounded achievement get)

me: ok

Liker Social

Yes, I have probably done something that is truly unprecedented and has never been seen since, that is, a live-broadcast validator node (laughs)


Then there is really a group of lunatics @The sloth's life@Conflict girl @chicken cake GCAKE @cat traveling [Erica]@Uncle Xin really came in to see my node! ! ! ! ! XDDDDDDDD

This image is provided by Sloth's Life License

And what's even funnier is that the new node is just online! ! ! (laughing out loud)

This picture is provided with permission from the contradictory girl

I. Silly. Eye


Then you ask, why is it so easy to get online? In fact, sometimes it can only be said that it is a matter of luck; because many people had bugs like me at that time, which led to temporary offline ; therefore, as long as the commission at that time exceeded 30,000, it could easily go online... Yes, I plugged myself directly at that time. 15,000, plus all of them present gave me the LikeCoin Stud and I went online (I planned to wait slowly...)

And after I announced the launch, there were many people like @Carol.W who lived and died with me, so they immediately transferred the entrustment to me, so I left the danger zone further... That's right..

I. At once. fly. span


Then since the old node is dead, I'll play around with him (laughs); so a group of us all came up with ideas to change the old node to a stupid name...

BigDipper

Well, later, because I had to announce to the community, I changed my name to a serious one.

BigDipper

Then here is the location of the new node:
https://likecoin.bigdipper.live/validators/cosmosvaloper1fdpmw3k73asq89gt0qvf9j97pgg2kapkk99yl2

BigDipper

Ma... I don't force everyone to entrust me, after all, he has only been online for a few weeks, and I have bombed nodes before and have a criminal record, so everyone should consider the entrustment...



I'm sorry, what have I done?


As the saying goes
Wherever you fall, don't get up in a hurry, you can check if there is money on the ground first (laughs)

After this experience, I came to my senses and absolutely wanted to avoid making the same mistakes; so I did the following:

  1. Turn on Linode automatic backup ($2.50 for a month)
  2. Backup node data (other than block data) to my own PC
  3. Add a Volume and let it store the backup of node data (about 1XX more G, more than 15 US dollars per month)
  4. Write technical articles, help yourself and others to build nodes -> article here

So in total, the monthly operating cost of my node will come to around $60, but because I have bombed nodes myself, I am willing to absorb it; just wait for me to continue to work hard and put everyone's trust. Earn it back!

This month's bill...


Epilogue


@Daisy in his article How to choose a validator? mentioned in the article

 D. Token holders are concerned about the validator's contribution to the community According to the survey, the principals are concerned about the following when selecting validators:
Reputation Community Contribution Security Audit Results Delegated Ranking Transparency Longevity (How long did the validator verify the transaction?)

In fact, one of the validator selection indicators is the issue of "longevity". Frankly speaking, I just happened to fail the "longevity" part, because I really have too many things to improve.

But at the same time, I also have another extreme, that is, I am a developer/educator at the same time; before I became a validator again, I developed a small APP - Code Farmer Daily - "Technology" Likecoin Balance Widget was officially launched! ! (with the IOS operation method) , in the future, I am also planning to complete Matters-Tools and LikeCoin-Market , and I am planning to take over the remake of the OTC OTC platform (with my consent)

In terms of education, I co - founded the #AMA Online Workshop with @sloth'slife, which aims to promote the LikeCoin writing ecology and educate the LikeCoin community system; next year, it is expected that this workshop will be extended to other writing platforms, and The ultimate goal is to release online video courses.


The last point is a bit more spicy. I don’t know why there are so many new validators recently. I think this is a very good thing!

But what I want to say is that although everyone seems to think that Ama and I are easy to go online, and that I can easily get 300,000 commissions without relying on the community, there is a word from my heart.

Excuse me, have you seen how long I have worked hard?

My publicity is good, my efforts are good; I even recommend everyone to entrust excellent validators @catding, @JohnShao and even those I am relatively unfamiliar with @Nicholas, @leafwind and others, Although I also want to make money, I don't really plan to use him as a money-making tool. For me, the validator is a title , it is just for the convenience of my education and promotion . In the end, the money I got is not all. Do you support everyone ? So who really benefits? I still wish I could think about it.

Therefore, I invite the emerging validators, or those who want to become validators; please think about your next contribution to the community, formulate a policy, give a goal that is indeed possible to achieve, and then

My life motto - "Life is to explode" ...Oh no, it's Just do it.

Do it, then publicize it, and actually tell everyone where its benefits are and how it can contribute to everyone. Some things have good ideas, but they are too abstract, and I don’t know where the actual benefits are. This is really a pity

Okay, maybe the ending is a little bit spicy, but now my lovely Mage machine is still running normally, and I have done a full backup every week. With this experience, I will be a more stable validator in the future! Please continue to support me, thank you!

CC BY-NC-ND 2.0

Like my work?
Don't forget to support or like, so I know you are with me..

幹話協會暨黑科技研究所

碼農日常

打碼不用多,能跑則行;幹話不用多,有幹則名 本圍爐立志成為馬特市第一幹話與迷因愛好協會 歡迎來我這裡一起互噴垃圾話、分享迷因、商議馬特市經營之道!

143
Loading...
Loading...

Comment