Submitted by beat on Thu, 11/19/2009 - 02:58
Upgraded our forge from redmine 0.8.6 to redmine 0.8.7 with virtualmin Pro this morning, and site stopped working with error 500:
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Fortunately, "upgrade to unsupported version" 0.8.6 re-made things work.
Looks like an incompatibility.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Thu, 11/19/2009 - 13:04 Comment #1
Ok, I see the cause of this .. I missed a step in the upgrade process.
To fix it, just save the attached file as /etc/webmin/virtual-server/latest-scripts/redmine.pl
Submitted by beat on Thu, 11/19/2009 - 17:28 Comment #2
Thanks Jamie,
As i'm not in a hurry to update I guess that instead replacing that file, i can wait 1-2 days, then use the automated updated script installers (i have automatic updates on), right ?
Submitted by JamieCameron on Thu, 11/19/2009 - 17:41 Comment #3
Yes, you could do that too. It will have the exact same effect though, so I suggest just putting that file into place.
Submitted by beat on Sat, 11/28/2009 - 15:21 Comment #4
Waited some days for the automated update, then tried today...It didn't work (even cleaning the cache).
Had to replace the file as instructed above, then the update worked fine.
So guess that once that file is really updated through your automatic updater you can close the case.
Just to be sure we talk of the same change, here the diff for that redmine.pl file between what was in the directory and the new file:
diff redmine.pl-0.8.6-ok redmine.pl-0.8.7-ok
241a242,248
> # Generate the session store
> $out = &run_as_domain_user($d, "cd ".quotemeta($opts->{'dir'})." && ".
> "rake config/initializers/session_store.rb 2>&1");
> if ($?) {
> return (-1, "Session store failed : <pre>$out</pre>");
> }
>
246,252d252
< # Generate the session store
< $out = &run_as_domain_user($d, "cd ".quotemeta($opts->{'dir'})." && ".
< "rake config/initializers/session_store.rb 2>&1");
< if ($?) {
< return (-1, "Session store failed : <pre>$out</pre>");
< }
<
Thanks again, Beat
Submitted by JamieCameron on Sat, 11/28/2009 - 23:00 Comment #5
Oh, I just realized that the automatic update process will not pick this up, as it isn't a new Redmine version.
The fix will be included in Virtualmin 3.76 though.
Submitted by beat on Sun, 11/29/2009 - 18:01 Comment #6
Maybe the automatic update process could be improved so that it looks at script version + installer version ? ;-)
Submitted by JamieCameron on Sun, 11/29/2009 - 18:25 Comment #7
Yeah, that's a good idea .. I plan to add that in future.
Submitted by Issues on Mon, 12/14/2009 - 11:19 Comment #8
Automatically closed -- issue fixed for 2 weeks with no activity.