RE: Ruby qpid client + SSL 'Unknown protocol'
Great - thanks for the follow-up Wesley! > -Original Message- > From: Wesley Holevinski [mailto:wes...@adaptiveapps.com] > Sent: Tuesday, March 18, 2014 12:04 PM > To: users@qpid.apache.org > Subject: RE: Ruby qpid client + SSL 'Unknown protocol' > > All, > > Found it! After thinking about it more, I was setting those environment > variables after loading the gem. Setting the ENV variables (specifically the > one to load the ssl connector) before requiring the gem did the trick. > > Thanks, > Wes > > From: Wesley Holevinski [wes...@adaptiveapps.com] > Sent: Tuesday, March 18, 2014 11:47 AM > To: users@qpid.apache.org > Subject: Ruby qpid client + SSL 'Unknown protocol' > > Hi all, > > I'm having issues getting my ruby client to connect over SSL. I'm getting > this > error: > > irb(main):014:0> c = Qpid::Messaging::Connection.new(:url => > 'localhost:1', :options=>{:transport=>'ssl'}) => > # @options={"transport"=>"ssl"}, > @connection_impl=#> > irb(main):015:0> c.open() > MessagingError: Unknown protocol: ssl (qpid/client/Connector.cpp:52) > > To establish a baseline, I've gotten SSL clients working in python, C++, and > Java so far. I'm working with the qpid_messaging 0.18.5 gem. > > I have qpid-cpp-client-ssl and server-ssl installed. RPM list: > > $ rpm -qa | grep qpid | sort > python-qpid-0.18-9.el6.noarch > python-qpid-qmf-0.18-20.el6.x86_64 > qpid-cpp-client-0.18-20.el6.x86_64 > qpid-cpp-client-devel-0.18-20.el6.x86_64 > qpid-cpp-client-ssl-0.18-20.el6.x86_64 > qpid-cpp-server-0.18-20.el6.x86_64 > qpid-cpp-server-ssl-0.18-20.el6.x86_64 > qpid-qmf-0.18-20.el6.x86_64 > qpid-tools-0.18-10.el6.noarch > > I've tried setting the following so that the cqpid extension (and presumably > the qpid library underneath) would pick these up: > > ENV['QPID_SSL_CERT_DB'] = '/nfs_home/wholevinski/ssl_test/client_db' > ENV['QPID_SSL_CERT_NAME'] = 'QpidCppClient' > ENV['QPID_SSL_CERT_PASSWORD_FILE']='/nfs_home/wholevinski/ssl_test/ > qpid-broker-pfile' > ENV['QPID_LOAD_MODULE'] = '/usr/lib64/qpid/client/sslconnector.so' > > I don't think I've reached a point where the first 3 ENV variables are even > relevant yet though; my hunch is that the sslconnector.so isn't being loaded, > and the protocolRegistry inside qpid/client/Connector.cpp isn't updated. > > If anyone has any experience with SSL + a ruby client and has any ideas, or > insight into what I might be doing wrong, please let me know. > > Thanks! > Wes > > - > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional > commands, e-mail: users-h...@qpid.apache.org - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org
RE: Ruby qpid client + SSL 'Unknown protocol'
All, Found it! After thinking about it more, I was setting those environment variables after loading the gem. Setting the ENV variables (specifically the one to load the ssl connector) before requiring the gem did the trick. Thanks, Wes From: Wesley Holevinski [wes...@adaptiveapps.com] Sent: Tuesday, March 18, 2014 11:47 AM To: users@qpid.apache.org Subject: Ruby qpid client + SSL 'Unknown protocol' Hi all, I'm having issues getting my ruby client to connect over SSL. I'm getting this error: irb(main):014:0> c = Qpid::Messaging::Connection.new(:url => 'localhost:1', :options=>{:transport=>'ssl'}) => #"ssl"}, @connection_impl=#> irb(main):015:0> c.open() MessagingError: Unknown protocol: ssl (qpid/client/Connector.cpp:52) To establish a baseline, I've gotten SSL clients working in python, C++, and Java so far. I'm working with the qpid_messaging 0.18.5 gem. I have qpid-cpp-client-ssl and server-ssl installed. RPM list: $ rpm -qa | grep qpid | sort python-qpid-0.18-9.el6.noarch python-qpid-qmf-0.18-20.el6.x86_64 qpid-cpp-client-0.18-20.el6.x86_64 qpid-cpp-client-devel-0.18-20.el6.x86_64 qpid-cpp-client-ssl-0.18-20.el6.x86_64 qpid-cpp-server-0.18-20.el6.x86_64 qpid-cpp-server-ssl-0.18-20.el6.x86_64 qpid-qmf-0.18-20.el6.x86_64 qpid-tools-0.18-10.el6.noarch I've tried setting the following so that the cqpid extension (and presumably the qpid library underneath) would pick these up: ENV['QPID_SSL_CERT_DB'] = '/nfs_home/wholevinski/ssl_test/client_db' ENV['QPID_SSL_CERT_NAME'] = 'QpidCppClient' ENV['QPID_SSL_CERT_PASSWORD_FILE']='/nfs_home/wholevinski/ssl_test/qpid-broker-pfile' ENV['QPID_LOAD_MODULE'] = '/usr/lib64/qpid/client/sslconnector.so' I don't think I've reached a point where the first 3 ENV variables are even relevant yet though; my hunch is that the sslconnector.so isn't being loaded, and the protocolRegistry inside qpid/client/Connector.cpp isn't updated. If anyone has any experience with SSL + a ruby client and has any ideas, or insight into what I might be doing wrong, please let me know. Thanks! Wes - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org
Re: Connection errors after 500 concurrent connections
Le 15/03/2014 00:30, Jakub Scholz a écrit : > The qpidd has an option --max-connections which is by default set to 500. > This is most probably what is causing you trouble. You need to increase > this limit either directly from command line or in the configuration file. Thank you very much Jakub, that's exactly what I was looking for. Emmanuel Bourg - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org
Ruby qpid client + SSL 'Unknown protocol'
Hi all, I'm having issues getting my ruby client to connect over SSL. I'm getting this error: irb(main):014:0> c = Qpid::Messaging::Connection.new(:url => 'localhost:1', :options=>{:transport=>'ssl'}) => #"ssl"}, @connection_impl=#> irb(main):015:0> c.open() MessagingError: Unknown protocol: ssl (qpid/client/Connector.cpp:52) To establish a baseline, I've gotten SSL clients working in python, C++, and Java so far. I'm working with the qpid_messaging 0.18.5 gem. I have qpid-cpp-client-ssl and server-ssl installed. RPM list: $ rpm -qa | grep qpid | sort python-qpid-0.18-9.el6.noarch python-qpid-qmf-0.18-20.el6.x86_64 qpid-cpp-client-0.18-20.el6.x86_64 qpid-cpp-client-devel-0.18-20.el6.x86_64 qpid-cpp-client-ssl-0.18-20.el6.x86_64 qpid-cpp-server-0.18-20.el6.x86_64 qpid-cpp-server-ssl-0.18-20.el6.x86_64 qpid-qmf-0.18-20.el6.x86_64 qpid-tools-0.18-10.el6.noarch I've tried setting the following so that the cqpid extension (and presumably the qpid library underneath) would pick these up: ENV['QPID_SSL_CERT_DB'] = '/nfs_home/wholevinski/ssl_test/client_db' ENV['QPID_SSL_CERT_NAME'] = 'QpidCppClient' ENV['QPID_SSL_CERT_PASSWORD_FILE']='/nfs_home/wholevinski/ssl_test/qpid-broker-pfile' ENV['QPID_LOAD_MODULE'] = '/usr/lib64/qpid/client/sslconnector.so' I don't think I've reached a point where the first 3 ENV variables are even relevant yet though; my hunch is that the sslconnector.so isn't being loaded, and the protocolRegistry inside qpid/client/Connector.cpp isn't updated. If anyone has any experience with SSL + a ruby client and has any ideas, or insight into what I might be doing wrong, please let me know. Thanks! Wes