I upgraded Spinnaker and it is no longer responding, how do I rollback?

If you deploy a configuration or a change that takes down Spinnaker it’ll be impossible to rollback since Spinnaker would not be available. In order to manually to deploy back you’ll have to do the following:

  1. Look for an existing deployment with the armoryspinnaker prefix.

  2. Find the ASGs of Armory Spinnaker that were deployed. Typically it should be armoryspinnaker-ha-polling-v${VER} where ${VER} is something like 023. You should see 2 ASGS, one that is active instead and the older version should be disabled. armory spinnaker ASGs

  3. Edit the older ASG and remove any suspended processes that are listed remove suspended process

  4. Increase the number of instances for the armoryspinnaker-ha-polling ASG to just 1 and set the other ASG armoryspinnaker-ha, the non-polling ASG back to atleast 2. ASG upping desired capacity count

  5. Reduce the latest ASGs down to 0 so that they’re no longer behind the ELB

  6. Check the Armory Spinnaker ELB. Make sure all instances are attached to the user-facing and internal-services ELB and are healthy.

  7. Go back to your Armory Spinnaker URL and make sure all is back to a working state.

How can I debug Armory Spinnaker?

You’ll need to SSH into a box running Armory Spinnaker. You can find an active node by going to clusters view and selecting a node. selecting a node

Once you have SSH’ed into a box you’ll need to find which sub-service is unhealthy:

curl localhost:5000/healthcheck

This should return a response similar to:


In the example above clouddriver is false so it’s likely unhealthy. To check for exceptions or errors tail the logs:

docker logs -f clouddriver

This should stream all the clouddriver logs to your terminal. You’ll want to look for any obvious exceptions or stack-traces to share with the Armory Support team.

How can I flush the Redis cache?

  1. SSH into an active Armory Spinnaker node
  2. Install redis server which comes with the cli tool. apt-get install redis-tools

  3. Flush all content. This will remove old executions.
. /opt/spinnaker/env/resolved.env redis-cli -h ${REDIS_HOST} FLUSHALL

How do I remove hung operations in the tasks view?

From time-to-time you might have hung tasks. In order to clear them out you’ll have to use Redis you’ll have to remove the key from the server.

  1. SSH into an active Armory Spinnaker node
  2. Install redis server which comes with the cli tool. apt-get install redis-tools
  3. Find the host of the Armory Spinnaker Redis server. This is typically kept in /opt/spinnaker/env/resolved.env under the key REDIS_HOST.
  4. Find the key of the task you want to delete. alt text You can then grab the ID from the url: https://${YOURSPINNAKER_INSTANCE}:8084/applications/armoryspinnaker/tasks/bf06a51c-083f-40f0-964a-71314c97ae17

  5. Delete the orchestration keys from redis:
    . /opt/spinnaker/env/resolved.env redis-cli -h ${REDIS_HOST} DEL orchestration:${TASK_KEY}

    . /opt/spinnaker/env/resolved.env redis-cli -h ${REDIS_HOST} DEL orchestration:bf06a51c-083f-40f0-964a-71314c97ae17:stageIndex