000033381 - RSA Security Analytics - mco ping fails after editing truststore.pem file

Document created by RSA Customer Support Employee on Jul 3, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000033381
Applies ToRSA Product Set: RSA Security Analytics
RSA Version/Condition: 10.5.x, 10.6.x
IssueAfter editing truststore.pem under /etc/puppet/modules/rabbitmq/files/ on the SA head unit, mco ping fails with the following error:
[root@saserver2 log]# mco ping
The ping application failed to run, use -v for full error backtrace details: Could not connect to RabbitMQ Server:

Running the command in verbose mode will throw up the following error:
[root@saserver2 log]# mco ping -v
The ping application failed to run: Could not connect to RabbitMQ Server:

Could not connect to RabbitMQ Server: (RuntimeError)
from /usr/libexec/mcollective/mcollective/connector/rabbitmq.rb:144:in `connect' <----
from /usr/lib/ruby/site_ruby/1.8/mcollective/client.rb:18:in `initialize'
from /usr/libexec/mcollective/mcollective/application/ping.rb:52:in `new'
from /usr/libexec/mcollective/mcollective/application/ping.rb:52:in `main'
from /usr/lib/ruby/site_ruby/1.8/mcollective/application.rb:291:in `run'
from /usr/lib/ruby/site_ruby/1.8/mcollective/applications.rb:23:in `run'
from /usr/bin/mco:24

/var/log/mcollective will contains errors as shown below:
E, [2016-06-17T11:37:42.987837 #27887] ERROR -- : rabbitmq.rb:45:in `on_ssl_connectfail' SSL session creation with stomp+ssl://@172.16.38.14:61614 failed: PEM lib
I, [2016-06-17T11:37:42.987988 #27887] INFO -- : rabbitmq.rb:25:in `on_connectfail' TCP Connection to stomp+ssl://@172.16.38.14:61614 failed on attempt 32
E, [2016-06-17T11:37:46.342144 #47868] ERROR -- : rabbitmq.rb:45:in `on_ssl_connectfail' SSL session creation with stomp+ssl://@172.16.38.14:61614 failed: PEM lib
I, [2016-06-17T11:37:46.342289 #47868] INFO -- : rabbitmq.rb:25:in `on_connectfail' TCP Connection to stomp+ssl://@172.16.38.14:61614 failed on attempt 11
E, [2016-06-17T11:38:06.828962 #47868] ERROR -- : rabbitmq.rb:45:in `on_ssl_connectfail' SSL session creation with stomp+ssl://@172.16.38.14:61614 failed: PEM lib
I, [2016-06-17T11:38:06.829495 #47868] INFO -- : rabbitmq.rb:25:in `on_connectfail' TCP Connection to stomp+ssl://@172.16.38.14:61614 failed on attempt 12
E, [2016-06-17T11:38:07.025208 #34793] ERROR -- : rabbitmq.rb:45:in `on_ssl_connectfail' SSL session creation with stomp+ssl://@172.16.38.14:61614 failed: PEM lib

 
CauseThis happens post editing of the truststore.pem file (while installing SecOps) and if the file contains unnecessary blank lines
ResolutionTo fix, edit the /etc/puppet/modules/rabbitmq/files/truststore.pem file and remove any blank lines.
Example: If the file is as follows, remove the blank line before the first "END CERTIFICATE" and the blank like between the two certificates
BEFORE EDITING
# cat /etc/puppet/modules/rabbitmq/files/truststore.pem
-----BEGIN CERTIFICATE-----
MIIFuDCCA6CgAwIBAgIBATANBgkqhkiG9w0BAQsFADA6MTgwNgYDVQQDDC9QdXBw
ZXQgQ0E6IDZjZTc5YzU4LWMwNzktNDU1OS1hMWJmLTMyMTA3MDYwMGUzNDAeFw0x
NDA5MDgxOTMyMTdaFw0xOTA5MDgxOTMyMTdaMDoxODA2BgNVBAMML1B1cHBldCBD
QTogNmNlNzljNTgtYzA3OS00NTU5LWExYmYtMzIxMDcwNjAwZTM0MIICIjANBgkq
hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvmL8hy4N15ArJGOLvu/9WFxzzvlaCejx
czMUO8qdqv5l+8sLfZ9CL1kjg+dYHhsXpJz899W//GWm+b2PMNYPZhUJ6WBnrk4q
hCRpx0t3KdjyMeEGC1TjbTXPC6qANXIvYVBb8rbZx9B/+IKnhQsQCMBKuQDW0aqI
H3N5ocXuH+00HtbDxq6XXjFOeiNcP4YIq+JzkZOGmSk0ix10Ry1Jkj336H181vJV
N0atATzTm1/t+z2wbw0xpF4Lhi7ZBlpYg9AwYanf/0SRYfn6/OzFcP0ErtJO8Res
7uSA6tucNVRFjl3MVKl844D3S0u5LSysqeELoz5AbwNJSrSB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