These are chat archives for bgw/ansible-honeybadger

8th
Mar 2015
nanpanman
@nanpanman
Mar 08 2015 05:01
script is still running but everything seems a-ok right now :)
Benjamin Woodruff
@bgw
Mar 08 2015 05:01
Hey
Glad to hear it!
nanpanman
@nanpanman
Mar 08 2015 05:01
Thanks for creating this script. Very useful.
Benjamin Woodruff
@bgw
Mar 08 2015 05:01
Thanks for testing it out
nanpanman
@nanpanman
Mar 08 2015 05:02
I've been running a Tor node and a bitcoind node but my VPS host is pretty crappy so it goes down all the time.
Benjamin Woodruff
@bgw
Mar 08 2015 05:02
Yeah, I have some of those... http://i.imgur.com/sQ8YVO4.png
nanpanman
@nanpanman
Mar 08 2015 05:04
Right. Btw, will this script install bitcoind 0.10?
Benjamin Woodruff
@bgw
Mar 08 2015 05:04
Yeah, it installs and updates from the official PPA, which is at 0.10 right now
and it'll update automatically without any intervention
Are you on OpenVZ or KVM?
nanpanman
@nanpanman
Mar 08 2015 05:05
Awesome. How long should the script take to complete?
I don't actually know if I am on OpenVZ or KVM.. how can I check?
I'm kinda new to all this VPS business
Benjamin Woodruff
@bgw
Mar 08 2015 05:06
A few minutes
Your provider should say
nanpanman
@nanpanman
Mar 08 2015 05:07
The script has been stuck on this line for a couple of minutes now:
TASK: [bootstrap | update system packages] **
Benjamin Woodruff
@bgw
Mar 08 2015 05:08
That's expected to take a while if your installation is out-of-date
If you feel like it's stuck, you can kill it (ctrl+c), and try updating by hand.
I've had a few cases where apt behaved poorly, and wouldn't work properly without a terminal
And fortunately it seems pretty rare
But that's an ubuntu/ansible bug, which I can't solve or work around
nanpanman
@nanpanman
Mar 08 2015 05:09
ok. np.
I googled for my VPS provided (cloudatcost) and they appear to be using VMWare
Benjamin Woodruff
@bgw
Mar 08 2015 05:10
Okay, that's fine.
I was going to suggest applying a nice value to bitcoind, because the initial sync causes a bunch of load, and tends to piss off providers
nanpanman
@nanpanman
Mar 08 2015 05:11
I re=imaged the VPS to ubuntu 14.04 and ran sudo apt-get update before running through the honeybadger installation instructions
Benjamin Woodruff
@bgw
Mar 08 2015 05:11
All the bitcoind properties that you can set are listed here: https://github.com/PiPeep/ansible-honeybadger/blob/master/roles/bitcoind/defaults/main.yml
Okay
You can edit the hosts file or the files in host_vars after you first run autosetup to tweak additional variables that it doesn't give you interactive options for.
nanpanman
@nanpanman
Mar 08 2015 05:13
Thanks! Yes I am running another bitcoind 0.10 node and the sync is very fast now but the CPU cores go full tilts. Top was showing 600% CPU use if I remember correctly
Benjamin Woodruff
@bgw
Mar 08 2015 05:13
and then if you re-run autosetup, it'll just use those values instead of prompting you again, and update your machine to match the config
Yeah, cpulimit can be handy
nanpanman
@nanpanman
Mar 08 2015 05:14
Oh the script just ran into an error again..

TASK: [monit | configure monit] *
failed: [localhost] => {"failed": true}
msg: failed to validate: rc:1 error:monit: The control file '/root/.ansible/tmp/ansible-tmp-1425791610.53-31953876324565/source' must have permissions no more than -rwx------ (0700); right now permissions are -rw-r--r-- (0644).

FATAL: all hosts have already failed -- aborting

Benjamin Woodruff
@bgw
Mar 08 2015 05:15
Well, that's unique.
I'll open an issue.
nanpanman
@nanpanman
Mar 08 2015 05:17
OK. I'll have to try a bit later since I'm late for a meeting. Thanks for all the help & the script PiPeep!
Benjamin Woodruff
@bgw
Mar 08 2015 05:17
Okay. np
Sorry you ran into so many issues!
nanpanman
@nanpanman
Mar 08 2015 05:18
Happy to help test it. I'm the noob test :)
Benjamin Woodruff
@bgw
Mar 08 2015 05:20
I'm going to go to bed. It's getting late in my timezone.
Feel free to post here, I'll see it tomorrow
nanpanman
@nanpanman
Mar 08 2015 07:31
Benjamin Woodruff
@bgw
Mar 08 2015 17:26
Figured it out. If you just re-run autosetup it'll work
The problem is that on localhost, the commands are run too quickly, and tor hasn't actually written out the keyfile by the time it tries to copy it
Benjamin Woodruff
@bgw
Mar 08 2015 18:02
Oh, seeing as your on a bandwidth cap, and I think the documentation was bad for this (fixing it) I should point out that the bandwidth rate you configure should be half of the total bandwidth you want to allocate, because the bandwidth rate is the incoming bandwidth.
(ctrl+f BandwidthRate)
Benjamin Woodruff
@bgw
Mar 08 2015 18:38
PiPeep/ansible-honeybadger@7ffc026
I just ran through the windows instructions with it, and was able to both reproduce your issues on the old commit, and test they were fixed on the new commit.
nanpanman
@nanpanman
Mar 08 2015 19:22
Thanks for the fixes! I'll rerun the script later this evening once I have some available time