Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed on Configure st2 user #3024

Closed
nghazala opened this issue Nov 14, 2016 · 7 comments
Closed

Failed on Configure st2 user #3024

nghazala opened this issue Nov 14, 2016 · 7 comments

Comments

@nghazala
Copy link

Hi,

I got this error during the installation :

Failed on Configure st2 user

@arm4b
Copy link
Member

arm4b commented Nov 14, 2016

Thanks for the report!

More details would be useful.
What OS, installation method, stackstorm version, details about target box (vagrant box, AWS AMI, etc)?
Also, where exactly you see that error?

@nghazala
Copy link
Author

Thks for your feedback

curl -sSL https://stackstorm.com/packages/install.sh | bash -s -- --user=user --password=pwd

My laptop :
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-327.36.2.el7.x86_64 #1 SMP Mon Oct 10 23:08:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)

@Kami
Copy link
Member

Kami commented Nov 14, 2016

Thanks.

Can you please also gist the whole output of the installer script when you run it (it should print more, not just the single line error message)?

@nghazala
Copy link
Author

st2 components status

st2actionrunner PID: 11753
st2actionrunner PID: 11755
st2actionrunner PID: 11757
st2actionrunner PID: 11759
st2actionrunner PID: 11761
st2actionrunner PID: 11763
st2actionrunner PID: 11765
st2actionrunner PID: 11767
st2actionrunner PID: 11769
st2actionrunner PID: 11771
st2api PID: 8550
st2api PID: 18277
st2stream PID: 799
st2stream PID: 12221
st2auth PID: 14486
st2auth PID: 27473
st2garbagecollector PID: 11781
st2notifier PID: 11783
st2resultstracker PID: 11785
st2rulesengine PID: 11787
st2sensorcontainer PID: 18097
st2chatops PID: 26479
mistral-server PID: 13069
mistral-api PID: 789
mistral-api PID: 793
mistral-api PID: 13068
Registering content...[flags = --register-all]
2016-11-14 15:51:19,996 INFO [-] Connecting to database "st2" @ "0.0.0.0:27017" as user "None".
2016-11-14 15:51:20,053 INFO [-] =========================================================
2016-11-14 15:51:20,053 INFO [-] ############## Registering triggers #####################
2016-11-14 15:51:20,053 INFO [-] =========================================================
2016-11-14 15:51:20,099 INFO [-] Registered 0 triggers.
2016-11-14 15:51:20,099 INFO [-] =========================================================
2016-11-14 15:51:20,099 INFO [-] ############## Registering sensors ######################
2016-11-14 15:51:20,099 INFO [-] =========================================================
2016-11-14 15:51:20,131 INFO [-] Registered 1 sensors.
2016-11-14 15:51:20,131 INFO [-] =========================================================
2016-11-14 15:51:20,131 INFO [-] ############## Registering actions ######################
2016-11-14 15:51:20,131 INFO [-] =========================================================
2016-11-14 15:51:21,594 INFO [-] Registered 60 actions.
2016-11-14 15:51:21,594 INFO [-] =========================================================
2016-11-14 15:51:21,595 INFO [-] ############## Registering rules ########################
2016-11-14 15:51:21,595 INFO [-] =========================================================
2016-11-14 15:51:21,618 INFO [-] Registered 1 rules.
2016-11-14 15:51:21,618 INFO [-] =========================================================
2016-11-14 15:51:21,618 INFO [-] ############## Registering aliases ######################
2016-11-14 15:51:21,618 INFO [-] =========================================================
2016-11-14 15:51:21,708 INFO [-] Registered 9 aliases.
2016-11-14 15:51:21,709 INFO [-] =========================================================
2016-11-14 15:51:21,709 INFO [-] ############## Registering policy types #################
2016-11-14 15:51:21,709 INFO [-] =========================================================
2016-11-14 15:51:21,730 INFO [-] Registered 3 policy types.
2016-11-14 15:51:21,730 INFO [-] =========================================================
2016-11-14 15:51:21,730 INFO [-] ############## Registering policies #####################
2016-11-14 15:51:21,730 INFO [-] =========================================================
2016-11-14 15:51:21,731 INFO [-] Registered 0 policies.
2016-11-14 15:51:21,731 INFO [-] =========================================================
2016-11-14 15:51:21,731 INFO [-] ############## Registering configs ######################
2016-11-14 15:51:21,731 INFO [-] =========================================================
2016-11-14 15:51:21,731 INFO [-] Registered 0 configs.

st2 components status

st2actionrunner PID: 11753
st2actionrunner PID: 11755
st2actionrunner PID: 11757
st2actionrunner PID: 11759
st2actionrunner PID: 11761
st2actionrunner PID: 11763
st2actionrunner PID: 11765
st2actionrunner PID: 11767
st2actionrunner PID: 11769
st2actionrunner PID: 11771
st2api PID: 8550
st2api PID: 18277
st2stream PID: 799
st2stream PID: 12221
st2auth PID: 14486
st2auth PID: 27473
st2garbagecollector PID: 11781
st2notifier PID: 11783
st2resultstracker PID: 11785
st2rulesengine PID: 11787
st2sensorcontainer PID: 18097
st2chatops PID: 26479
mistral-server PID: 13069
mistral-api PID: 789
mistral-api PID: 793
mistral-api PID: 13068
uid=1001(stanley) gid=1001(stanley) groups=1001(stanley)
Generating public/private rsa key pair.
/home/stanley/.ssh/stanley_rsa already exists.
Overwrite (y/n)? ############### ERROR ###############

Failed on Configure st2 user

#####################################
[root@localhost ~]#

@nghazala
Copy link
Author

Humm i think i have an idea why , my selinux is disabled and should be Enforced to proceed with the configuration of st2 user , what you think ?

@Kami
Copy link
Member

Kami commented Nov 14, 2016

It looks like the user SSH key exist aka you probably already ran the script on the server and it failed half way through.

I would recommend you to run the script again on a fresh server / vm - the script is designed to run only once on a fresh, purpose provisioned server / vm.

@arm4b
Copy link
Member

arm4b commented Nov 16, 2016

I assume this Issue is answered by @Kami.

@nghazala Otherwise re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants