You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Michal Fojtik (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/18 11:16:10 UTC

[jira] [Resolved] (DTACLOUD-96) "undefined local variable or method `root_url'" error found in latest deltacloud commit for EC2 setup

     [ https://issues.apache.org/jira/browse/DTACLOUD-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michal Fojtik resolved DTACLOUD-96.
-----------------------------------

    Resolution: Fixed

This should be fixed in r1185526. Can you confirm that Ramesh?
                
> "undefined local variable or method `root_url'" error found in latest deltacloud commit for EC2 setup
> -----------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-96
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-96
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Client (Ruby)
>         Environment: Deltacloud API 0.4.1
> Fedora 15,
> commit c72781d4a3219f51fd1b93ebf6c5ef4cfb85aadc
>            Reporter: Ramesh A
>            Assignee: Michal Fojtik
>            Priority: Blocker
>         Attachments: root_url-error.png
>
>
> "undefined local variable or method `root_url' " error is noticed in the latest deltacloud build (commit c72781d4a3219f51fd1b93ebf6c5ef4cfb85aadc) when setup for EC2
> This is a blocker issue, due to this, we are unable to access any of the module links in the Deltacloud UI pages
> Reproduction Steps:
> ===============
> 1. Install the latest build and point to ec2 provider
> 2. Access any module link (say Instances, Image, etc) from deltacloud UI.
> Expected Result:
> =============
> Should navigate to the respective module
> Actual Result:
> ===========
> 1. Displays blank page in the UI or 500 - Internal Server Error (refer to the "root_url-error.png" for further information)
> 2. "undefined local variable or method `root_url' " error is noticed in the console.  
> Please find the below stack trace for further information
> Stack Trace:
> ==========
> [root@cavenger server]# ./bin/deltacloudd -i ec2 -r cavenger.lab.eng.pnq.redhat.com -p 3003
> Starting Deltacloud API :: ec2 :: http://cavenger.lab.eng.pnq.redhat.com:3003/api
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:105: warning: already initialized constant HEX
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:107: warning: already initialized constant TO_REMEMBER
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:108: warning: already initialized constant ASCII
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/errors.rb:128: warning: already initialized constant DEFAULT_CLOSE_ON_4XX_PROBABILITY
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/parsers.rb:47: warning: already initialized constant DEFAULT_XML_LIBRARY
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/awsbase.rb:66: warning: already initialized constant AMAZON_PROBLEMS
> /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/awsbase.rb:86: warning: already initialized constant DEFAULT_SIGNATURE_VERSION
> >> Thin web server (v1.2.11 codename Bat-Shit Crazy)
> >> Debugging ON
> >> Maximum connections set to 1024
> >> Listening on cavenger.lab.eng.pnq.redhat.com:3003, CTRL+C to stop
> NameError - undefined local variable or method `root_url' for #<Sinatra::Application:0x7f14815d45c0>:
> 	./bin/../lib/deltacloud/server.rb:91:in `GET /'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `compile!'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `[]'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in `process_route'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `catch'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `route!'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `each'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'
> 	./bin/../lib/sinatra/rack_date.rb:31:in `call'
> 	./bin/../lib/sinatra/rack_accept.rb:149:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/nulllogger.rb:9:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/head.rb:9:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/showexceptions.rb:21:in `call'
> 	./bin/../lib/sinatra/rack_driver_select.rb:45:in `call'
> 	./bin/../lib/sinatra/rack_matrix_params.rb:102:in `call'
> 	./bin/../lib/sinatra/rack_runtime.rb:36:in `call'
> 	./bin/../lib/sinatra/rack_etag.rb:41:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.4/lib/rack/accept/context.rb:22:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/logger.rb:15:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/commonlogger.rb:20:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/head.rb:9:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/methodoverride.rb:24:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:in `synchronize'
> 	/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:in `pre_process'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82: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.11/lib/thin/connection.rb:54:in `process'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/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.11/lib/thin/backends/base.rb:61:in `start'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `send'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
> 	/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
> 	./bin/deltacloudd:226
> [WARN: /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:732:in `options']: "Sinatra::Base#options is deprecated and will be removed, use #settings instead."
> [WARN: /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:732:in `options']: "Sinatra::Base#options is deprecated and will be removed, use #settings instead."
> 10.11.9.28 - - [18/Oct/2011 13:36:19] "GET / HTTP/1.1" 500 79308 0.4427
> 10.11.9.28 - - [18/Oct/2011 13:36:20] "GET /stylesheets/jquery.mobile-1.0rc1.min.css HTTP/1.1" 200 47251 0.0125
> 10.11.9.28 - - [18/Oct/2011 13:36:20] "GET /stylesheets/new.css HTTP/1.1" 200 1401 0.0024
> 10.11.9.28 - - [18/Oct/2011 13:36:20] "GET /javascripts/jquery.min.js HTTP/1.1" 200 91556 0.0024
> 10.11.9.28 - - [18/Oct/2011 13:36:20] "GET /javascripts/application.js HTTP/1.1" 200 5410 0.0023
> 10.11.9.28 - - [18/Oct/2011 13:36:20] "GET /javascripts/jquery.mobile-1.0rc1.min.js HTTP/1.1" 200 78678 0.0025
> 10.11.9.28 - - [18/Oct/2011 13:36:25] "GET /stylesheets/images/ajax-loader.png HTTP/1.1" 200 503 0.0034
> 10.11.9.28 - - [18/Oct/2011 13:36:25] "GET /stylesheets/images/icons-18-white.png HTTP/1.1" 200 2200 0.0023
> 10.11.9.28 - - [18/Oct/2011 13:36:25] "GET /favicon.ico HTTP/1.1" 200 473 0.0022

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira