___  ___    _ _    _  _ _____   _____
 / __|/ _ \  | | |  | || |_ _\ \ / / __|
| (_ | (_) | |_  _| | __ || | \ V /| _|
 \___|\___/    |_|  |_||_|___| \_/ |___|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Smartcash Smartnode First Aid kit

BY: @popcornpopper | CREATED: Feb. 11, 2018, 1:49 a.m. | VOTES: 67 | PAYOUT: $2.86 | [ VOTE ]

Heya Steemians and fellow Smarties! Welcome to my Steemit !

[IMAGE: https://steemitimages.com/DQmVgdBp5Crg1GyigH6XQvfsDs4JirCzmMNBbSrasZREdeW/smartcash_popcornpopper_comedic.jpg]

At this time of writing there are 905 Smartnodes with NEW_START_REQUIRED status, while another 37 with EXPIRED status. Chances are high that these 942 Smartnodes may miss out on the current payout period.

We all know how important it is to keep our Smartnodes up and running all the time, just 1 hour of downtime will cause our Smartnodes to miss out on the current payout period which by today's standards could take up to 11 days!

What I've observed is that Smartnodes smartcashd program is a very stable program, however, due to external factors it may come down unannounced. Some of these issues can range from disk space , network, resource constraints, file permissions, hung process , etc..

Most of these issues are preventable and some, automatically resolvable if common problem areas are checked routinely and ensuring that the officially prescribed maintenance scripts are put in place.

I thought I'd lend a hand a bit to some of those who maybe struggling to keep their once ENABLED Smartnodes to stay up and running all the time.

Smartnode First Aid kit
Let me introduce you to Smartnode First Aid kit ( smartnode_first_aid.sh ) , its an open source program available in GitHub that you can use to verify the health of your Smartnodes. It makes an attempt to quickly identify common issues with your server and Smartnode setup. It will also provide tips to help you resolve these identified issues.

This script will not change anything in your Smartnode host, but just diagnose issues and report health status.

Below is a screenshot on how to use and what to expect with the tool ( demo here with Failures ) :
[IMAGE: https://steemitimages.com/DQmTZaeKR9YsRK6hJPEdQfj19JU8ddpRrGdx8iBemRNFMY7/smartnode_first_aid_screen1.jpg]

After applying fixes to the issues identified, then rerun the tool:

[IMAGE: https://steemitimages.com/DQmUPui7X46M8suL9MZsNNNYkRDnphNeP9MY5fmqy12c6H5/smartnode_first_aid_screen3.jpg]

Features

  1. check_smartcashd_process - Checks if your smartcashd daemon process is running
  2. check_sc_status - Checks status of your smartcashd. Runs smartcash-cli smartnode status
  3. check_crons - Checks if your smartcashd daemon is configured to start automatically after reboot
  4. check_cron_scripts_if_official - Checks your cron scripts if they are identical to the official Smartcash Smartnode scripts and if they are configured in CRON. It will recommend a script to configure your CRON with the latest official Smartnode scripts.
  5. check_sc_port - Checks smartcashd daemon port to ensure its listening and its not blocked by internal/external firewalls.
  6. check_web_status - Checks smartcashd daemon port, verifies if its communicable from external internet.
  7. check_system_stats - Checks your server's CPU and MEMORY stats and verify if its within reasonable thresholds
  8. check_disk_space - Checks each filesystem is within space thresholds
  9. check_debug_log - Verifies the space usage of your debug log. Provides tips how to clear it and long term fix.

How to download and run Smartnode First Aid Kit script

Run commands below on your Smartnode host as "root" or "smartadmin" user :

wget https://raw.githubusercontent.com/popcornpopper/Smartnode_Scripts/master/grab_and_run_smartnode_first_aid.sh

bash ./grab_and_run_smartnode_first_aid.sh

DM me at Smartcash Discord, your comments and feedback are all welcome.
Over and out here .. you're friendly neighborhood "popcornpopper"

TAGS: [ #smartcash ] [ #smartnode ] [ #maintenance ] [ #script ] [ #popcornpopper ]

Replies

@oucan | Feb. 11, 2018, 2 a.m. | Votes: 1 | [ VOTE ]

nice mini guide

@popcornpopper | Feb. 11, 2018, 2:08 a.m. | Votes: 0 | [ VOTE ]

Thanks @oucan!

@authors.leage | Feb. 11, 2018, 2:25 a.m. | Votes: 2 | [ VOTE ]

Greetings my friend!

I am glad that our community has increased with one more member!
I hope that you will find here a way to realize yourself, and to benefit others
Be yourself, be sincere, be honest and worthy of the place you are in.

I Upvoted your post and Resteem of your greeting in my feed, where you you can search friends and other minnows...

I think you can use this collected information:

First off all! Most answers to your questions you can find here https://www.steemithelp.net/

Blockchain Explorer https://steemd.com/@_Your_Steemit_Nickname
Blockchain Explorer and statistics https://steemdb.com/@Your_Steemit_Nickname
Your account achievements https://steemitboard.com

Navigate the prices and exchanges where you can buy Steem or sell SBD
Steem
SBD

For the your first post use please #introduceyourself tag! Thank you:)
You can become a participant in the competitions, by selecting the desired in the tag #contest or invent and organize your own.
More useful tips and steemit app you can find in #steemit & #steem tag

There is a Steemit chat with various rooms, in which you can ask questions, advice, or place your post to advertise it to the community https://steemit.chat

Upvote chat in the telegram massager:
https://t.me/steem
https://t.me/intercambiosteemit
https://t.me/Steemplus

Similarly, by reading the posts of other Steemians you can find invitations to the Discord channels! They often contain upvote chats, and you can easily find friends of interest in them
Here are some of them:
World Of Photography https://discord.gg/4Ezx2eM
MinnowBOOSTER https://discord.gg/k7fWQD7
SteemSports https://discord.gg/ApvKKUF
WhaleShares https://discord.gg/DX7zErC
Steem Gigs https://discord.gg/NuFVxKA
SteemTrail https://discord.gg/gHt2aGN
Minnow-Power channel https://discord.gg/WvFQzXu notify
Steemit Lover https://discord.gg/EVKhssF
GuideSteemit https://discord.gg/nkwh36Y
BuildAWhale https://discord.gg/yebax27
Steemit ramble https://discord.gg/9pUSjv8
VotoVZLA https://discord.gg/VhgeFJQ
Steem Life https://discord.gg/SD3ReMm
SteemLab https://discord.gg/phWQveU
MinnowsUnite https://discord.gg/CJEEfgb
Steemians https://discord.gg/uR95R7t
Society for Narwhal https://discord.gg/repxc9v

Territorial communities
Steemit Philippines https://discord.gg/VyG83AN | https://discord.gg/Q8956PF
Steem NIGERIA https://discord.gg/Y3u2z6T
East Coast Steem https://discord.gg/QXduBuk
Ukraine SteemOn https://discord.gg/cxq8JQd
Ru-Steem Trail https://discord.gg/8KyDBUx
Let us know if you know more or create new!

Alternative interfaces:
https://zappl.com
https://busy.org
https://steepshot.io (-mobile app have to)
Forums https://chainbb.com

Mobile app - eSteem :
for Android https://play.google.com/store/apps/details?id=com.netsolutions.esteem&hl=ru
for iOS https://itunes.apple.com/us/app/esteem-mobile/id1141397898?mt=8

Forget about youtube! There is https://d.tube!
Have fun and joke yourself with https://dmania.lol/

A public SQL database with all blockchain data http://steemsql.com https://sql.steemhelpers.com
From Developers https://steemconnect.com
Rewarding Open Source Contributors
https://utopian.io | https://discord.gg/kPYBCYK

Autocuration1 https://steemvoter.com
Autocuration2 https://streemian.com/profile/curationtrail/trailing/943
Bot Tracker https://s3.amazonaws.com/yabapmatt/bottracker/bottracker.html#paid

Use @minnowbooster for boost your rewards!
More https://www.minnowbooster.net
https://www.minnowbooster.net/minnowbannericon.jpg

You also need to select witnesses and vote for them. These are people who ensure decentralization of the work of the blockchain. Make your choice consciously, by choosing responsible and useful delegates

https://steemit.com/~witnesses

Golos wait for you too! Find more here about Golos.io blockchain platform - analogue Steemit! This is Steemit,s younger brother! Join us: https://golos.io/create_account

Regarding the correction, insertion or deletion of your information, please contact @Dimarss

@marshalllife | Feb. 13, 2018, 4:44 p.m. | Votes: 0 | [ VOTE ]

sure there's a new one #Project-Atlas @project-atlas
https://discord.gg/ewyRAN8

@xodus | Feb. 11, 2018, 2:57 a.m. | Votes: 1 | [ VOTE ]

Great script!

@popcornpopper | Feb. 11, 2018, 3:16 a.m. | Votes: 0 | [ VOTE ]

Thanks @xodus!

@yvvng | Feb. 11, 2018, 5:11 a.m. | Votes: 1 | [ VOTE ]

Great guide. I'll definitely keep this handy for when I set up smartnodes.

@popcornpopper | Feb. 11, 2018, 5:19 a.m. | Votes: 0 | [ VOTE ]

Thanks @yvvng !

@emojiet | Feb. 11, 2018, 8:13 p.m. | Votes: 1 | [ VOTE ]

@popcornpopper thanks for this great tool kit. I will be putting my nodes through the test.
Upvoted snd resteeming this.

@popcornpopper | Feb. 11, 2018, 8:48 p.m. | Votes: 0 | [ VOTE ]

Thank you @emojiet !

@nitego | Feb. 11, 2018, 8:42 p.m. | Votes: 1 | [ VOTE ]

Another great tool from you. Thanks. Resteemed and upvoted. Just ran it against my nodes and found my nodes were not 100% like I expected. Applied the fixes recommend and now I can say its all green. Thanks for sharing and being very helpful.

@popcornpopper | Feb. 11, 2018, 8:49 p.m. | Votes: 0 | [ VOTE ]

Thank you @nitego !

@nitego | Feb. 11, 2018, 10 p.m. | Votes: 0 | [ VOTE ]

@smartbot tip @popcornpopper 10

@smartbot | Feb. 11, 2018, 10 p.m. | Votes: 0 | [ VOTE ]

Σ$$$ Tipped @popcornpopper Σ10 SMART! Comment @smartbot help to claim. Currently the price of SmartCash in the market is $0.312 USD per SMART. Current value of the tip is $3.12 USD. To find out more about SmartCash, please visit https://smartcash.cc.

@popcornpopper | Feb. 11, 2018, 11:14 p.m. | Votes: 1 | [ VOTE ]

Thanks @nitego !

@doc-gonzo | Feb. 12, 2018, 5:55 a.m. | Votes: 1 | [ VOTE ]

Very nice. I'm going to have to save this somewhere. Been thinking pretty hard about making the SmartNode jump. New to SmartCash but thinking I may go for it. Any quick tips, do's or don'ts?

Followed and unvoted. @doc-gonzo
Check out my first smartcash post.
https://steemit.com/smartcash/@doc-gonzo/making-money-is-easy-with-smartcash

@popcornpopper | Feb. 12, 2018, 7:56 a.m. | Votes: 0 | [ VOTE ]

Thanks @doc-gonzo . If you decide to build a smartnode , checkout this vid tutorial from @hannahlicious ..

https://www.youtube.com/watch?v=CEFw6Y1BAMc&t=550s

@controllinghand | Feb. 13, 2018, 12:16 a.m. | Votes: 0 | [ VOTE ]

Hi Popcornpopper. I wrote a similar script. Perhaps we can combine our checks. I look at a few other items including firewall setting. Let me know.
https://github.com/controllinghand/smartnode-monitor

@controllinghand | Feb. 13, 2018, 12:18 a.m. | Votes: 0 | [ VOTE ]

Also mine is more for people that have multiple SmartNodes.

@popcornpopper | Feb. 13, 2018, 2:06 a.m. | Votes: 1 | [ VOTE ]

Hi @controllinghand , yes , more than happy to combine forces.. I've also been in touch with @blockchainlib , and he had similar ideas to add security section.. I actually put some out there for iptables check.. but decided last minute to hash them out as this may complicate things for some people.. my script is out on github right now.. its integratable with other scripts.. just have to create an independent function , return fail, ok or warning with same color scheme .. there's also some parts there you can leverage ,i.e. the global variables and existing functions .. feel free to DM me at smartcash discord if you or anyone from the smartsquad would like to collaborate further.. Cheers !

@controllinghand | Feb. 13, 2018, 7:53 a.m. | Votes: 1 | [ VOTE ]

Sounds good. I'm going to look at your code and perhaps integrate it into my agent? Or just have you write your output to a location. Right now I have my agents running on all my VPS every 10 mins and output to that smartadmin home dir /home/smartadmin/snmon/snmon.dat file. hmm... let's chat more.

@gambit.coin | Feb. 13, 2018, 3:55 a.m. | Votes: 1 | [ VOTE ]

Nice tool, its great to see how a smart community can create things to improve further wherever they are in.

This will be handy for any smartnode owner,thanks.

@popcornpopper | Feb. 13, 2018, 4:49 a.m. | Votes: 1 | [ VOTE ]

Thanks @gambit.coin !

@eltaxsex | Feb. 13, 2018, 10:11 a.m. | Votes: 0 | [ VOTE ]

Unfortunately, this isn't working for me. I've tried it on two nodes, both via Root and SSH. And I get the following error on both. I am using Root access via Vultr server, or SSH access via Bitvise.

ERROR: Unable to locate Smartvcash Application directory.
OR
bash: smartcash_first_aid.sh: No such file or directory

I figured by letting you know this error, maybe you could add a fix to your above instructions.

Thanks

@popcornpopper | Feb. 13, 2018, 3:45 p.m. | Votes: 0 | [ VOTE ]

Hello there.. Sorry for your troubles .. may I ask if you can run below command ?

ls -ld /root/.smartcash/smartcash.conf /.smartcash/smartcash.conf /home/smartadmin/.smartcash/smartcash.conf

Thanks!

@popcornpopper | Feb. 13, 2018, 4:02 p.m. | Votes: 0 | [ VOTE ]

Hello @eltaxsex .. Ok , it's possible you may have smartcash.conf on both smartadmin and root users .. possibly causing this error.. I've made some bit of new improvement so the smartcash first aid script will be able to tolerate this situation.. could you please do the following:

  1. rm -f smartnode_first_aid.sh

  2. wget https://raw.githubusercontent.com/popcornpopper/Smartnode_Scripts/master/smartnode_first_aid.sh

  3. bash ./smartnode_first_aid.sh

Hope this works now for you..

Cheers !

@smartcash | Feb. 13, 2018, 11:46 a.m. | Votes: 1 | [ VOTE ]

@smartbot tip @popcornpopper 10

@smartbot | Feb. 13, 2018, 11:46 a.m. | Votes: 0 | [ VOTE ]

Σ$$$ Tipped @popcornpopper Σ10 SMART! Comment @smartbot help to claim. Currently the price of SmartCash in the market is $0.247 USD per SMART. Current value of the tip is $2.47 USD. To find out more about SmartCash, please visit https://smartcash.cc.

@popcornpopper | Feb. 13, 2018, 3:45 p.m. | Votes: 0 | [ VOTE ]

Thanks @smartcash !

@marshalllife | Feb. 13, 2018, 4:09 p.m. | Votes: 1 | [ VOTE ]

you took your time to write all this? this is really a great article and thank you so much for this, i haven't set up smart nodes yet but when that happens and i get any issues i do use the smartnodes first aid to its rescue, i have to bookmark this, thanks again.

@popcornpopper | Feb. 13, 2018, 5:52 p.m. | Votes: 1 | [ VOTE ]

Thanks @marshalllife ! I'm a certified geek here.. lolz .. I had some spare time .. so enjoyed doing it.. I use it on my smartnodes too.. so.. win-win to be able to help others too. :)

@marshalllife | Feb. 13, 2018, 6:21 p.m. | Votes: 1 | [ VOTE ]

its great sire, bless you for this

@anyaklah | Feb. 16, 2018, 7:31 a.m. | Votes: 1 | [ VOTE ]

thank for you

@popcornpopper | Feb. 16, 2018, 5:12 p.m. | Votes: 0 | [ VOTE ]

Thanks !

@zulfajri | Feb. 16, 2018, 8:29 a.m. | Votes: 1 | [ VOTE ]

incredible passion
Please support
vote and follow me, I am a new beginner

@popcornpopper | Feb. 16, 2018, 5:11 p.m. | Votes: 0 | [ VOTE ]

Thanks @zulfajri . Upvoted and followed you.

@aungzin | Feb. 17, 2018, 2:41 a.m. | Votes: 2 | [ VOTE ]

Thank'u good job.👍

@popcornpopper | Feb. 17, 2018, 3:37 a.m. | Votes: 0 | [ VOTE ]

Thanks !

@irfannurjack | Feb. 17, 2018, 10:22 a.m. | Votes: 1 | [ VOTE ]

vote me @sances

@sances | Feb. 17, 2018, 3:25 p.m. | Votes: 1 | [ VOTE ]

good vote me..... yes

@muh-isa | Feb. 22, 2018, 3:26 a.m. | Votes: 0 | [ VOTE ]

Please visit my post and upvote my account.

@flemingfarm | Feb. 23, 2018, 5:35 p.m. | Votes: 1 | [ VOTE ]

Seriously kickass! I love this and it just helped me out a bunch with the upgrade. Very useful and beneficial resource for all nodes! Thanks and great job!!!

@popcornpopper | Feb. 23, 2018, 11:53 p.m. | Votes: 0 | [ VOTE ]

Thanks @flemingfarm !!

@muammarkhadafi | March 1, 2018, 4:47 p.m. | Votes: 0 | [ VOTE ]

Good vote....👍👍

@jesterlem | March 2, 2018, 11:01 a.m. | Votes: 0 | [ VOTE ]

Good your posting

@desiyuanna | March 3, 2018, 11:21 a.m. | Votes: 0 | [ VOTE ]

Nice

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>