Heya Steemians and fellow Smarties! Welcome to my Steemit !
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 ) :
After applying fixes to the issues identified, then rerun the tool:
Features
- check_smartcashd_process - Checks if your smartcashd daemon process is running
- check_sc_status - Checks status of your smartcashd. Runs smartcash-cli smartnode status
- check_crons - Checks if your smartcashd daemon is configured to start automatically after reboot
- 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.
- check_sc_port - Checks smartcashd daemon port to ensure its listening and its not blocked by internal/external firewalls.
- check_web_status - Checks smartcashd daemon port, verifies if its communicable from external internet.
- check_system_stats - Checks your server's CPU and MEMORY stats and verify if its within reasonable thresholds
- check_disk_space - Checks each filesystem is within space thresholds
- 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"
Thank'u good job.👍
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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!!!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @flemingfarm !!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
vote me @sances
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
incredible passion
Please support
vote and follow me, I am a new beginner
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @zulfajri . Upvoted and followed you.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @gambit.coin !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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. :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
its great sire, bless you for this
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you @nitego !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@smartbot tip @popcornpopper 10
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @nitego !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Σ$$$ Tipped @popcornpopper
Σ10 SMART
! Comment@smartbot help
to claim. Currently the price of SmartCash in the market is$0.312 USD
perSMART
. Current value of the tip is$3.12 USD
. To find out more about SmartCash, please visit https://smartcash.cc.Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thank for you
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@smartbot tip @popcornpopper 10
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Σ$$$ Tipped @popcornpopper
Σ10 SMART
! Comment@smartbot help
to claim. Currently the price of SmartCash in the market is$0.247 USD
perSMART
. Current value of the tip is$2.47 USD
. To find out more about SmartCash, please visit https://smartcash.cc.Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @smartcash !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
nice mini guide
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @oucan!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @doc-gonzo . If you decide to build a smartnode , checkout this vid tutorial from @hannahlicious ..
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@popcornpopper thanks for this great tool kit. I will be putting my nodes through the test.
Upvoted snd resteeming this.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you @emojiet !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great script!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @xodus!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great guide. I'll definitely keep this handy for when I set up smartnodes.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @yvvng !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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:
rm -f smartnode_first_aid.sh
wget https://raw.githubusercontent.com/popcornpopper/Smartnode_Scripts/master/smartnode_first_aid.sh
bash ./smartnode_first_aid.sh
Hope this works now for you..
Cheers !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Also mine is more for people that have multiple SmartNodes.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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 !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Please visit my post and upvote my account.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Good vote....👍👍
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Good your posting
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Nice
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit