You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by André Monteiro <an...@gmail.com> on 2011/07/06 16:52:08 UTC

Re: Backend error

Hello,



I'm getting this error again on Deltacloud:



ec2.us-east-1.amazonaws.com temporarily unavailable: (Connection reset by
peer - SSL_connect)



Request URL
    /api/instances
Parameters
    {}
Code
    502
Cause
    Aws::AwsError
Details


/usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:346:in
`request'

/usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:336:in
`loop'

/usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:336:in
`request'

/usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:557:in
`request_info_impl'
                  /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

/usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/awsbase/benchmark_fix.rb:30:in
`add!'

/usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:557:in
`request_info_impl'

/usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ec2/ec2.rb:177:in `request_info'

/usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:586:in
`request_cache_or_info'

/usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ec2/ec2.rb:432:in
`describe_instances'
                  ././lib/deltacloud/drivers/ec2/ec2_driver.rb:175:in
`instances'
                  ././lib/deltacloud/base_driver/base_driver.rb:238:in
`call'
                  ././lib/deltacloud/base_driver/base_driver.rb:238:in
`safely'
                  ././lib/deltacloud/drivers/ec2/ec2_driver.rb:174:in
`instances'
                  ././lib/deltacloud/helpers/application_helper.rb:80:in
`send'
                  ././lib/deltacloud/helpers/application_helper.rb:80:in
`filter_all'
                  /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
                  ././lib/deltacloud/helpers/application_helper.rb:79:in
`filter_all'
                  ././server.rb:383
                  ././lib/sinatra/rabbit.rb:104:in `instance_eval'
                  ././lib/sinatra/rabbit.rb:104:in `GET /api/instances'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `call'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `route'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
`instance_eval'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
`route_eval'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in `route!'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `catch'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `route!'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `route!'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in
`dispatch!'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
`instance_eval'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `catch'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call'
                  ././lib/sinatra/rack_driver_select.rb:45:in `call'
                  ././lib/sinatra/rack_matrix_params.rb:80:in `call'
                  ././lib/sinatra/rack_runtime.rb:36:in `call'
                  ././lib/sinatra/rack_etag.rb:42:in `call'

/usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.3/lib/rack/accept/context.rb:22:in
`call'

/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in
`call'

/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in
`synchronize'

/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:24:in `call'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:33:in `log'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:24:in `call'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in
`pre_process'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `catch'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in
`pre_process'

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
`call'

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
`spawn_threadpool'

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
`initialize'

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
`new'

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
`spawn_threadpool'

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in
`defer'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:54:in
`process'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:42:in
`receive_data'

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
`run_machine'

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
`run'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in
`start'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in `start'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/controllers/controller.rb:80:in
`start'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in `send'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in
`run_command'

/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:143:in `run!'
                  /usr/share/deltacloud-core/bin/deltacloudd:124
                  /usr/bin/deltacloudd:5:in `load'
                  /usr/bin/deltacloudd:5


I'm using Deltacloud on Aeolus (doesn't matter, standalone not working
either). I'm behind a campus proxy, but a few weeks ago it worked, with the
help of IRC, by replacing http_connection with the gem with proxy support
and uninstalling http_connection rpms...

Now I've made an yum update (with aeolus, not deltacloud directly) to the
testing repository and it doesn't work again.



Additional info:

[andre@ieeta-cloud ~]$ gem list

*** LOCAL GEMS ***

actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
aeolus-cli (0.0.1)
amazon-ec2 (0.9.15)
authlogic (2.1.6)
aws (2.5.3)
builder (2.1.2)
compass (0.10.4)
compass-960-plugin (0.9.13)
cucumber (0.9.0)
curb (0.7.10)
daemons (1.0.10)
delayed_job (2.0.6)
deltacloud-client (0.1.0)
diff-lcs (1.1.2)
escape (0.0.4)
eventmachine (0.12.10)
ffi (0.6.3)
gherkin (2.2.4)
haml (3.0.18)
http_connection (1.4.1)
image_factory_connector (0.0.3, 0.0.2)
image_factory_console (0.4.0)
json (1.4.3)
mime-types (1.16)
net-scp (1.0.4)
net-ssh (2.0.23)
nokogiri (1.4.3.1)
parseconfig (0.5.2)
pr_geohash (1.0.0)
rack (1.1.0)
rack-accept (0.4.3)
rack-restful_submit (1.1.2)
rack-test (0.5.4)
rails (2.3.8)
rake (0.8.7)
rb-inotify (0.8.1)
rcov (0.9.8)
rerun (0.5.2)
rest-client (1.6.1)
rsolr (0.12.1)
rspec (1.3.0)
simple-navigation (3.0.0)
sinatra (1.0)
sunspot (1.2.1)
sunspot_rails (1.2.1)
term-ansicolor (1.0.5)
thin (1.2.5)
trollop (1.16.2)
typhoeus (0.1.31)
uuidtools (2.1.1)
will_paginate (2.3.14)
xml-simple (1.0.12)



[andre@ieeta-cloud ~]$ rpm -qi http_connection
package http_connection is not installed
[andre@ieeta-cloud ~]$ rpm -qi right_http_connection
package right_http_connection is not installed
[andre@ieeta-cloud ~]$ rpm -qi deltacloud-core
Name        : deltacloud-core              Relocations: (not relocatable)
Version     : 0.3.0                             Vendor: Fedora Project
Release     : 5.fc14                        Build Date: Fri 20 May 2011
08:12:04 AM WEST
Install Date: Fri 27 May 2011 10:25:52 AM WEST      Build Host:
x86-05.phx2.fedoraproject.org
...

[andre@ieeta-cloud ~]$ vi
/usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb


 # Support HTTP and HTTPS proxies
      if @protocol == "https" && ENV['https_proxy']
...

[andre@ieeta-cloud ~]$ vi ~/.bashrc

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions
export http_proxy="http://proxy.ua.pt:3128"
export https_proxy="http://proxy.ua.pt:3128"
export ftp_proxy="http://proxy.ua.pt:3128"
export OCCI_URL="http://cloudpt.housing.ua.pt:4569"
export PATH=$PATH:"/usr/lib64/openmpi/bin"
export LD_LIBRARY_PATH="/usr/lib64/openmpi/lib"




Can you help me again?


--
André Monteiro

Re: Backend error

Posted by André Monteiro <an...@gmail.com>.
Hello Michael,

Yes, I'm still using the same code from github, did an yum update but
checked the file and it is still the same.
It can be local proxy problem... How can I check if it is problem from the
proxy server?

--
André Monteiro




On Thu, Jul 7, 2011 at 10:23, Michal Fojtik <mf...@redhat.com> wrote:

> On Jul 6, 2011, at 4:52 PM, André Monteiro wrote:
>
> Hi Andre,
>
> are you still using my branch of http_connection from github?
> If yes, it should work (just tested it against squid) with https_proxy.
>
>  -- Michal
>
>
> > Hello,
> >
> >
> >
> > I'm getting this error again on Deltacloud:
> >
> >
> >
> > ec2.us-east-1.amazonaws.com temporarily unavailable: (Connection reset
> by
> > peer - SSL_connect)
> >
> >
> >
> > Request URL
> >    /api/instances
> > Parameters
> >    {}
> > Code
> >    502
> > Cause
> >    Aws::AwsError
> > Details
> >
> >
> >
> /usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:346:in
> > `request'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:336:in
> > `loop'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:336:in
> > `request'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:557:in
> > `request_info_impl'
> >                  /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
> >
> > /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/awsbase/benchmark_fix.rb:30:in
> > `add!'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:557:in
> > `request_info_impl'
> >
> > /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ec2/ec2.rb:177:in
> `request_info'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:586:in
> > `request_cache_or_info'
> >
> > /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ec2/ec2.rb:432:in
> > `describe_instances'
> >                  ././lib/deltacloud/drivers/ec2/ec2_driver.rb:175:in
> > `instances'
> >                  ././lib/deltacloud/base_driver/base_driver.rb:238:in
> > `call'
> >                  ././lib/deltacloud/base_driver/base_driver.rb:238:in
> > `safely'
> >                  ././lib/deltacloud/drivers/ec2/ec2_driver.rb:174:in
> > `instances'
> >                  ././lib/deltacloud/helpers/application_helper.rb:80:in
> > `send'
> >                  ././lib/deltacloud/helpers/application_helper.rb:80:in
> > `filter_all'
> >                  /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
> >                  ././lib/deltacloud/helpers/application_helper.rb:79:in
> > `filter_all'
> >                  ././server.rb:383
> >                  ././lib/sinatra/rabbit.rb:104:in `instance_eval'
> >                  ././lib/sinatra/rabbit.rb:104:in `GET /api/instances'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `call'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in
> `route'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
> > `instance_eval'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
> > `route_eval'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in
> `route!'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in
> `catch'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in
> `route!'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in
> `route!'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in
> > `dispatch!'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in
> `call!'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> > `instance_eval'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `invoke'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `catch'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `invoke'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in
> `call!'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call'
> >                  ././lib/sinatra/rack_driver_select.rb:45:in `call'
> >                  ././lib/sinatra/rack_matrix_params.rb:80:in `call'
> >                  ././lib/sinatra/rack_runtime.rb:36:in `call'
> >                  ././lib/sinatra/rack_etag.rb:42:in `call'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.3/lib/rack/accept/context.rb:22:in
> > `call'
> >
> > /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in
> > `call'
> >
> > /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in
> `call'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in
> > `synchronize'
> >
> > /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:24:in `call'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:33:in `log'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:24:in `call'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in
> > `pre_process'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in
> `catch'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in
> > `pre_process'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
> > `call'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
> > `spawn_threadpool'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> > `initialize'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> > `new'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> > `spawn_threadpool'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in
> > `defer'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:54:in
> > `process'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:42:in
> > `receive_data'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> > `run_machine'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> > `run'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in
> > `start'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in `start'
> >
> >
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/controllers/controller.rb:80:in
> > `start'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in `send'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in
> > `run_command'
> >
> > /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:143:in `run!'
> >                  /usr/share/deltacloud-core/bin/deltacloudd:124
> >                  /usr/bin/deltacloudd:5:in `load'
> >                  /usr/bin/deltacloudd:5
> >
> >
> > I'm using Deltacloud on Aeolus (doesn't matter, standalone not working
> > either). I'm behind a campus proxy, but a few weeks ago it worked, with
> the
> > help of IRC, by replacing http_connection with the gem with proxy support
> > and uninstalling http_connection rpms...
> >
> > Now I've made an yum update (with aeolus, not deltacloud directly) to the
> > testing repository and it doesn't work again.
> >
> >
> >
> > Additional info:
> >
> > [andre@ieeta-cloud ~]$ gem list
> >
> > *** LOCAL GEMS ***
> >
> > actionmailer (2.3.8)
> > actionpack (2.3.8)
> > activerecord (2.3.8)
> > activeresource (2.3.8)
> > activesupport (2.3.8)
> > aeolus-cli (0.0.1)
> > amazon-ec2 (0.9.15)
> > authlogic (2.1.6)
> > aws (2.5.3)
> > builder (2.1.2)
> > compass (0.10.4)
> > compass-960-plugin (0.9.13)
> > cucumber (0.9.0)
> > curb (0.7.10)
> > daemons (1.0.10)
> > delayed_job (2.0.6)
> > deltacloud-client (0.1.0)
> > diff-lcs (1.1.2)
> > escape (0.0.4)
> > eventmachine (0.12.10)
> > ffi (0.6.3)
> > gherkin (2.2.4)
> > haml (3.0.18)
> > http_connection (1.4.1)
> > image_factory_connector (0.0.3, 0.0.2)
> > image_factory_console (0.4.0)
> > json (1.4.3)
> > mime-types (1.16)
> > net-scp (1.0.4)
> > net-ssh (2.0.23)
> > nokogiri (1.4.3.1)
> > parseconfig (0.5.2)
> > pr_geohash (1.0.0)
> > rack (1.1.0)
> > rack-accept (0.4.3)
> > rack-restful_submit (1.1.2)
> > rack-test (0.5.4)
> > rails (2.3.8)
> > rake (0.8.7)
> > rb-inotify (0.8.1)
> > rcov (0.9.8)
> > rerun (0.5.2)
> > rest-client (1.6.1)
> > rsolr (0.12.1)
> > rspec (1.3.0)
> > simple-navigation (3.0.0)
> > sinatra (1.0)
> > sunspot (1.2.1)
> > sunspot_rails (1.2.1)
> > term-ansicolor (1.0.5)
> > thin (1.2.5)
> > trollop (1.16.2)
> > typhoeus (0.1.31)
> > uuidtools (2.1.1)
> > will_paginate (2.3.14)
> > xml-simple (1.0.12)
> >
> >
> >
> > [andre@ieeta-cloud ~]$ rpm -qi http_connection
> > package http_connection is not installed
> > [andre@ieeta-cloud ~]$ rpm -qi right_http_connection
> > package right_http_connection is not installed
> > [andre@ieeta-cloud ~]$ rpm -qi deltacloud-core
> > Name        : deltacloud-core              Relocations: (not relocatable)
> > Version     : 0.3.0                             Vendor: Fedora Project
> > Release     : 5.fc14                        Build Date: Fri 20 May 2011
> > 08:12:04 AM WEST
> > Install Date: Fri 27 May 2011 10:25:52 AM WEST      Build Host:
> > x86-05.phx2.fedoraproject.org
> > ...
> >
> > [andre@ieeta-cloud ~]$ vi
> >
> /usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb
> >
> >
> > # Support HTTP and HTTPS proxies
> >      if @protocol == "https" && ENV['https_proxy']
> > ...
> >
> > [andre@ieeta-cloud ~]$ vi ~/.bashrc
> >
> > # .bashrc
> >
> > # User specific aliases and functions
> >
> > alias rm='rm -i'
> > alias cp='cp -i'
> > alias mv='mv -i'
> >
> > # Source global definitions
> > if [ -f /etc/bashrc ]; then
> >        . /etc/bashrc
> > fi
> >
> > # User specific aliases and functions
> > export http_proxy="http://proxy.ua.pt:3128"
> > export https_proxy="http://proxy.ua.pt:3128"
> > export ftp_proxy="http://proxy.ua.pt:3128"
> > export OCCI_URL="http://cloudpt.housing.ua.pt:4569"
> > export PATH=$PATH:"/usr/lib64/openmpi/bin"
> > export LD_LIBRARY_PATH="/usr/lib64/openmpi/lib"
> >
> >
> >
> >
> > Can you help me again?
> >
> >
> > --
> > André Monteiro
>
> ------------------------------------------------------
> Michal Fojtik, mfojtik@redhat.com
> Deltacloud API: http://deltacloud.org
>
>

Re: Backend error

Posted by Michal Fojtik <mf...@redhat.com>.
On Jul 6, 2011, at 4:52 PM, André Monteiro wrote:

Hi Andre,

are you still using my branch of http_connection from github?
If yes, it should work (just tested it against squid) with https_proxy.

  -- Michal


> Hello,
> 
> 
> 
> I'm getting this error again on Deltacloud:
> 
> 
> 
> ec2.us-east-1.amazonaws.com temporarily unavailable: (Connection reset by
> peer - SSL_connect)
> 
> 
> 
> Request URL
>    /api/instances
> Parameters
>    {}
> Code
>    502
> Cause
>    Aws::AwsError
> Details
> 
> 
> /usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:346:in
> `request'
> 
> /usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:336:in
> `loop'
> 
> /usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb:336:in
> `request'
> 
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:557:in
> `request_info_impl'
>                  /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
> 
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/awsbase/benchmark_fix.rb:30:in
> `add!'
> 
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:557:in
> `request_info_impl'
> 
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ec2/ec2.rb:177:in `request_info'
> 
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ses/../awsbase/awsbase.rb:586:in
> `request_cache_or_info'
> 
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.3/lib/ec2/ec2.rb:432:in
> `describe_instances'
>                  ././lib/deltacloud/drivers/ec2/ec2_driver.rb:175:in
> `instances'
>                  ././lib/deltacloud/base_driver/base_driver.rb:238:in
> `call'
>                  ././lib/deltacloud/base_driver/base_driver.rb:238:in
> `safely'
>                  ././lib/deltacloud/drivers/ec2/ec2_driver.rb:174:in
> `instances'
>                  ././lib/deltacloud/helpers/application_helper.rb:80:in
> `send'
>                  ././lib/deltacloud/helpers/application_helper.rb:80:in
> `filter_all'
>                  /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
>                  ././lib/deltacloud/helpers/application_helper.rb:79:in
> `filter_all'
>                  ././server.rb:383
>                  ././lib/sinatra/rabbit.rb:104:in `instance_eval'
>                  ././lib/sinatra/rabbit.rb:104:in `GET /api/instances'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `call'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `route'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
> `instance_eval'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
> `route_eval'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in `route!'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `catch'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `route!'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `route!'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in
> `dispatch!'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `instance_eval'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `catch'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call'
>                  ././lib/sinatra/rack_driver_select.rb:45:in `call'
>                  ././lib/sinatra/rack_matrix_params.rb:80:in `call'
>                  ././lib/sinatra/rack_runtime.rb:36:in `call'
>                  ././lib/sinatra/rack_etag.rb:42:in `call'
> 
> /usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.3/lib/rack/accept/context.rb:22:in
> `call'
> 
> /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in
> `call'
> 
> /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in
> `synchronize'
> 
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:24:in `call'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:33:in `log'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:24:in `call'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in
> `pre_process'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `catch'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in
> `pre_process'
> 
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
> `call'
> 
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
> `spawn_threadpool'
> 
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> `initialize'
> 
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> `new'
> 
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> `spawn_threadpool'
> 
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in
> `defer'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:54:in
> `process'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:42:in
> `receive_data'
> 
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> `run_machine'
> 
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> `run'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in
> `start'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in `start'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/controllers/controller.rb:80:in
> `start'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in `send'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in
> `run_command'
> 
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:143:in `run!'
>                  /usr/share/deltacloud-core/bin/deltacloudd:124
>                  /usr/bin/deltacloudd:5:in `load'
>                  /usr/bin/deltacloudd:5
> 
> 
> I'm using Deltacloud on Aeolus (doesn't matter, standalone not working
> either). I'm behind a campus proxy, but a few weeks ago it worked, with the
> help of IRC, by replacing http_connection with the gem with proxy support
> and uninstalling http_connection rpms...
> 
> Now I've made an yum update (with aeolus, not deltacloud directly) to the
> testing repository and it doesn't work again.
> 
> 
> 
> Additional info:
> 
> [andre@ieeta-cloud ~]$ gem list
> 
> *** LOCAL GEMS ***
> 
> actionmailer (2.3.8)
> actionpack (2.3.8)
> activerecord (2.3.8)
> activeresource (2.3.8)
> activesupport (2.3.8)
> aeolus-cli (0.0.1)
> amazon-ec2 (0.9.15)
> authlogic (2.1.6)
> aws (2.5.3)
> builder (2.1.2)
> compass (0.10.4)
> compass-960-plugin (0.9.13)
> cucumber (0.9.0)
> curb (0.7.10)
> daemons (1.0.10)
> delayed_job (2.0.6)
> deltacloud-client (0.1.0)
> diff-lcs (1.1.2)
> escape (0.0.4)
> eventmachine (0.12.10)
> ffi (0.6.3)
> gherkin (2.2.4)
> haml (3.0.18)
> http_connection (1.4.1)
> image_factory_connector (0.0.3, 0.0.2)
> image_factory_console (0.4.0)
> json (1.4.3)
> mime-types (1.16)
> net-scp (1.0.4)
> net-ssh (2.0.23)
> nokogiri (1.4.3.1)
> parseconfig (0.5.2)
> pr_geohash (1.0.0)
> rack (1.1.0)
> rack-accept (0.4.3)
> rack-restful_submit (1.1.2)
> rack-test (0.5.4)
> rails (2.3.8)
> rake (0.8.7)
> rb-inotify (0.8.1)
> rcov (0.9.8)
> rerun (0.5.2)
> rest-client (1.6.1)
> rsolr (0.12.1)
> rspec (1.3.0)
> simple-navigation (3.0.0)
> sinatra (1.0)
> sunspot (1.2.1)
> sunspot_rails (1.2.1)
> term-ansicolor (1.0.5)
> thin (1.2.5)
> trollop (1.16.2)
> typhoeus (0.1.31)
> uuidtools (2.1.1)
> will_paginate (2.3.14)
> xml-simple (1.0.12)
> 
> 
> 
> [andre@ieeta-cloud ~]$ rpm -qi http_connection
> package http_connection is not installed
> [andre@ieeta-cloud ~]$ rpm -qi right_http_connection
> package right_http_connection is not installed
> [andre@ieeta-cloud ~]$ rpm -qi deltacloud-core
> Name        : deltacloud-core              Relocations: (not relocatable)
> Version     : 0.3.0                             Vendor: Fedora Project
> Release     : 5.fc14                        Build Date: Fri 20 May 2011
> 08:12:04 AM WEST
> Install Date: Fri 27 May 2011 10:25:52 AM WEST      Build Host:
> x86-05.phx2.fedoraproject.org
> ...
> 
> [andre@ieeta-cloud ~]$ vi
> /usr/lib/ruby/gems/1.8/gems/http_connection-1.4.1/lib/right_http_connection.rb
> 
> 
> # Support HTTP and HTTPS proxies
>      if @protocol == "https" && ENV['https_proxy']
> ...
> 
> [andre@ieeta-cloud ~]$ vi ~/.bashrc
> 
> # .bashrc
> 
> # User specific aliases and functions
> 
> alias rm='rm -i'
> alias cp='cp -i'
> alias mv='mv -i'
> 
> # Source global definitions
> if [ -f /etc/bashrc ]; then
>        . /etc/bashrc
> fi
> 
> # User specific aliases and functions
> export http_proxy="http://proxy.ua.pt:3128"
> export https_proxy="http://proxy.ua.pt:3128"
> export ftp_proxy="http://proxy.ua.pt:3128"
> export OCCI_URL="http://cloudpt.housing.ua.pt:4569"
> export PATH=$PATH:"/usr/lib64/openmpi/bin"
> export LD_LIBRARY_PATH="/usr/lib64/openmpi/lib"
> 
> 
> 
> 
> Can you help me again?
> 
> 
> --
> André Monteiro

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org