installation: login broken?

47 views
Skip to first unread message

clayton

unread,
Nov 10, 2010, 12:40:41 AM11/10/10
to Gitorious
Hi,

This is my first attempt at a gitorious install, and unfortunately I
am not so familiar with Ruby....

This is the installation guide I followed, more or less to the letter:
http://gitorious.org/gitorious/pages/UbuntuInstallation

The gitorious landing page is now displaying, but when I click on the
"Login" link I am greeted with a page that says: "We are sorry, but
something went wrong" soon followed by the following e-mail that looks
to my untrained Ruby eye like a syntax error. Could it be? Any
suggestions?:

Subject: [ERROR] sessions#new (ActionView::TemplateError) "undefined
method `call' for \"Email\":String"
Date: Wed, 10 Nov 2010 05:26:53 +0000

A ActionView::TemplateError occurred in sessions#new:

undefined method `call' for "Email":String
On line #37 of app/views/sessions/new.html.erb

34: <div id="regular_login_fields">
35: <ul>
36: <li>
37: <label for="email"><%=
t("views.sessions.label").call(self) %></label>
38: <%= text_field_tag 'email', params[:email] %>
39: </li>
40: <li>

app/views/sessions/new.html.erb:37
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `call'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `capture'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
129:in `with_output_buffer'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:
36:in `capture'
vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:
466:in `form_tag_in_block'
vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:
39:in `form_tag'
app/views/sessions/new.html.erb:27
vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `send'
vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
`render'
vendor/rails/actionpack/lib/action_view/base.rb:306:in
`with_template'
vendor/rails/actionpack/lib/action_view/renderable.rb:30:in
`render'
vendor/rails/actionpack/lib/action_view/template.rb:205:in
`render_template'
vendor/rails/actionpack/lib/action_view/base.rb:265:in `render'
vendor/rails/actionpack/lib/action_view/base.rb:348:in
`_render_with_layout'
vendor/rails/actionpack/lib/action_view/base.rb:262:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1250:in
`render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:945:in
`render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
51:in `render'
vendor/rails/activesupport/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
vendor/rails/activesupport/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
51:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1326:in
`default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1332:in
`perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
`call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
vendor/rails/activesupport/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
vendor/rails/activesupport/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash'
vendor/rails/actionpack/lib/action_controller/flash.rb:146:in
`perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:532:in
`send'
vendor/rails/actionpack/lib/action_controller/base.rb:532:in
`process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
`process'
vendor/rails/actionpack/lib/action_controller/base.rb:391:in
`process'
vendor/rails/actionpack/lib/action_controller/base.rb:386:in
`call'
vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:
437:in `call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in
`dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in
`_call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130
vendor/rails/actionpack/lib/action_controller/string_coercion.rb:
25:in `call'
vendor/rails/actionpack/lib/action_controller/string_coercion.rb:
25:in `call'
rack (1.0.1) lib/rack/head.rb:9:in `call'
rack (1.0.1) lib/rack/methodoverride.rb:24:in `call'
vendor/rails/actionpack/lib/action_controller/params_parser.rb:
15:in `call'
vendor/rails/railties/lib/rails/rack/metal.rb:47:in `call'
vendor/rails/actionpack/lib/action_controller/session/
abstract_store.rb:122:in `call'
vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in
`call'
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/query_cache.rb:34:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in
`cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in
`call'
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_pool.rb:361:in `call'
vendor/rails/activesupport/lib/active_support/cache/strategy/
local_cache.rb:24:in `call'
vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in
`call'
rack (1.0.1) lib/rack/lock.rb:11:in `call'
rack (1.0.1) lib/rack/lock.rb:11:in `synchronize'
rack (1.0.1) lib/rack/lock.rb:11:in `call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in
`call'
passenger (3.0.0) lib/phusion_passenger/rack/request_handler.rb:
96:in `process_request'
passenger (3.0.0) lib/phusion_passenger/
abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.0) lib/phusion_passenger/
abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:321:in `start_request_handler'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:275:in `send'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.0) lib/phusion_passenger/utils.rb:479:in
`safe_fork'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in
`__send__'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:180:in
`start'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:149:in `start'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application'
passenger (3.0.0) lib/phusion_passenger/
abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application'
passenger (3.0.0) lib/phusion_passenger/
abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.0) lib/phusion_passenger/
abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in
`__send__'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
passenger (3.0.0) helper-scripts/passenger-spawn-server:99

-------------------------------
Request:
-------------------------------

* URL : https://repo.odeskps.com/login
* IP address: 114.249.194.209
* Parameters: {"action"=>"new", "controller"=>"sessions"}
* Rails root: /var/www/gitorious

-------------------------------
Session:
-------------------------------

* session id: nil
* data: nil

-------------------------------
Environment:
-------------------------------

* DOCUMENT_ROOT : /var/www/gitorious/
public
* HTTPS : on
* HTTP_ACCEPT : text/
html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
* HTTP_ACCEPT_CHARSET :
ISO-8859-1,utf-8;q=0.7,*;q=0.7
* HTTP_ACCEPT_ENCODING : gzip,deflate
* HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.5
* HTTP_CONNECTION : keep-alive
* HTTP_COOKIE :
_gitorious_sess=6bc74458732a4993f3a5b5cd8aaafcd3
* HTTP_HOST : repo.odeskps.com
* HTTP_KEEP_ALIVE : 300
* HTTP_REFERER : http://repo.odeskps.com/
* HTTP_USER_AGENT : Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.5.15 (like
Firefox/3.5.15)
* PASSENGER_CONNECT_PASSWORD : [FILTERED]
* PATH_INFO : /login
* QUERY_STRING :
* REMOTE_ADDR : 114.249.194.209
* REMOTE_PORT : 39735
* REQUEST_METHOD : GET
* REQUEST_URI : /login
* SCRIPT_NAME :
* SERVER_ADDR : 10.206.109.28
* SERVER_ADMIN : [no address given]
* SERVER_NAME : repo.odeskps.com
* SERVER_PORT : 443
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : Apache/2.2.14
(Ubuntu)
* SSL_TLS_SNI : repo.odeskps.com
* _ : _
* action_controller.request.path_parameters :
actionnewcontrollersessions
* action_controller.request.query_parameters :
* action_controller.request.request_parameters:
* action_controller.rescue.request :
#<ActionController::Request:0xb533bf20>
* action_controller.rescue.response :
#<ActionController::Response:0xb533bf0c>
* rack.errors : #<IO:0xb74f4554>
* rack.input :
#<PhusionPassenger::Utils::RewindableInput:0xb533df3c>
* rack.multiprocess : true
* rack.multithread : false
* rack.request.cookie_hash :
_gitorious_sess6bc74458732a4993f3a5b5cd8aaafcd3
* rack.request.cookie_string :
_gitorious_sess=6bc74458732a4993f3a5b5cd8aaafcd3
* rack.request.query_hash :
* rack.request.query_string :
* rack.run_once : false
* rack.session :
* rack.session.options :
httponlytruesecurefalsecookie_onlytruekey_gitorious_sessdomain.repo.odeskps.comsecretsssshtid6bc74458732a4993f3a5b5cd8aaafcd3path/
expire_after1814400
* rack.session.record :
#<ActiveRecord::SessionStore::Session:0xb533a814>
* rack.url_scheme : https
* rack.version : 10

* Process: 9327
* Server : domU-12-31-39-00-6A-32

-------------------------------
Backtrace:
-------------------------------

On line #37 of app/views/sessions/new.html.erb

34: <div id="regular_login_fields">
35: <ul>
36: <li>
37: <label for="email"><%=
t("views.sessions.label").call(self) %></label>
38: <%= text_field_tag 'email', params[:email] %>
39: </li>
40: <li>

app/views/sessions/new.html.erb:37
vendor/rails/actionpack/lib/action_view/helpers/
capture_helper.rb:36:in `call'
vendor/rails/actionpack/lib/action_view/helpers/
capture_helper.rb:36:in `capture'
vendor/rails/actionpack/lib/action_view/helpers/
capture_helper.rb:129:in `with_output_buffer'
vendor/rails/actionpack/lib/action_view/helpers/
capture_helper.rb:36:in `capture'
vendor/rails/actionpack/lib/action_view/helpers/
form_tag_helper.rb:466:in `form_tag_in_block'
vendor/rails/actionpack/lib/action_view/helpers/
form_tag_helper.rb:39:in `form_tag'
app/views/sessions/new.html.erb:27
vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
`send'
vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
`render'
vendor/rails/actionpack/lib/action_view/base.rb:306:in
`with_template'
vendor/rails/actionpack/lib/action_view/renderable.rb:30:in
`render'
vendor/rails/actionpack/lib/action_view/template.rb:205:in
`render_template'
vendor/rails/actionpack/lib/action_view/base.rb:265:in `render'
vendor/rails/actionpack/lib/action_view/base.rb:348:in
`_render_with_layout'
vendor/rails/actionpack/lib/action_view/base.rb:262:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1250:in
`render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:945:in
`render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
51:in `render'
vendor/rails/activesupport/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
vendor/rails/activesupport/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
51:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1326:in
`default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1332:in
`perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
`call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
vendor/rails/activesupport/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
vendor/rails/activesupport/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash'
vendor/rails/actionpack/lib/action_controller/flash.rb:146:in
`perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:532:in
`send'
vendor/rails/actionpack/lib/action_controller/base.rb:532:in
`process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
`process'
vendor/rails/actionpack/lib/action_controller/base.rb:391:in
`process'
vendor/rails/actionpack/lib/action_controller/base.rb:386:in
`call'
vendor/rails/actionpack/lib/action_controller/routing/
route_set.rb:437:in `call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
87:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
121:in `_call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130
vendor/rails/actionpack/lib/action_controller/string_coercion.rb:
25:in `call'
vendor/rails/actionpack/lib/action_controller/string_coercion.rb:
25:in `call'
rack (1.0.1) lib/rack/head.rb:9:in `call'
rack (1.0.1) lib/rack/methodoverride.rb:24:in `call'
vendor/rails/actionpack/lib/action_controller/params_parser.rb:
15:in `call'
vendor/rails/railties/lib/rails/rack/metal.rb:47:in `call'
vendor/rails/actionpack/lib/action_controller/session/
abstract_store.rb:122:in `call'
vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in
`call'
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/query_cache.rb:34:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in
`cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in
`call'
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/connection_pool.rb:361:in `call'
vendor/rails/activesupport/lib/active_support/cache/strategy/
local_cache.rb:24:in `call'
vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in
`call'
rack (1.0.1) lib/rack/lock.rb:11:in `call'
rack (1.0.1) lib/rack/lock.rb:11:in `synchronize'
rack (1.0.1) lib/rack/lock.rb:11:in `call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
106:in `call'
passenger (3.0.0) lib/phusion_passenger/rack/request_handler.rb:
96:in `process_request'
passenger (3.0.0) lib/phusion_passenger/
abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.0) lib/phusion_passenger/
abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:321:in `start_request_handler'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:275:in `send'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.0) lib/phusion_passenger/utils.rb:479:in
`safe_fork'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:
357:in `__send__'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:
357:in `server_main_loop'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:
206:in `start_synchronously'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:
180:in `start'
passenger (3.0.0) lib/phusion_passenger/classic_rails/
application_spawner.rb:149:in `start'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application'
passenger (3.0.0) lib/phusion_passenger/
abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application'
passenger (3.0.0) lib/phusion_passenger/
abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.0) lib/phusion_passenger/
abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'
passenger (3.0.0) lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:
357:in `__send__'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:
357:in `server_main_loop'
passenger (3.0.0) lib/phusion_passenger/abstract_server.rb:
206:in `start_synchronously'
passenger (3.0.0) helper-scripts/passenger-spawn-server:99

clayton

unread,
Nov 13, 2010, 10:32:08 AM11/13/10
to Gitorious
It seems this is the answer I was looking for:
gem uninstall i18n
per http://www.mail-archive.com/gito...@googlegroups.com/msg01619.html

Shuva

unread,
Nov 13, 2010, 11:05:13 PM11/13/10
to Gitorious
Did you try installing older i18n gem ?

try like this,

<code>
gem uninstall i18n
</code>

and then,

<code>
gem install i18n -v=0.1
</code>
> ...
>
> read more »

Kamanashis Roy Shuva

unread,
Nov 12, 2010, 11:01:45 PM11/12/10
to gito...@googlegroups.com
Did you try installing older i18n gem ?

try like this,

<code>
gem uninstall i18n
</code>

and then,

<code>
gem install i18n -v=0.1
</code>





--
-- Thanks

Kamanashis Roy

clayton

unread,
Nov 15, 2010, 9:50:37 PM11/15/10
to Gitorious
Yes, an older version does work, as a matter of fact. I did
gem install i18n -v=0.3.7
and am seeing no signs of problems.

Thanks for the pointer,
Clayton

clayton

unread,
Nov 15, 2010, 10:32:52 PM11/15/10
to Gitorious
Correction: I forgot to restart Apache. I had to go all the way back
to 0.1.0 to get it to work, as you suggested.
gem install i18n -v=0.1.0 works.
Reply all
Reply to author
Forward
0 new messages