[opensuse-buildservice] PrivateOBS: Error when deleting 'repository' from Project
Hi all,
i'm facing an issue when I try to delete a repository from my Project on
my own OBS instance:
in production.log, I can find this:
[INFO |#15816] Started PUT "/source/SuSE/_meta" for 192.168.163.161 at
2014-01-28 23:08:13 +0100
[INFO |#15816] Processing by SourceController#project_meta as XML
[INFO |#15816] Parameters: {"project"=>"SuSE"}
[INFO |#15816] Rendered status.xml.builder (0.2ms)
[INFO |#15816] Filter chain halted as :extract_user rendered or
redirected
[INFO |#15816] Completed 401 Unauthorized in 2ms (Views: 0.7ms |
ActiveRecord: 0.0ms | Backend: 0.0ms | XML: 0.0ms)
[INFO |#15816] Started PUT "/source/SuSE/_meta" for 192.168.163.161 at
2014-01-28 23:08:13 +0100
[INFO |#15816] Processing by SourceController#project_meta as XML
[INFO |#15816] Parameters: {"project"=>"SuSE"}
[INFO |#15816] Completed 500 Internal Server Error in 62ms
[FATAL|#15816] NoMethodError (undefined method `repositories' for
nil:NilClass):
app/controllers/source_controller.rb:1242:in
`private_remove_repositories'
app/controllers/source_controller.rb:1236:in
`private_check_and_remove_repositories'
app/controllers/source_controller.rb:791:in `project_meta'
config/initializers/wrap_parameters.rb:35:in `call'
Any ideas what went wrong?
obs-server is version 2.4.5.
--
Dimstar / Dominique Leuenberger
Am 28.01.2014 23:09, schrieb Dimstar / Dominique Leuenberger:
Any ideas what went wrong?
Project.find_by_name("deleted") returns nil. That is actually the reason 2.4.5 was released - does RAILS_ENV=production rake db:migrate change something? The package is supposed to run this on update, but perhaps that's what went wrong? Greetings, Stephan -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Quoting Stephan Kulow
Am 28.01.2014 23:09, schrieb Dimstar / Dominique Leuenberger:
Any ideas what went wrong?
Project.find_by_name("deleted") returns nil. That is actually the reason 2.4.5 was released - does RAILS_ENV=production rake db:migrate change something? The package is supposed to run this on update, but perhaps that's what went wrong?
Command executed... it had two migration tasks to do: == NewCveRegexp: migrating =================================================== == NewCveRegexp: migrated (26.8906s) ========================================= == CheckDeletedRepo: migrating =============================================== == CheckDeletedRepo: migrated (3.5379s) ====================================== The 2nd one sounds very much like being related to it... And indeed, I can now change my meta and remove a repository again! Thanks for the pointer.. I keep on forgetting the db:migrate. Dominique -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Dimstar / Dominique Leuenberger
-
Dominique Leuenberger a.k.a. Dimstar
-
Stephan Kulow