-
Notifications
You must be signed in to change notification settings - Fork 475
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
ECONNRESET #188
Comments
Actually this problem seems to be related to at least iojs 2.0.0 I haven't tested farther back and node 4.0.0, but is fine on node < v0.12.x |
Do your laptops have the same version of RabbitMQ server as well? |
It is on a remote rabbit, i haven't gone through the trouble of messing with ssl on local rabbit just yet, cause i realized my other laptop had been switch to node 0.12.4 for previous work, so i was mistaken they were on the same version of node. I just narrowed the breaking change to iojs 1.8.4 anything >= to that or the latest nodejs version will duplicate.
|
What I am actually curious about now, is if there are other services (not rabbit) that i can duplicate this on. |
As in, just creating an TLS connection at all? Yes, that would be good to know. |
Yes, but i'm not sure how to quickly test such a thing, before I go tromping off to the node repo itself. Do you have any suggestions? |
So i just used the |
Just to check, does the server log say anything like
? (That's what my local one does when I try the SSL example in examples/ssl.js) |
|
It's worth going through https://www.rabbitmq.com/troubleshooting-ssl.html (from the troublesome laptop), if you've not already; especially the "Check keys and certificates with OpenSSL" section. |
Well we have previously checked that too:
The thing is, this server config works with php / python (pika) with zero problems, it is only somehow connected with the previous mentioned iojs and latest nodejs, but i am unsure how to really test if this is just rabbit related or a deeper issue. |
Ah good, OK so we know that RabbitMQ doesn't have a problem with the certs in general. Hmm. Can you connect using those certificates and just tls.connect? (https://nodejs.org/api/tls.html#tls_tls_connect_port_host_options_callback) (it won't do the AMQP handshake, but you should see at least in the logs whether RabbitMQ accepts the TLS connection) |
Same error |
@cheshirecatalyst make sure you run Erlang 17 or 18, this function_clause failure certainly looks familiar and from the pre-17.0 days. |
@michaelklishin You sir are a gentleman and a scholar, that was %100 it. Was running 16 for some reason. Now on 18 everything is fine. Still odd to me that the combination of (iojs || latest node) + old erlang = fail, when all the other scripting languages i tried had no problem. |
4 months on, I have node 5.5.0, RMQ 3.6.0 Erlang 18:2 on Ubuntu. Sanity test "openssl s_client -connect localhost:5671" works. However I have the same problem: Upgrading to Erlang 18.2 didn't solve the issue. Any help is appreciated. I couldn't get amqps/TLS work with amqplib. amqp works. var amqp = require('amqplib');
var fs = require('fs');
var opts = {
cert: fs.readFileSync('/root/client/cert.pem'),
key: fs.readFileSync('/root/client/key.pem'),
passphrase: 'password',
ca: [fs.readFileSync('/root/testca/cacert.pem')]
};
// var opts = {};
var open = amqp.connect('amqps://localhost', opts);
open.then(function(conn) {
process.on('SIGINT', conn.close.bind(conn));
return conn.createChannel().then(function(ch) {
ch.sendToQueue('foo', new Buffer('Hello World!'));
});
}).then(null, console.warn); |
@ecoruh I'm afraid nobody can help you without seeing full server logs. |
@ecoruh Can you connect via SSL using any other kind of client? (ideally one of the official ones). |
Ah I see -- ignore my comment! |
I have two laptops that i switch between development work on, they are both running the latest osx and have the same version of node and this library.
However on one i get this when trying to connect to a
amqps://
{ [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
I was wondering if you could provide any insight, or a way i could maybe get a little more information out of the client, the server logs aren't very helpful
The text was updated successfully, but these errors were encountered: