BLOG     |     FORUM
Welcome, Guest
Username: Password: Remember me
Issues related to installation, running, bugs, and features.
  • Page:
  • 1
  • 2

TOPIC: TRP failure in example code

TRP failure in example code 12 years 1 month ago #646

Hello, I had the issue with the expired cert, but I was able to build my own cert and keys and get past that. I was able to run the first simple demo and make a connection. However, the next sample problem doesnt work for me.
As soon as I add this line:

req = mk_request(TRP::Message::Command::HELLO_REQUEST,
:station_id => "MyAutomationProg")

I get this error message:

"Connection success"
/usr/lib/ruby/1.8/openssl/buffering.rb:178:in `syswrite': Broken pipe (Errno::EPIPE)
from /usr/lib/ruby/1.8/openssl/buffering.rb:178:in `do_write'
from /usr/lib/ruby/1.8/openssl/buffering.rb:192:in `write'
from /usr/lib/ruby/gems/1.8/gems/trisulrp-1.2.11/lib/trisulrp/protocol.rb:70:in `get_response'
from hellotrp.rb:14
from /usr/lib/ruby/gems/1.8/gems/trisulrp-1.2.11/lib/trisulrp/protocol.rb:49:in `connect'
from hellotrp.rb:6


I have tried updating a lot of the gems required by trisulrp, but I have not found the answer yet.

Any suggesions?
The administrator has disabled public write access.

Re:TRP failure in example code 12 years 1 month ago #647

Hi daltonporter,

There appears to be a glitch in TRP that is preventing these scripts from running. I am investigating this.

Can you tell me what OS (32 or 64-bit) you are running ? So when I have the fix tomorrow I can build and test this package first.

Thanks,
Vivek R
Unleash Networks
Support : www.unleashnetworks.com/forums
The administrator has disabled public write access.

Re:TRP failure in example code 12 years 1 month ago #648

uname -a:
Linux trisul 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012 i686 GNU/Linux

/etc/issue:
Ubuntu 10.04.4 LTS

32bit running as a VM in virtualbox


Thank you !
The administrator has disabled public write access.

Re:TRP failure in example code 12 years 1 month ago #650

Hi,

The build should be out today. If you still have the VM around can you post the last few lines of this log file

/usr/local/var/log/trisul/ns-001.log ?


Also are you running the stock ruby that came with Ubuntu 10.04 ?

Much appreciated,

Thanks,
Vivek R
Unleash Networks
Support : www.unleashnetworks.com/forums
The administrator has disabled public write access.

Re:TRP failure in example code 12 years 1 month ago #651

I think I am using ruby that came with the distribution. I had to apt-get some addtional packages. I'm attaching a list of the ruby related packages that I have installed.


ns-001.log

Mon Mar 5 11:30:20 2012.372772 DEBUG Connection from 127.0.0.1
Mon Mar 5 11:30:20 2012.373528 INFO Waiting for Unsniff to initiate SSL/TLS handshake...
Mon Mar 5 11:30:20 2012.473544 INFO Certificate verify ok
Mon Mar 5 11:30:20 2012.474090 INFO Certificate verify ok
Mon Mar 5 11:30:20 2012.519144 ERROR SSL/TLS Client produced an unauthorized certificate
Mon Mar 5 11:30:20 2012.520115 INFO Waiting to accept connections from Unsniff instances


ruby packages:

libdrb-ruby 4.2
liberb-ruby 4.2
libopenssl-ruby 4.2
libopenssl-ruby1.8 1.8.7.249-2ubuntu0.1
libreadline-ruby1.8 1.8.7.249-2ubuntu0.1
libreadline-ruby1.9.1 1.9.1.378-1
libruby 4.2
libruby1.8 1.8.7.249-2ubuntu0.1
libruby1.9.1 1.9.1.378-1
libyaml-ruby 4.2
libzlib-ruby 4.2
rdoc 4.2
ruby 4.2
ruby-dev 4.2
ruby1.8 1.8.7.249-2ubuntu0.1
ruby1.8-dev 1.8.7.249-2ubuntu0.1
ruby1.9.1 1.9.1.378-1
rubygems 1.3.5-1ubuntu2
rubygems1.8 1.3.5-1ubuntu2
rubygems1.9.1 1.3.5-1ubuntu2
The administrator has disabled public write access.

Re:TRP failure in example code 12 years 1 month ago #652

Thanks for the error message and list of gems. The error indicates something wrong with the cert setup.


We have a early access of Trisul 2.4 for Ubuntu 10.04 32-bits here www.unleashnetworks.com/lib/private/0125...ul_2.4.1057_i386.deb

We also have a new trisulrp gem to go with the DEB.


1. Can you install the new DEB ? Uninstall the old one and dpkg -i the new

2. Also uninstall the old trisulrp gem and reinstall

3. The new package contains active certs in /usr/local/etc/trisul/certs/Demo_Client.cert and Demo_Client.key Use them while connecting. The password for the client key is "client"

You can start off by trying this script which prints the top applications seen trisul.org/docs/ug/trp/samples/usagetopapp.html

If things still dont work ensure that you have copied the Demo_Client.crt into /usr/local/etc/trisul/certs/unsniffs/admin_certs - this will allow admin access.

Please let me know if this worked out.
Vivek R
Unleash Networks
Support : www.unleashnetworks.com/forums
Last Edit: 12 years 1 month ago by vivek [unleash].
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: vivek [unleash]
Time to create page: 0.049 seconds