[opensuse-buildservice] 'ruby import' fails

Using 1.7.4 I tried to use the import script to import a newly setup project, but the script crashed: /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:163:in `ensure_session_key': A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb (ArgumentError) from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:74:in `initialize' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:72:in `new' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:72:in `build' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in `build' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:361:in `inject' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in `each' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in `inject' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:116:in `build' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:81:in `initialize' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51:in `new' from /usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:631:in `prepare_dispatcher' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:185:in `process' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run' from import:18 -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 24.05.2010 23:01, Jon Nelson wrote:
Using 1.7.4
I tried to use the import script to import a newly setup project, but the script crashed:
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:163:in `ensure_session_key': A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb (ArgumentError)
Which script/command returned this error? Are you using the git version, or a released package? Greetings -- Thomas Schmidt (tom [at] opensuse.org) openSUSE Boosters Team "Don't Panic", Douglas Adams (1952 - 11.05.2001) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Tue, May 25, 2010 at 5:49 AM, Thomas Schmidt <tom@opensuse.org> wrote:
On 24.05.2010 23:01, Jon Nelson wrote:
Using 1.7.4
I tried to use the import script to import a newly setup project, but the script crashed:
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:163:in `ensure_session_key': A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb (ArgumentError)
Which script/command returned this error? Are you using the git version, or a released package?
The 'import' script that is part of the 1.7.4 package. I'm running on openSUSE 11.2. I've worked around the issue for now, but I was using the script exactly as README.SETUP shows. -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 25.05.2010 15:29, Jon Nelson wrote:
On Tue, May 25, 2010 at 5:49 AM, Thomas Schmidt <tom@opensuse.org> wrote:
On 24.05.2010 23:01, Jon Nelson wrote:
Using 1.7.4
I tried to use the import script to import a newly setup project, but the script crashed:
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:163:in `ensure_session_key': A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb (ArgumentError)
Which script/command returned this error? Are you using the git version, or a released package?
The 'import' script that is part of the 1.7.4 package. I'm running on openSUSE 11.2. I've worked around the issue for now, but I was using the script exactly as README.SETUP shows.
Could you try again with the latest version from git: http://gitorious.org/opensuse/build-service/blobs/raw/master/src/api/script/... Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Tools "Don't Panic", Douglas Adams (1952 - 11.05.2001) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Jon Nelson
-
Thomas Schmidt
-
Thomas Schmidt