redmine 0.8.6 to 0.8.7 upgrade kills the redmine virtual server (Rails server status: not running)

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

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

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 ?

Yes, you could do that too. It will have the exact same effect though, so I suggest just putting that file into place.

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

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.

Maybe the automatic update process could be improved so that it looks at script version + installer version ? ;-)

Yeah, that's a good idea .. I plan to add that in future.

Automatically closed -- issue fixed for 2 weeks with no activity.