Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

404 error page after adding remote obs #136

Closed
KostyaSha opened this Issue · 11 comments

5 participants

@KostyaSha

After adding i have 404 error, but project is finally added.

http://www.youtube.com/watch?v=3M2isRUrhz0

error log:
[INFO |#12767] Started GET "/source/openSUSE.org/_meta" for ::1 at 2012-12-04 10:37:19 +0300
[INFO |#12767] Processing by SourceController#project_meta as XML
[INFO |#12767] Parameters: {"project"=>"openSUSE.org"}
[DEBUG|#12767] Validate XML request: #ActionDispatch::Request:0x000000063201d0
[DEBUG|#12767] no schema found, skipping validation for {"format"=>"xml", "controller"=>"source", "action"=>"project_meta", "project"=>"openSUSE.org", "method"=>"GET", "type"=>"request"}
[DEBUG|#12767] AUTH: ["Basic", "QWRtaW46b3BlbnN1c2U="]
[DEBUG|#12767] User Load (0.6ms) SELECT users.* FROM users WHERE (login = 'Admin') LIMIT 1
[DEBUG|#12767] USER found: Admin
[DEBUG|#12767] User Admin initialised
[DEBUG|#12767] Role Load (1.4ms) SELECT DISTINCT roles.id FROM roles INNER JOIN roles_users ON roles.id = roles_users.role_id WHERE roles_users.user_id = 1 AND roles.title = 'Admin' LIMIT 1
[DEBUG|#12767] Project Load (0.9ms) SELECT projects.* FROM projects WHERE projects.name = 'openSUSE.org' AND (projects.id not in (0)) LIMIT 1
[DEBUG|#12767] Project::UnknownObjectError: errorcode openSUSE.org
/srv/www/obs/api/app/models/project.rb:154:in get_by_name'
/srv/www/obs/api/app/controllers/source_controller.rb:693:in
project_meta'
[ERROR|#12767] ReadAccessError: openSUSE.org
[INFO |#12767] Rendered status.xml.builder (0.6ms)
[INFO |#12767] Completed 404 Not Found in 21ms (Views: 1.7ms | ActiveRecord: 2.9ms | Backend: 0.0ms | XML: 0.0ms)

@crhan

yes. the same problem.

@coolo
Owner

so dup

@coolo coolo closed this
@crhan

sorry, I mean that I have met this question too. Not a dup from 7e4e544

@coolo
Owner

oh :)

@coolo coolo reopened this
@adrianschroeter

I can not reproduce this with current 2.4 appliance. But the error line would mean that your api instance did not recognized that the referenced project is a remote project. Can you please try to reproduce and in case it does still happen select the entry in "projects" table of your mysql database?

@KostyaSha

I'm in process of migrating to 2.4 branch, i need time to build fedora version. Then i'll test again.

@KostyaSha

Still the same, 404 after add, but instance saved.

[INFO |#21901] Started GET "/configuration/connect_instance" for 10.xx.xx.xx at 2013-03-13 17:25:20 -0400
[INFO |#21901] Processing by ConfigurationController#connect_instance as HTML
[INFO |#21901] Authenticated request to "/configuration/connect_instance" from Admin
[INFO |#21901] Rendered configuration/_tabs.html.erb (0.9ms)
[INFO |#21901] Rendered configuration/connect_instance.html.erb within layouts/application (2.8ms)
[INFO |#21901] Rendered layouts/_watch_and_search.html.erb (0.6ms)
[INFO |#21901] Rendered layouts/_header.html.erb (1.2ms)
[INFO |#21901] Rendered layouts/_personal_navigation.html.erb (0.6ms)
[INFO |#21901] Rendered layouts/_flash.html.erb (0.0ms)
[INFO |#21901] Completed 200 OK in 64ms (Views: 8.6ms | ActiveRecord: 0.0ms | API: 51.9ms (XML: 0.0ms , View: 0.6ms , Backend: 0.0ms , DB: 3.9ms , HTTP: 20.8ms) | XML: 0.1ms)
[INFO |#21901] Started POST "/configuration/save_instance" for 10.xx.xx.xx at 2013-03-13 17:25:54 -0400
[INFO |#21901] Processing by ConfigurationController#save_instance as HTML
[INFO |#21901] Parameters: {"utf8"=>"✓", "authenticity_token"=>"7v5OITkOk2PwIeIblablabla=", "name"=>"remoteOBS", "remoteurl"=>"https://xxx.cut.domain.c
om:444", "title"=>"Remote OBS instance", "description"=>"This project is representing a remote build service instance.", "commit"=>"Save changes"}
[INFO |#21901] Authenticated request to "/configuration/save_instance" from Admin
[INFO |#21901] Redirected to
[INFO |#21901] Completed 404 Not Found in 212ms

[FATAL|#21901] ActionController::RoutingError (No route matches {:action=>"show", :project=>"remoteOBS", :controller=>"configuration"}):
app/controllers/configuration_controller.rb:54:in `save_instance'

mysql> select * from projects where name='remoteOBS' \G;
*************************** 1. row ***************************
id: 7
name: remoteOBS
title: Remote OBS instance
description: This project is representing a remote build service instance.
created_at: 2013-03-13 21:25:54
updated_at: 2013-03-13 21:25:54
remoteurl: https://cut.cut.domain.com:444
remoteproject: NULL
type_id: 1
maintenance_project_id: NULL
develproject_id: NULL
1 row in set (0.00 sec)

@KostyaSha

Well, i resetuped database, and it works now.

@adrianschroeter

okay

@rampatnaik

For all activity like adding user or creating home project i am getting 500 & 400 error for OBS 2.5 version

)
[e8a8081a-bb40-4d64-aff1-566d399771b4] [8847:1094.76] Completed 500 Internal Server Error in 1277ms
[e8a8081a-bb40-4d64-aff1-566d399771b4] [8847:1094.76]
ActiveXML::Transport::Error (

don't know how to create a key

any solution ???

@adrianschroeter

@rampatnaik yes, but random github issues are not the place for support questions. Please go to IRC or mailing list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.