{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/4638","repository_url":"https://api.github.com/repos/elastic/logstash","labels_url":"https://api.github.com/repos/elastic/logstash/issues/4638/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/4638/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/4638/events","html_url":"https://github.com/elastic/logstash/issues/4638","id":131663914,"number":4638,"title":"bin/plugin can not install plugins on CentOS","user":{"login":"Ploy-XIV","id":11490050,"avatar_url":"https://avatars.githubusercontent.com/u/11490050?v=3","gravatar_id":"","url":"https://api.github.com/users/Ploy-XIV","html_url":"https://github.com/Ploy-XIV","followers_url":"https://api.github.com/users/Ploy-XIV/followers","following_url":"https://api.github.com/users/Ploy-XIV/following{/other_user}","gists_url":"https://api.github.com/users/Ploy-XIV/gists{/gist_id}","starred_url":"https://api.github.com/users/Ploy-XIV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ploy-XIV/subscriptions","organizations_url":"https://api.github.com/users/Ploy-XIV/orgs","repos_url":"https://api.github.com/users/Ploy-XIV/repos","events_url":"https://api.github.com/users/Ploy-XIV/events{/privacy}","received_events_url":"https://api.github.com/users/Ploy-XIV/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/plugin%20manager","name":"plugin manager","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-05T14:53:58Z","updated_at":"2016-02-08T17:58:29Z","closed_at":null,"body":"I am unable to get `bin/plugin` to do anything useful other than `list`\r\n\r\nI tried this on a freshly created CentOS 7.1 x64 VM. The commands listed below are literally my entire interaction with this VM:\r\n\r\n**Steps needed to reproduce**\r\n\r\nInstall logstash on CentOS:\r\n\r\n    yum makecache\r\n    yum update\r\n    yum install bash-completion vim java-1.8.0-openjdk-headless\r\n    reboot\r\n    rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch\r\n    vim /etc/yum.repos.d/logstash.repo\r\n    yum makecache\r\n    yum install logstash\r\n    reboot\r\n    cd /opt/logstash/\r\n\r\nThe file `/etc/yum.repos.d/logstash.repo` has the following content:\r\n\r\n    [logstash-2.2]\r\n    name=Logstash repository for 2.2.x packages\r\n    baseurl=http://packages.elastic.co/logstash/2.2/centos\r\n    gpgcheck=1\r\n    gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch\r\n    enabled=1\r\n\r\nThe version of logstash that was installed is `2.2.0`.\r\n\r\nAttempt to install plugins using `bin/plugin` (with/without verification and install from local file):\r\n\r\n    [root@testd logstash]# DATE=`date`; DEBUG=1 bin/plugin install logstash-filter-de_dot; echo $DATE; date                                                                                          \r\n    DEBUG: exec /opt/logstash/vendor/jruby/bin/jruby --1.9 -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Djava.awt.headless=true -J-XX:CMSInitiatingOccupancyFraction=75 -J-XX:+UseCMSInitiatingOccupancyOnly -J-XX:+HeapDumpOnOutOfMemoryError -J-Xmx1g -J-XX:HeapDumpPath=/opt/logstash/heapdump.hprof /opt/logstash/lib/pluginmanager/main.rb install logstash-filter-de_dot\r\n    Validating logstash-filter-de_dot\r\n    ^CFre Feb 5 09:17:49 EST 2016\r\n    Fre Feb  5 09:19:45 EST 2016\r\n    [root@testd logstash]# DATE=`date`; DEBUG=1 bin/plugin install logstash-output-tcp; echo $DATE; date                                                                                             \r\n    DEBUG: exec /opt/logstash/vendor/jruby/bin/jruby --1.9 -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Djava.awt.headless=true -J-XX:CMSInitiatingOccupancyFraction=75 -J-XX:+UseCMSInitiatingOccupancyOnly -J-XX:+HeapDumpOnOutOfMemoryError -J-Xmx1g -J-XX:HeapDumpPath=/opt/logstash/heapdump.hprof /opt/logstash/lib/pluginmanager/main.rb install logstash-output-tcp\r\n    Validating logstash-output-tcp\r\n    ^CFre Feb 5 09:20:05 EST 2016\r\n    Fre Feb  5 09:22:40 EST 2016\r\n    [root@testd logstash]# DATE=`date`; DEBUG=1 bin/plugin install logstash-output-csv; echo $DATE; date                                                                                             \r\n    DEBUG: exec /opt/logstash/vendor/jruby/bin/jruby --1.9 -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Djava.awt.headless=true -J-XX:CMSInitiatingOccupancyFraction=75 -J-XX:+UseCMSInitiatingOccupancyOnly -J-XX:+HeapDumpOnOutOfMemoryError -J-Xmx1g -J-XX:HeapDumpPath=/opt/logstash/heapdump.hprof /opt/logstash/lib/pluginmanager/main.rb install logstash-output-csv\r\n    Validating logstash-output-csv\r\n    ^CFre Feb 5 09:22:49 EST 2016\r\n    Fre Feb  5 09:25:34 EST 2016\r\n    [root@testd logstash]# DATE=`date`; DEBUG=1 bin/plugin install --no-verify logstash-filter-de_dot; echo $DATE; date                                                                              \r\n    DEBUG: exec /opt/logstash/vendor/jruby/bin/jruby --1.9 -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Djava.awt.headless=true -J-XX:CMSInitiatingOccupancyFraction=75 -J-XX:+UseCMSInitiatingOccupancyOnly -J-XX:+HeapDumpOnOutOfMemoryError -J-Xmx1g -J-XX:HeapDumpPath=/opt/logstash/heapdump.hprof /opt/logstash/lib/pluginmanager/main.rb install --no-verify logstash-filter-de_dot\r\n    Installing logstash-filter-de_dot\r\n    ^CFre Feb 5 09:25:51 EST 2016\r\n    Fre Feb  5 09:28:23 EST 2016\r\n    [root@testd logstash]# DATE=`date`; DEBUG=1 bin/plugin install --no-verify logstash-output-tcp; echo $DATE; date                                                                                 \r\n    DEBUG: exec /opt/logstash/vendor/jruby/bin/jruby --1.9 -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Djava.awt.headless=true -J-XX:CMSInitiatingOccupancyFraction=75 -J-XX:+UseCMSInitiatingOccupancyOnly -J-XX:+HeapDumpOnOutOfMemoryError -J-Xmx1g -J-XX:HeapDumpPath=/opt/logstash/heapdump.hprof /opt/logstash/lib/pluginmanager/main.rb install --no-verify logstash-output-tcp\r\n    Installing logstash-output-tcp\r\n    ^CFre Feb 5 09:28:41 EST 2016\r\n    Fre Feb  5 09:31:05 EST 2016\r\n    [root@testd logstash]# DATE=`date`; DEBUG=1 bin/plugin install --local /root/logstash-filter-de_dot-0.1.1.gem; echo $DATE; date                                                                  \r\n    DEBUG: exec /opt/logstash/vendor/jruby/bin/jruby --1.9 -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Djava.awt.headless=true -J-XX:CMSInitiatingOccupancyFraction=75 -J-XX:+UseCMSInitiatingOccupancyOnly -J-XX:+HeapDumpOnOutOfMemoryError -J-Xmx1g -J-XX:HeapDumpPath=/opt/logstash/heapdump.hprof /opt/logstash/lib/pluginmanager/main.rb install --local /root/logstash-filter-de_dot-0.1.1.gem\r\n    Validating /root/logstash-filter-de_dot-0.1.1.gem\r\n    ^CFre Feb 5 09:32:39 EST 2016\r\n    Fre Feb  5 09:34:56 EST 2016\r\n    [root@testd logstash]# DATE=`date`; DEBUG=1 bin/plugin install --local /root/logstash-output-tcp-2.0.2.gem; echo $DATE; date\r\n    DEBUG: exec /opt/logstash/vendor/jruby/bin/jruby --1.9 -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-Djava.awt.headless=true -J-XX:CMSInitiatingOccupancyFraction=75 -J-XX:+UseCMSInitiatingOccupancyOnly -J-XX:+HeapDumpOnOutOfMemoryError -J-Xmx1g -J-XX:HeapDumpPath=/opt/logstash/heapdump.hprof /opt/logstash/lib/pluginmanager/main.rb install --local /root/logstash-output-tcp-2.0.2.gem\r\n    Validating /root/logstash-output-tcp-2.0.2.gem\r\n    ^CFre Feb 5 09:35:09 EST 2016\r\n    Fre Feb  5 09:37:18 EST 2016\r\n\r\n**Expected outcome**\r\n\r\nEach of the executions of `bin/plugin` shown above should install a plugin (if it's not installed already).\r\n\r\n**Actual outcome**\r\n\r\n`plugin` hangs until it is killed for all tried invocations. I picked the plugin names at random, the plugins used are just examples"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/181498476","html_url":"https://github.com/elastic/logstash/issues/4638#issuecomment-181498476","issue_url":"https://api.github.com/repos/elastic/logstash/issues/4638","id":181498476,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T17:58:29Z","updated_at":"2016-02-08T17:58:29Z","body":"Is your server able to access rubygems.org? Is there any firewall settings preventing external network actvity?"}}