Mailinglist Archive: opensuse-buildservice (247 mails)

< Previous Next >
[opensuse-buildservice] Local instance OBS: Cannot remove repositories
Hi

I cannot remove any repositories from any projects (local OBS
installation), neither using the Repositories webui tab -> remove
repository, nor editing project meta via webui, nor 'osc meta prj -e'

Example: I have project meta as follows:

...
<repository name="openSUSE_11.4">
<path repository="standard" project="openSUSE.org:openSUSE:11.4:Update"/>
<path repository="standard" project="openSUSE.org:openSUSE:11.4"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>
<repository name="openSUSE_12.1">
<path repository="standard" project="openSUSE.org:openSUSE:12.1:Update"/>
<path repository="standard" project="openSUSE.org:openSUSE:12.1"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>
...

deleting these blocks in webui gives an error on screen

Failed to remove target 'openSUSE_11.4' Uncaught exception: undefined method
`repositories' for nil:NilClass

and the following in /srv/www/api/log/production.log:

[FATAL|# 6567] NoMethodError (undefined method `repositories' for nil:NilClass):
app/controllers/source_controller.rb:1265:in `private_remove_repositories'
app/controllers/source_controller.rb:811:in `project_meta'
passenger (3.0.8) lib/phusion_passenger/rack/request_handler.rb:96:in
`process_request'
passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'
passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:274:in
`main_loop'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/application_spawner.rb:321:in
`start_request_handler'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/application_spawner.rb:275:in
`handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/application_spawner.rb:270:in
`handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/framework_spawner.rb:268:in
`handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/framework_spawner.rb:263:in
`handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/framework_spawner.rb:261:in
`handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.8)
lib/phusion_passenger/classic_rails/framework_spawner.rb:93:in `start'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
passenger (3.0.8) helper-scripts/passenger-spawn-server:99


[INFO |# 6567] Rendering status
[INFO |# 6567] errorcode 'unknown' - Uncaught exception: undefined method
`repositories' for nil:NilClass
[INFO |# 6567] Rendering status (400)

This occurs in all projects, and for any repository definition

Regards
Magnus Lewis-Smith
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups