Im running "ansible-playbook site.yml"
Im starting with it, so first Im installing it in my server following the guide.
I will run again the command.
Thank you
You can just use "sudo /etc/init.d/sas-viya-rabbitmq-server-default start" command. You do not need to restart a playbook.
Thank you very much for your help.
I would like to deploy SAS so I prefer to run the playbook following the guide. I think if it finish properly, SAS will be installed on my server. I guess this is the way to install SAS...
It keeps failing:
ASK [rabbitmq-x64_redhat_linux_6-yum : Execute Invoke cluster setup] **********
fatal: [deployTarget]: FAILED! => {"changed": true, "cmd": ["/opt/sas/viya/home/bin/setup_rabbit_cluster", "--hostlist", "sas.tecdesoft.es", "--home", "/opt/sas/viya/home", "--config", "/opt/sas/viya/config", "--service", "sas-viya-rabbitmq-server-default", "--logfile", "/tmp/sas_setup_rabbit_cluster.log"], "delta": "0:05:09.000109", "end": "2019-09-11 15:22:28.677871", "msg": "non-zero return code", "rc": 3, "start": "2019-09-11 15:17:19.677762", "stderr": "", "stderr_lines": [], "stdout": "mié sep 11 15:17:19 CEST 2019 setup_rabbit_cluster *************\nmié sep 11 15:17:19 CEST 2019 setup_rabbit_cluster Beginning SAS RabbitMQ clustering setup\nmié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster SSL is true\nmié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster CHECK_PORT is 5671\nmié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster First host in list is sas.tecdesoft.es\nmié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster First host shortname is sas\nmié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster Primary Host is sas.tecdesoft.es\nmié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster Primary Short Host is sas\nmié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster My Host is sas.tecdesoft.es\nmié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster I am the primary host\nmié sep 11 15:17:20 CEST 2019 setup_rabbit_cluster Copy generated Erlang shared secret to Rabbit.\nmié sep 11 15:17:28 CEST 2019 setup_rabbit_cluster Copying generated Erlang shared secret to Rabbit.\nmié sep 11 15:17:28 CEST 2019 setup_rabbit_cluster Starting sas-viya-rabbitmq-server-default\nmié sep 11 15:22:28 CEST 2019 setup_rabbit_cluster The RabbitMQ service sas-viya-rabbitmq-server-default could not be started.\nmié sep 11 15:22:28 CEST 2019 setup_rabbit_cluster Returned status was 1\nmié sep 11 15:22:28 CEST 2019 setup_rabbit_cluster Setup failed. Beware of independent Rabbit hosts running with different shared secrets.", "stdout_lines": ["mié sep 11 15:17:19 CEST 2019 setup_rabbit_cluster *************", "mié sep 11 15:17:19 CEST 2019 setup_rabbit_cluster Beginning SAS RabbitMQ clustering setup", "mié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster SSL is true", "mié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster CHECK_PORT is 5671", "mié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster First host in list is sas.tecdesoft.es", "mié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster First host shortname is sas", "mié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster Primary Host is sas.tecdesoft.es", "mié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster Primary Short Host is sas", "mié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster My Host is sas.tecdesoft.es", "mié sep 11 15:17:20 CEST 2019 (debug) setup_rabbit_cluster I am the primary host", "mié sep 11 15:17:20 CEST 2019 setup_rabbit_cluster Copy generated Erlang shared secret to Rabbit.", "mié sep 11 15:17:28 CEST 2019 setup_rabbit_cluster Copying generated Erlang shared secret to Rabbit.", "mié sep 11 15:17:28 CEST 2019 setup_rabbit_cluster Starting sas-viya-rabbitmq-server-default", "mié sep 11 15:22:28 CEST 2019 setup_rabbit_cluster The RabbitMQ service sas-viya-rabbitmq-server-default could not be started.", "mié sep 11 15:22:28 CEST 2019 setup_rabbit_cluster Returned status was 1", "mié sep 11 15:22:28 CEST 2019 setup_rabbit_cluster Setup failed. Beware of independent Rabbit hosts running with different shared secrets."]}
That is weird. Again, make sure there are no Erlang processes or any processes started by sasrabbitmq user:
ps -ef | grep -i erl ps -ef | grep sasrabbitmq
If something is there, kill them. Also, clean up Mnesia database. That database will be recreated automatically:
sudo rm -rf /opt/sas/viya/config/var/lib/rabbitmq-server/mnesia/*
I made it. I killed the process with kill -9... i runned again "ansible-playbook sites.yml"
I also deleted the database.
Still fail:
TASK [rabbitmq-x64_redhat_linux_6-yum : Execute Invoke cluster setup] **********
fatal: [deployTarget]: FAILED! => {"changed": true, "cmd": ["/opt/sas/viya/home/bin/setup_rabbit_cluster", "--hostlist", "sas.tecdesoft.es", "--home", "/opt/sas/viya/home", "--config", "/opt/sas/viya/config", "--service", "sas-viya-rabbitmq-server-default", "--logfile", "/tmp/sas_setup_rabbit_cluster.log"], "delta": "0:05:08.828862", "end": "2019-09-11 15:46:59.902887", "msg": "non-zero return code", "rc": 3, "start": "2019-09-11 15:41:51.074025", "stderr": "", "stderr_lines": [], "stdout": "mié sep 11 15:41:51 CEST 2019 setup_rabbit_cluster *************\nmié sep 11 15:41:51 CEST 2019 setup_rabbit_cluster Beginning SAS RabbitMQ clustering setup\nmié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster SSL is true\nmié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster CHECK_PORT is 5671\nmié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster First host in list is sas.tecdesoft.es\nmié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster First host shortname is sas\nmié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster Primary Host is sas.tecdesoft.es\nmié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster Primary Short Host is sas\nmié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster My Host is sas.tecdesoft.es\nmié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster I am the primary host\nmié sep 11 15:41:51 CEST 2019 setup_rabbit_cluster Copy generated Erlang shared secret to Rabbit.\nmié sep 11 15:41:59 CEST 2019 setup_rabbit_cluster Copying generated Erlang shared secret to Rabbit.\nmié sep 11 15:41:59 CEST 2019 setup_rabbit_cluster Starting sas-viya-rabbitmq-server-default\nmié sep 11 15:46:59 CEST 2019 setup_rabbit_cluster The RabbitMQ service sas-viya-rabbitmq-server-default could not be started.\nmié sep 11 15:46:59 CEST 2019 setup_rabbit_cluster Returned status was 1\nmié sep 11 15:46:59 CEST 2019 setup_rabbit_cluster Setup failed. Beware of independent Rabbit hosts running with different shared secrets.", "stdout_lines": ["mié sep 11 15:41:51 CEST 2019 setup_rabbit_cluster *************", "mié sep 11 15:41:51 CEST 2019 setup_rabbit_cluster Beginning SAS RabbitMQ clustering setup", "mié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster SSL is true", "mié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster CHECK_PORT is 5671", "mié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster First host in list is sas.tecdesoft.es", "mié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster First host shortname is sas", "mié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster Primary Host is sas.tecdesoft.es", "mié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster Primary Short Host is sas", "mié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster My Host is sas.tecdesoft.es", "mié sep 11 15:41:51 CEST 2019 (debug) setup_rabbit_cluster I am the primary host", "mié sep 11 15:41:51 CEST 2019 setup_rabbit_cluster Copy generated Erlang shared secret to Rabbit.", "mié sep 11 15:41:59 CEST 2019 setup_rabbit_cluster Copying generated Erlang shared secret to Rabbit.", "mié sep 11 15:41:59 CEST 2019 setup_rabbit_cluster Starting sas-viya-rabbitmq-server-default", "mié sep 11 15:46:59 CEST 2019 setup_rabbit_cluster The RabbitMQ service sas-viya-rabbitmq-server-default could not be started.", "mié sep 11 15:46:59 CEST 2019 setup_rabbit_cluster Returned status was 1", "mié sep 11 15:46:59 CEST 2019 setup_rabbit_cluster Setup failed. Beware of independent Rabbit hosts running with different shared secrets."]}
Well, I would like to see the most recent log files from /opt/sas/viya/config/var/log/rabbitmq-server/default directory. Also, /opt/sas is a regular folder or a symbolic link?
Also, show me the output from "echo $SHELL" command.
Hello again,
I guess it's a regular folder. Please, find attached logs.
[root@sas Descargas]# echo $SHELL
/bin/bash
Thank you very much
Here is the error. Most likely the certificates weren't generated or were generated for the localhost:
15:50:46.977 [error] management.listener.ssl_opts.certfile invalid, file doesn/t exist or isn't readable^M 15:50:46.977 [error] management.listener.ssl_opts.keyfile invalid, file doesn/t exist or isn't readable^M 15:50:46.980 [error] Error generating configuration in phase validation^M 15:50:46.980 [error] management.listener.ssl_opts.certfile invalid, file doesn/t exist or isn't readable^M 15:50:46.980 [error] management.listener.ssl_opts.keyfile invalid, file doesn/t exist or isn't readable^M
Let's do this. Run deploy-cleanup.yml (do not forget to remove HTTPD too). Then restart the server and rerun the deployment once again.
Could I ask you how to run the cleanup? ansible-playbook deploy-cleanup.yml? right?
What I have to do with HTTPD?
When you say restart server you mean reboot?
Thank you very much, and sorry for inconvenience. Im totally new in that
ansible-playbook deploy-cleanup.yml? right?
Yes. More details here: https://go.documentation.sas.com/?docsetId=dplyml0phy0lax&docsetTarget=n1ktdjrbj88kndn1m01l2hf7jze5....
When you say restart server you mean reboot?
Yes.
Now I got this error:
ASK [Create consul.conf environment file] *************************************
fatal: [deployTarget]: FAILED! => {"changed": false, "msg": "Failed to create remote module tmp path at dir /tmp/.user.ansible/ with prefix ansible-moduletmp-1568214708.14-: [Errno 13] Permiso denegado: '/tmp/.user.ansible/ansible-moduletmp-1568214708.14-RLMvMH'"}
Itś permission denied. Im running that command as root. So I don know the problem...
Show me the output from these commands:
grep tmp /etc/fstab ls -ld /tmp/.user.ansible/
Here are the results:
[root@sas sas_viya_playbook]# grep tmp /etc/fstab
[root@sas sas_viya_playbook]# ls -ld /tmp/.user.ansible/
drwx------. 2 root root 6 sep 11 17:11 /tmp/.user.ansible/
[root@sas sas_viya_playbook]#
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.