Mailinglist Archive: opensuse-buildservice (248 mails)

< Previous Next >
[opensuse-buildservice] osc sr on fresh install fails: .nextid not initialized
  • From: "Jan-Simon Möller" <dl9pf@xxxxxx>
  • Date: Fri, 23 Oct 2009 19:52:21 +0200
  • Message-id: <200910231952.21692.dl9pf@xxxxxx>
Hi!

#>osc sr

Server returned an error: HTTP Error 500: Internal Server Error
constructor needs either REXML::Element, String or Hash


is caused by /srv/obs/requests/.nextid not being set to 1 on first osc sr /
installation.

Tnx to darix for pointing out this hot fix:

Index: app/controllers/request_controller.rb
===================================================================
--- app/controllers/request_controller.rb (Revision 8411)
+++ app/controllers/request_controller.rb (Arbeitskopie)
@@ -37,7 +37,7 @@

# POST /request?cmd=create
def create_create
- if request.body.kind_of? StringIO or request.body.kind_of? FCGI::Stream
+ if request.body.kind_of? StringIO or request.body.kind_of? FCGI::Stream or
request.body.kind_of? Rack::RewindableInput
req = BsRequest.new(request.body.read)
else
req = BsRequest.new(request.body)


_AND_ (!)

echo 1 > /srv/obs/requests/.nextid ; chown obsrun:obsrun
/srv/obs/requests/.nextid


Best,
Jan-Simon
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages