After 36 hours of struggling with Amazon EC2, I now stuck to the following.
When Rubber reaches deploy-graylog.rb execution, I get this error:
Here is the log from the last part of the run:
** [out :: production.foo.com.au] graylog-web start/running, process 12772
command finished in 750ms
triggering after callbacks for `rubber:graylog:web:bootstrap'
* 2014-02-21 22:01:24 executing `rubber:graylog:web:create_inputs'
servers: ["production.foo.com.au"]
** sftp upload
[production.foo.com.au] /tmp/create_inputs
[production.foo.com.au] done
* sftp upload complete
* executing "sudo -p 'sudo password: ' bash -l /tmp/create_inputs"
servers: ["production.foo.com.au"]
[production.foo.com.au] executing command
** [out :: production.foo.com.au] curl: (7) Failed connect to localhost:12900; Connection refused
command finished in 725ms
failed: "/bin/bash -l -c 'sudo -p '\\''sudo password: '\\'' bash -l /tmp/create_inputs'" on production.foo.com
When I SSH to the server and run this one bash -l /tmp/create_inputs, I get the same error
Do I even need Graylog? if not, how can I turn it off?
Ubuntu Server, m1.small Ruby 2.0.0-p353 Rails 4.0.2
This is / etc / hosts
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
## rubber config production
10.248.163.48 production.foo.com.au production ec2-54-206-206-214.ap-southeast-2.compute.amazonaws.com ip-10-248-163-48.ap-southeast-2.compute.internal elasticsearch-production.foo.com.au graphite-production.foo.com.au graylog-production.foo.com.au
## rubber config production
This is what is in / tmp / create _inputs
function error_exit { exit 99; }; trap error_exit ERR
curl --user admin:admin1 -XPOST http://localhost:12900/system/inputs -H "Content-Type: application/json" -d '{"type": "org.graylog2.inputs.gelf.udp.GELFUDPInput", "creator_user_id": "admin", "title": "gelf-udp", "global": true, "configuration": { "port": 12201, "bind_address": "0.0.0.0" } }'
curl --user admin:admin1 -XPOST http://localhost:12900/system/inputs -H "Content-Type: application/json" -d '{"type": "org.graylog2.inputs.syslog.udp.SyslogUDPInput", "creator_user_id": "admin", "title": "syslog-udp", "global": true, "configuration": { "port": 12514, "bind_address": "0.0.0.0" } }'
Thanks guys in advance