My STEEM related bots are actually long-running processes. They sometimes stop, fail and go offline. It might be an unhandled exception, a network issue, a temporary steem public node issue, etc. You should always log these fuckups. However, most of the time a *restart* of the bot is enough to keep things going. <center><img src="https://media2.giphy.com/media/13FDZn3eBSzmNy/giphy.gif"></center> <center><sup>Famous quote of <a href="http://www.imdb.com/title/tt0487831/">It Crowd</a>.</sup></center> I use [Supervisor](http://supervisord.org) to control the processes of the bots. It monitors the processes and can auto-restart if something happens like that. It will also auto-start the scripts if an os reboot happens. For example, I have [curobot](http://github.com/emre/curobot) as my personal curation bot. It's current config on my machine: ``` command = /var/bots/curobot-env/bin/curobot /var/bots/curobot/config.json stdout_logfile = /var/logs/curobot.log stderr_logfile = /var/logs/curobot.log redirect_stderr = True redirect_stdout = True autorestart = True environment = POSTING_KEY=foo ``` Supervisor daemon also has a neat web interface that, you can actually monitor and manage your processes via the web browser. *A screenshot from my supervisord setup* <img src="https://s13.postimg.org/m4wxwp5fr/Screen_Shot_2018-03-19_at_9.38.15_PM.png"> *** I use it for the last 4-5 years. It's a rock-solid solution to manage and monitor the processes. Check [supervisord.org](https://s13.postimg.org/m4wxwp5fr/Screen_Shot_2018-03-19_at_9.38.15_PM.png) for more info.
author | emrebeyler |
---|---|
permlink | monitoring-bots |
category | python |
json_metadata | {"community":"busy","app":"busy/2.4.0","format":"markdown","links":["http://www.imdb.com/title/tt0487831/","http://supervisord.org","http://github.com/emre/curobot","https://s13.postimg.org/m4wxwp5fr/Screen_Shot_2018-03-19_at_9.38.15_PM.png"],"image":["https://steemitimages.com/0x0/https://media2.giphy.com/media/13FDZn3eBSzmNy/giphy.gif","https://steemitimages.com/0x0/https://s13.postimg.org/m4wxwp5fr/Screen_Shot_2018-03-19_at_9.38.15_PM.png"],"tags":["python","bots","programming","supervisord","sndbox"]} |
created | 2018-03-19 18:45:33 |
last_update | 2018-03-19 18:47:06 |
depth | 0 |
children | 6 |
last_payout | 2018-03-26 18:45:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 11.185 HBD |
curator_payout_value | 1.637 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,587 |
author_reputation | 448,535,049,068,622 |
root_title | "Monitoring bots" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 45,396,770 |
net_rshares | 3,903,960,957,199 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gregory-f | 0 | 106,360,472 | 0.22% | ||
olegn | 0 | 2,137,162,272 | 100% | ||
felixxx | 0 | 258,882,423,229 | 100% | ||
kiddarko | 0 | 12,443,871,991 | 12.5% | ||
shadowspub | 0 | 313,047,801 | 0.11% | ||
dadview | 0 | 5,592,057,647 | 12.5% | ||
sambillingham | 0 | 32,004,511,876 | 24% | ||
hansikhouse | 0 | 47,389,798,700 | 6% | ||
voronoi | 0 | 98,052,909,011 | 12% | ||
oleg326756 | 0 | 204,331,607 | 0.22% | ||
adventureevryday | 0 | 10,424,031,637 | 25% | ||
teamhumble | 0 | 2,271,712,020 | 6% | ||
alfarisi | 0 | 76,433,885 | 12% | ||
elizacheng | 0 | 993,762,791 | 5% | ||
buzzbeergeek | 0 | 13,792,004,013 | 25% | ||
damla | 0 | 4,886,718,626 | 20% | ||
erb | 0 | 5,199,513,470 | 12% | ||
steemitcitizen | 0 | 986,780,499 | 12.5% | ||
oendertuerk | 0 | 36,474,167,628 | 20% | ||
scrooger | 0 | 273,298,140 | 0.16% | ||
dbzfan4awhile | 0 | 1,761,970,813 | 1.8% | ||
cryptastic | 0 | 5,774,228,898 | 30% | ||
luvabi | 0 | 1,522,298,146 | 6% | ||
world-travel-pro | 0 | 611,408,315 | 0.6% | ||
walnut1 | 0 | 776,571,122 | 0.6% | ||
monomyth | 0 | 18,389,285,268 | 20% | ||
derrick829 | 0 | 14,156,327,557 | 1% | ||
zerotoone | 0 | 519,639,772 | 100% | ||
hknyasar | 0 | 4,067,162,290 | 100% | ||
lastozgur | 0 | 3,310,547,627 | 100% | ||
sndbox | 0 | 2,075,860,059,545 | 12% | ||
jacekw | 0 | 13,212,515,497 | 100% | ||
leotrap | 0 | 2,749,690,947 | 6% | ||
nettybot | 0 | 10,672,522,470 | 20% | ||
matrixonsteem | 0 | 557,275,647 | 100% | ||
avesa | 0 | 342,254,032 | 0.25% | ||
steemliberator | 0 | 691,094,488 | 100% | ||
theleapingkoala | 0 | 131,196,299 | 0.27% | ||
samiwhyte | 0 | 53,159,112 | 0.11% | ||
msp3k | 0 | 5,794,025,640 | 100% | ||
witnessstats | 0 | 546,521,889 | 100% | ||
fishyculture | 0 | 404,246,576 | 1% | ||
parejan | 0 | 27,911,823,546 | 100% | ||
boontjie | 0 | 38,292,610,003 | 100% | ||
crokkon | 0 | 12,818,564,950 | 50% | ||
therealwolf | 0 | 62,354,879,292 | 7% | ||
osm0sis | 0 | 719,295,949 | 1% | ||
simplifylife | 0 | 150,194,709 | 0.25% | ||
kriptonoob | 0 | 1,787,282,014 | 2.5% | ||
espoem | 0 | 29,627,081,851 | 50% | ||
superdavey | 0 | 52,947,619 | 0.02% | ||
playitforward | 0 | 3,402,960,094 | 3.6% | ||
mrblinddraw | 0 | 2,388,704,728 | 4.8% | ||
animagic | 0 | 155,283,309 | 12% | ||
r2steem2 | 0 | 560,805,100 | 100% | ||
qurator | 0 | 52,286,079,394 | 1.1% | ||
steemcreate | 0 | 571,948,760 | 100% | ||
hsynterkr | 0 | 8,052,748,674 | 100% | ||
omersurer | 0 | 1,388,194,949 | 5% | ||
andrekweku | 0 | 106,776,433 | 12.5% | ||
emrebeyler | 0 | 662,176,160,433 | 100% | ||
halleyleow | 0 | 759,222,687 | 50% | ||
kamuhuzuru | 0 | 149,191,543 | 10% | ||
zoltarian | 0 | 62,975,743,945 | 100% | ||
turbot | 0 | 412,167,837 | 95% | ||
dangerux | 0 | 158,481,567 | 20% | ||
ethemkibar | 0 | 2,077,562,375 | 10% | ||
jeffbernst | 0 | 955,880,315 | 6% | ||
evilest-fiend | 0 | 1,221,636,057 | 50% | ||
skycae | 0 | 140,722,250 | 0.03% | ||
thashadowbrokers | 0 | 66,612,808 | 100% | ||
qustodian | 0 | 137,966,599,157 | 42.75% | ||
gokos | 0 | 560,763,000 | 94% | ||
matematikciemre | 0 | 211,822,791 | 5% | ||
muhammetcan | 0 | 430,724,000 | 71% | ||
geekpowered | 0 | 14,675,207,732 | 70% | ||
intelligencer | 0 | 3,459,322,999 | 100% | ||
biriki3 | 0 | 180,656,505 | 10% | ||
brotato | 0 | 325,075,432 | 100% | ||
pizaz | 0 | 318,382,669 | 100% | ||
triplethreat | 0 | 65,343,623 | 100% | ||
dootdoot | 0 | 50,201,672 | 100% | ||
wewt | 0 | 5,590,085,654 | 20% | ||
conflaxus | 0 | 65,310,994 | 100% | ||
tittilatey | 0 | 65,365,332 | 100% | ||
cajun | 0 | 318,956,920 | 100% | ||
coonass | 0 | 318,609,610 | 100% | ||
squirrelnuts | 0 | 324,477,407 | 100% | ||
iwanderela | 0 | 1,181,426,597 | 1% | ||
luoq | 0 | 1,131,417,400 | 6% | ||
ewq | 0 | 1,490,160,722 | 6% | ||
steemdevs | 0 | 318,216,032 | 100% | ||
jeezy | 0 | 66,514,845 | 100% | ||
test.with.dots | 0 | 65,284,370 | 100% | ||
pi-pi | 0 | 65,251,499 | 100% | ||
listentosteem | 0 | 66,479,073 | 100% | ||
gravy | 0 | 65,228,605 | 100% | ||
sauronbey | 0 | 155,215,454 | 6% | ||
yucealiosman | 0 | 525,705,300 | 89% | ||
onursa | 0 | 547,225,400 | 93% | ||
osmania | 0 | 3,431,481,009 | 100% | ||
selamtux | 0 | 562,267,500 | 93% | ||
ucmuharfli | 0 | 352,234,436 | 10% | ||
patricklancaster | 0 | 1,381,607,397 | 12.5% | ||
fotobot | 0 | 51,449,524 | 10% | ||
gokhan83kurt | 0 | 2,091,973,752 | 5% | ||
peppermint24 | 0 | 50,177,204 | 0.05% | ||
eshapunver | 0 | 88,016,683 | 10% | ||
muhittinabi | 0 | 61,249,957 | 10% | ||
energyaddict22 | 0 | 83,433,482 | 0.33% | ||
queqtra | 0 | 55,182,215 | 6% | ||
gcamkerten | 0 | 61,709,683 | 5% | ||
bybrawe | 0 | 50,666,751 | 3% | ||
samedb | 0 | 569,549,181 | 94% | ||
iluvatar100 | 0 | 790,733,863 | 10% | ||
anbilivibil | 0 | 82,675,274 | 14% | ||
flugschwein | 0 | 977,849,650 | 100% | ||
ruen | 0 | 56,993,878 | 5% | ||
steem-rocks | 0 | 513,350,668 | 88% | ||
praguepainter | 0 | 554,135,624 | 100% | ||
bulent1976 | 0 | 495,411,087 | 100% | ||
lavinas | 0 | 52,186,607 | 10% | ||
peri | 0 | 1,249,389,842 | 10% | ||
mesutkrgln | 0 | 72,272,193 | 5% | ||
kemalyokus | 0 | 61,418,018 | 10% | ||
yasujizr | 0 | 60,384,866 | 10% | ||
privacybydesign | 0 | 604,032,406 | 100% | ||
ogergami | 0 | 577,900,858 | 100% | ||
firster78 | 0 | 85,808,189 | 14% | ||
blockmountain | 0 | 287,105,715 | 6% | ||
trupvote | 0 | 590,735,279 | 100% | ||
jumbot | 0 | 43,797,788,119 | 20% | ||
esme-svh | 0 | 428,875,366 | 100% | ||
testorz | 0 | 409,329,396 | 93% | ||
qotd | 0 | 388,781,585 | 88% | ||
fel1xw | 0 | 2,123,784,702 | 100% | ||
pokeparadox | 0 | 615,066,326 | 100% | ||
senseofhumor | 0 | 612,502,989 | 100% | ||
lucko | 0 | 401,385,645 | 100% | ||
crpytoanalyzer | 0 | 99,876,343 | 83% | ||
arafs | 0 | 265,065,332 | 0.5% | ||
mehmetunlu118 | 0 | 79,625,355 | 100% |
One day I will tell you, what behemoth I build for steem. But today is not that day. Just that much. I use crontab:)
author | isnochys |
---|---|
permlink | re-emrebeyler-monitoring-bots-20180319t185420908z |
category | python |
json_metadata | {"tags":["python"],"app":"steemit/0.1"} |
created | 2018-03-19 18:54:24 |
last_update | 2018-03-19 18:54:24 |
depth | 1 |
children | 2 |
last_payout | 2018-03-26 18:54:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 118 |
author_reputation | 48,488,212,884,261 |
root_title | "Monitoring bots" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 45,397,952 |
net_rshares | 0 |
It's not actually a replacement for crontab. I also use crontab for some bots. This is for the scripts designed to run forever, always listening new blocks, transactions, etc.
author | emrebeyler |
---|---|
permlink | re-isnochys-re-emrebeyler-monitoring-bots-20180319t185554620z |
category | python |
json_metadata | {"tags":["python"],"app":"steemit/0.1"} |
created | 2018-03-19 18:55:54 |
last_update | 2018-03-19 18:55:54 |
depth | 2 |
children | 1 |
last_payout | 2018-03-26 18:55:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 176 |
author_reputation | 448,535,049,068,622 |
root_title | "Monitoring bots" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 45,398,145 |
net_rshares | 0 |
I tried that too, but streaming is way to unreliable on my old vps for steem. And nodes too. I have everything in funny cronjobs. And lost them at one point to crontab - r Don't execute that!! E and R are just to close on my mobile phones keyboard. Now, all my crontab are also on my git backup:) But I repeat myself.
author | isnochys |
---|---|
permlink | re-emrebeyler-re-isnochys-re-emrebeyler-monitoring-bots-20180319t191612844z |
category | python |
json_metadata | {"tags":["python"],"app":"steemit/0.1"} |
created | 2018-03-19 19:16:15 |
last_update | 2018-03-19 19:16:15 |
depth | 3 |
children | 0 |
last_payout | 2018-03-26 19:16:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 319 |
author_reputation | 48,488,212,884,261 |
root_title | "Monitoring bots" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 45,400,885 |
net_rshares | 0 |
I've been messing around with drdoogie by @inertia, how is your curobot different? Honestly I'm still so green that I dont get how steembottracker works, but it seems like I'm such a lowlevel plankton that paying for upvotes is basically a waste of my time unless I'm willing to shell out big votes ...
author | praguepainter |
---|---|
permlink | re-emrebeyler-monitoring-bots-20180319t205500943z |
category | python |
json_metadata | {"tags":["python"],"users":["inertia"],"app":"steemit/0.1"} |
created | 2018-03-19 20:55:03 |
last_update | 2018-03-19 20:55:03 |
depth | 1 |
children | 0 |
last_payout | 2018-03-26 20:55:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 302 |
author_reputation | 138,210,477,313 |
root_title | "Monitoring bots" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 45,414,282 |
net_rshares | 0 |
I’ve been using pm2 a lot lately, really like it a lot.
author | themarkymark |
---|---|
permlink | re-emrebeyler-monitoring-bots-20180320t044220274z |
category | python |
json_metadata | {"tags":["python"],"app":"steemit/0.1"} |
created | 2018-03-20 04:42:21 |
last_update | 2018-03-20 04:42:21 |
depth | 1 |
children | 1 |
last_payout | 2018-03-27 04:42:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.195 HBD |
curator_payout_value | 0.062 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 55 |
author_reputation | 1,773,898,031,206,220 |
root_title | "Monitoring bots" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 45,473,254 |
net_rshares | 79,305,688,100 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
randowhale | 0 | 43,674,328,505 | 100% | ||
therealwolf | 0 | 35,631,359,595 | 4% |
I'm only using pm2 - super helpful and very reliable.
author | therealwolf |
---|---|
permlink | re-themarkymark-re-emrebeyler-monitoring-bots-20180320t163456432z |
category | python |
json_metadata | {"tags":["python"],"app":"steemit/0.1"} |
created | 2018-03-20 16:34:54 |
last_update | 2018-03-20 16:34:54 |
depth | 2 |
children | 0 |
last_payout | 2018-03-27 16:34:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 53 |
author_reputation | 581,207,180,122,024 |
root_title | "Monitoring bots" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 45,579,266 |
net_rshares | 0 |