經過36小時掙扎與亞馬遜EC2現在我堅持以下。bash -l/tmp/create_inputs返回連接拒絕在橡膠>亞馬遜EC2
當橡膠達到運行部署-graylog.rb我得到這個錯誤:
這裏是執行的最後一部分日誌:
** [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 #<StringIO:0x007fb47410aec0> -> /tmp/create_inputs
[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
當我SSH登錄到服務器並運行這bash -l /tmp/create_inputs
直接我得到相同的錯誤
我甚至需要Graylog嗎?如果不是我怎麼能禁用它?
服務器是Ubuntu的,的m1.small 紅寶石2.0.0-P353 的Rails 4.0.2
這是/ 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
這是在/ 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" } }'
謝謝你們
'production.foo.com.au'上'/ tmp/create_inputs'的內容是什麼?看起來只是試圖連接到本地主機:12900。應用程序中是否有應用程序正在運行? – Rico
我剛剛添加到問題中。謝謝 –
什麼在12900上運行?看起來像admin:admin1是不允許的。 – Rico