¯\_(ツ)_/¯
@armab: Details please: OS, build, logs, error message etc.. :)
Yeah, sorry. That's because I self-assigned this Issue.
Just got this on basic ubuntu/trusty64 Vagrant with usual curl | bash install (stable st2).
curl -sSL https://stackstorm.com/packages/install.sh | bash -s -- --user=st2admin --password=Ch@ngeMe
sudo st2-self-check
...
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
@humblearner Want to pick up this issue?
@armab Looks like you haven't exported auth token for sudo user :). Docs say how.
https://docs.stackstorm.com/2.0/troubleshooting/self_verification.html
Docs make sense :+1:
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.
So I'd say it's broken UI then
I agree 100%.
You mean UX, right? Right? =)