[opensuse-buildservice] osc sr on fresh install fails: .nextid not initialized
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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (1)
-
Jan-Simon Möller