question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

st2-self-check fails

See original GitHub issue
¯\_(ツ)_/¯

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
enykeevcommented, Nov 22, 2016

You mean UX, right? Right? =)

1reaction
armabcommented, Nov 9, 2016

Docs make sense 👍 But I’d fix it to report something like: Unauthenticated or change the script to make it working.

Because it actually starts successfully (by executing st2 ... commands) and ends up with errors. Full output:

$ ls ~/.st2/
config  token-st2admin


$ sudo st2-self-check
Installing asserts,fixtures,tests..............
id: 5823a3e973b55b313653b018
action.ref: packs.install
parameters: 
  packs:
  - asserts
  - fixtures
  - tests
  repo_url: StackStorm/st2tests
  subtree: true
status: succeeded
start_timestamp: 2016-11-09T22:32:09.937266Z
end_timestamp: 2016-11-09T22:32:36.726188Z
+--------------------------+-------------------------+--------------------+--------------------+-----------------+
| id                       | status                  | task               | action             | start_timestamp |
+--------------------------+-------------------------+--------------------+--------------------+-----------------+
| 5823a3ea73b55b2da50bb431 | succeeded (3s elapsed)  | download           | packs.download     | Wed, 09 Nov     |
|                          |                         |                    |                    | 2016 22:32:10   |
|                          |                         |                    |                    | UTC             |
| 5823a3ee73b55b2da50bb434 | succeeded (1s elapsed)  | virtualenv_prerun  | packs.virtualenv_p | Wed, 09 Nov     |
|                          |                         |                    | rerun              | 2016 22:32:14   |
|                          |                         |                    |                    | UTC             |
| 5823a3f073b55b2da50bb437 | succeeded (12s elapsed) | setup_virtualenv   | packs.setup_virtua | Wed, 09 Nov     |
|                          |                         |                    | lenv               | 2016 22:32:16   |
|                          |                         |                    |                    | UTC             |
| 5823a3fd73b55b2da50bb43a | succeeded (5s elapsed)  | reload             | packs.load         | Wed, 09 Nov     |
|                          |                         |                    |                    | 2016 22:32:29   |
|                          |                         |                    |                    | UTC             |
| 5823a40273b55b2da50bb43d | succeeded (2s elapsed)  | restart-sensor-    | packs.restart_comp | Wed, 09 Nov     |
|                          |                         | container          | onent              | 2016 22:32:34   |
|                          |                         |                    |                    | UTC             |
+--------------------------+-------------------------+--------------------+--------------------+-----------------+
Installing examplesRegistering content...[flags = --register-actions --register-aliases --register-sensors --register-triggers --register-configs --register-rules]
2016-11-09 22:32:39,539 INFO [-] Connecting to database "st2" @ "0.0.0.0:27017" as user "None".
2016-11-09 22:32:39,584 INFO [-] =========================================================
2016-11-09 22:32:39,584 INFO [-] ############## Registering triggers #####################
2016-11-09 22:32:39,585 INFO [-] =========================================================
2016-11-09 22:32:39,663 INFO [-] Registered 1 triggers.
2016-11-09 22:32:39,664 INFO [-] =========================================================
2016-11-09 22:32:39,664 INFO [-] ############## Registering sensors ######################
2016-11-09 22:32:39,664 INFO [-] =========================================================
2016-11-09 22:32:39,818 INFO [-] Registered 5 sensors.
2016-11-09 22:32:39,819 INFO [-] =========================================================
2016-11-09 22:32:39,819 INFO [-] ############## Registering actions ######################
2016-11-09 22:32:39,819 INFO [-] =========================================================
2016-11-09 22:32:43,707 INFO [-] Registered 135 actions.
2016-11-09 22:32:43,708 INFO [-] =========================================================
2016-11-09 22:32:43,708 INFO [-] ############## Registering rules ########################
2016-11-09 22:32:43,708 INFO [-] =========================================================
2016-11-09 22:32:43,831 INFO [-] Registered 6 rules.
2016-11-09 22:32:43,831 INFO [-] =========================================================
2016-11-09 22:32:43,831 INFO [-] ############## Registering aliases ######################
2016-11-09 22:32:43,831 INFO [-] =========================================================
2016-11-09 22:32:43,901 INFO [-] Registered 10 aliases.
2016-11-09 22:32:43,902 INFO [-] =========================================================
2016-11-09 22:32:43,902 INFO [-] ############## Registering configs ######################
2016-11-09 22:32:43,902 INFO [-] =========================================================
2016-11-09 22:32:43,903 INFO [-] Registered 0 configs.
##### st2 components status #####
st2actionrunner PID: 11685
st2api PID: 12579
st2api PID: 12598
st2stream PID: 12527
st2stream PID: 12574
st2auth PID: 11707
st2auth PID: 11868
st2garbagecollector PID: 11714
st2notifier PID: 11721
st2resultstracker PID: 11728
st2rulesengine PID: 11735
st2sensorcontainer PID: 17985
st2chatops is not running.
mistral-server PID: 14702
mistral-api PID: 14694
mistral-api PID: 14751
mistral-api PID: 14752
Attempting Test tests.test_key_triggers...ERROR!
Attempting Test tests.test_packs_pack...ERROR!
Attempting Test tests.test_quickstart...ERROR!
Attempting Test tests.test_quickstart_key...ERROR!
Attempting Test tests.test_quickstart_local_script_actions...OK!
Attempting Test tests.test_quickstart_passive_sensor...ERROR!
Attempting Test tests.test_quickstart_polling_sensor...ERROR!
Attempting Test tests.test_quickstart_python_actions...ERROR!
Attempting Test tests.test_quickstart_remote_script_actions...OK!
Attempting Test tests.test_quickstart_rules...ERROR!
Attempting Test tests.test_quickstart_trace...ERROR!
Attempting Test tests.test_timer_rule...ERROR!
Skipping tests.test_windows_runners...
Attempting Example examples.mistral_examples...OK!
SELF CHECK FAILED!
st2-self-check failed.  See above.  Also check the execution list for details.
st2 execution list

This command runs OK: https://github.com/StackStorm/st2/blob/ed6fdb4043647b766551c25f365782a58abce019/st2common/bin/st2-self-check#L70

While this requires ST2_AUTH_TOKEN: https://github.com/StackStorm/st2/blob/ed6fdb4043647b766551c25f365782a58abce019/st2common/bin/st2-self-check#L83

So I’d say it’s broken UI then. Fresh vision, after not working closely with StackStorm for a while.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`st2-self-check` fails on older st2 versions · Issue #3095 - GitHub
We YOLO-pull st2tests master in st2-self-check script. This makes script broken on older st2 versions. So st2-self-check should rely on ...
Read more >
Tricks That Failed Miserably | Stunt Fails 2021 - YouTube
Cool stunts are impressive, sure, but this is the internet and people are already showing off everywhere else. For true glory, failure is ......
Read more >
Changelog — StackStorm 3.8.0 documentation
Fix issue of WinRM parameter passing fails for larger scripts. ... Fix st2-self-check script reporting falsey success when the nested workflows runs failed....
Read more >
StackStorm/st2 | Coveralls - Test Coverage History & Statistics
LAST BUILD ON BRANCH STORM-1170/friendly-action-param-error. branch: STORM-1170/friendly-action-param-error ...
Read more >
Auth token not successfully propagated... - Bountysource
st2-self-check fails execution. ... Here's the output from the first failed command run by st2-self-check (run manually: st2 --debug run ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found