Re: Issue with API job while downgrading CF


Nicholas Calugar
 

Hi Anuj,

This isn't going to work as you have a v231 database and the code from
v214, which doesn't contain the migrations between. Also, it's doing a
migrate up, not a migrate down.

While the migrations may be written in a way that they will migrate down,
we don't test, support, or recommend this workflow. You would have to
manually migrate down using code from v231.

Nick

On Wed, Apr 13, 2016 at 1:43 AM Anuj Jain <anuj17280(a)gmail.com> wrote:

Hi,

currently I am running CF v231 and for some reason want to
downgrade/rollback to CF 214 - while trying to do that I am getting below
mentioned error with API VMs

============= Error msg

Started updating job api_z1 > api_z1/2ac60eec-c41d-4b14-b473-ba40907ee77e
(0) (canary). Failed: `api_z1/0 (2ac60eec-c41d-4b14-b473-ba40907ee77e)' is
not running after update (00:10:51)



Error 400007: `api_z1/0 (2ac60eec-c41d-4b14-b473-ba40907ee77e)' is not
running after update

============================

Above error is because of ‘cloud_controller_migration’ job which need to
run on api_z1 jobs – which is failing- when tried restarting the job
manually got error '

/bin/sh: 1: Syntax error: EOF in backquote substitution
' - could some one point me how can I fix it.

cloud controller migration script error:

# /var/vcap/jobs/cloud_controller_ng/bin/cloud_controller_migration_ctl
start

/bin/sh: 1: Syntax error: EOF in backquote substitution

/bin/sh: 1: Syntax error: EOF in backquote substitution

/bin/sh: 1: Syntax error: EOF in backquote substitution

/bin/sh: 1: Syntax error: EOF in backquote substitution

/bin/sh: 1: Syntax error: EOF in backquote substitution

/bin/sh: 1: Syntax error: EOF in backquote substitution


Note: looks like line: 'chpst -u vcap:vcap bundle exec rake db:migrate'
is causing the issue - where it is trying to migrate DB when CC runs first
time.

- Anuj
--
Nicholas Calugar
CAPI Product Manager
Pivotal Software, Inc.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.