st2-packages
st2-packages copied to clipboard
[INFO] SSH Debug a failed build in a CircleCI
Courtesy: @armab
Here are instructions to get into needed place under CircleCI.
- Push
Rebuild SSHbutton 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.
https://stackstorm.slack.com/archives/stackstorm/p1454533996004862
@lakshmi-kannan I was trying, I didn't seem dependent services remained after running((
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...
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?