https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-11-27T20:03:36ZRedmineRedmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=430902012-11-27T20:03:36ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Resolution</strong> set to <i>Cant reproduce</i></li></ul><p>I can't reproduce as the Change model should be autoloaded. The following patch should solve your problem:</p>
<pre>
Index: app/models/repository.rb
===================================================================
--- app/models/repository.rb (revision 10880)
+++ app/models/repository.rb (working copy)
@@ -419,7 +419,7 @@
# Deletes repository data
def clear_changesets
cs = Changeset.table_name
- ch = Change.table_name
+ ch = ::Change.table_name
ci = "#{table_name_prefix}changesets_issues#{table_name_suffix}"
cp = "#{table_name_prefix}changeset_parents#{table_name_suffix}"
</pre> Redmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=430982012-11-27T21:58:52Zgc cg
<ul></ul><p>Hi Jean,<br />while you're here. Can you please also help me with this issue. Why this fetch_changeset fail on me? i must have done some thing wrong here.</p>
<p>root@linux:/opt/bitnami/apps/redmine/htdocs# curl "http://localhost:8080/redmine/sys/fetch_changesets?key=HMlhcIkfHtl4doIfQVh2"</p>
<p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <br />"http://www.w3.org/TR/html4/loose.dtd"><br /><html><br /><title>Redmine 500 error</title><br /><style><br />body{<br />font-family: Trebuchet MS,Georgia,"Times New Roman",serif;<br />color:#303030;<br />margin:10px;<br />}<br />h1{<br />font-size:1.5em;<br />}<br />p{<br />font-size:0.8em;<br />}<br /></style><br /><body><br /><h1>Internal error</h1><br /><p>An error occurred on the page you were trying to access.<br /><br />If you continue to experience problems please contact your Redmine administrator for assistance.</p><br /><p>If you are the Redmine administrator, check your log files for details about the error.</p><br /><p><a href="javascript:history.back()">Back</a></p><br /></body><br /></html><br />root@linux:/opt/bitnami/apps/redmine/htdocs#</p>
<p>Log says:<br />Started GET "/redmine/sys/fetch_changesets?key=HMlhcIkfHtl4doIfQVh2" for 192.168.11.25 at Tue Nov 24 18:18:48 +0000 2012<br />Processing by SysController#fetch_changesets as */*<br />Parameters: {"key"=>"HMlhcIkfHtl4doIfQVh2"}<br />hg: error during getting info: hg exited with non-zero status: 255<br />hg: error during getting info: hg exited with non-zero status: 255<br />hg: error during getting info: hg exited with non-zero status: 255<br />Completed 500 Internal Server Error in 4999ms</p> Redmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=430992012-11-27T22:49:16ZToshi MARUYAMA
<ul><li><strong>Category</strong> set to <i>SCM</i></li></ul> Redmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=431002012-11-27T23:04:08ZToshi MARUYAMA
<ul></ul><p>gc cg wrote:</p>
<blockquote>
<p>hg: error during getting info: hg exited with non-zero status: 255</p>
</blockquote>
<p>Check your Mercurial repository owner and permission.<br />Try "hg log" on your Mercurial repository with your Redmine process uid.</p>
<blockquote>
<p>Completed 500 Internal Server Error in 4999ms</p>
</blockquote>
<p>It seems Bitnami problems.<br />Please contact Bitnami.</p> Redmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=431022012-11-28T07:26:34Zgc cg
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>I can't reproduce as the Change model should be autoloaded. The following patch should solve your problem:</p>
<p>[...]</p>
</blockquote>
<p>Hi Jean,<br />It still doesnt work. Here is the log:<br />root@linux:/opt/bitnami/apps/redmine/htdocs/log# tail -f production.log<br />Processing by RepositoriesController#destroy as HTML<br /> Parameters: {"authenticity_token"=>"CYndDMD4sUkwoKw2UnI+YWOO/Ace010lnL0Ptrch+N4=", "id"=>"4"}<br /> Current user: hbnguyen (id=207)<br />Completed 500 Internal Server Error in 16ms</p>
<p>NameError (uninitialized constant Change):<br /> app/models/repository.rb:423:in `clear_changesets'<br /> app/controllers/repositories_controller.rb:109:in `destroy'</p>
<p>Started DELETE "/redmine/repositories/4" for 172.16.1.37 at Wed Nov 28 07:23:41 +0000 2012<br />Processing by RepositoriesController#destroy as HTML<br /> Parameters: {"authenticity_token"=>"CYndDMD4sUkwoKw2UnI+YWOO/Ace010lnL0Ptrch+N4=", "id"=>"4"}<br /> Current user: hbnguyen (id=207)<br />Completed 500 Internal Server Error in 14ms</p>
<p>NameError (uninitialized constant Change):<br /> app/models/repository.rb:423:in `clear_changesets'<br /> app/controllers/repositories_controller.rb:109:in `destroy'</p>
<p>Any other idea?</p>
<p>thanks a lot</p> Redmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=431042012-11-28T10:23:15ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Looks like app/models/change.rb is missing.</p> Redmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=431332012-11-29T17:48:57Zgc cg
<ul></ul><p>hmmm it's correct. how come that file was missing is still a mystery?</p>
<p>thanks a lot for your help.</p> Redmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=431342012-11-29T17:49:07Zgc cg
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul> Redmine - Defect #12459: Error try to delete a project or repository within a projecthttps://www.redmine.org/issues/12459?journal_id=431352012-11-29T18:09:24ZEtienne Massip
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>Resolution</strong> changed from <i>Cant reproduce</i> to <i>Invalid</i></li></ul>