st2-packages icon indicating copy to clipboard operation
st2-packages copied to clipboard

[INFO] SSH Debug a failed build in a CircleCI

Open lakshmi-kannan opened this issue 9 years ago • 4 comments

Courtesy: @armab

Here are instructions to get into needed place under CircleCI.

  • Push Rebuild SSH button for build you want to debug, ex: https://circleci.com/gh/StackStorm/st2/497
  • Wait for some container to fail under tests (see in UI logs/tabs by number: 0 - 4)
  • SSH into failed container
  • Once you inside, find Docker where all packages were installed:
$ docker ps

and login into that Docker:

$ sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' st2packages_wheezytest_1)" -- bash

where st2packages_wheezytest_1 is container name from ^^ docker ps command.

  • Do what you need, everything is in running/installed state there. service st2auth status.

lakshmi-kannan avatar Feb 03 '16 18:02 lakshmi-kannan

https://stackstorm.slack.com/archives/stackstorm/p1454533996004862

estee-tew avatar Feb 03 '16 21:02 estee-tew

@lakshmi-kannan I was trying, I didn't seem dependent services remained after running((

dennybaa avatar Feb 04 '16 12:02 dennybaa

after test was finished.

root@8b9fac53f6bc:/# st2 action list
ERROR: HTTPConnectionPool(host='127.0.0.1', port=9101): Max retries exceeded with url: /v1/actions (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x267d610>: Failed to establish a new connection: [Errno 111] Connection refused',))

So won't help) Just the biggest is reviewing logs...

dennybaa avatar Feb 04 '16 17:02 dennybaa

I'm willing to closing it. It's a useless report. Yes it SO ssh debug doesn't work in Circle CI. @lakshmi-kannan @armab ack?

dennybaa avatar Feb 10 '16 14:02 dennybaa