Skip to content
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

Crash with "SSL3_GET_RECORD:wrong version number" error. #4412

Closed
ghost opened this issue Sep 22, 2016 · 7 comments · Fixed by #4416
Closed

Crash with "SSL3_GET_RECORD:wrong version number" error. #4412

ghost opened this issue Sep 22, 2016 · 7 comments · Fixed by #4416
Milestone

Comments

@ghost
Copy link

ghost commented Sep 22, 2016

Hi all!
After updating our rocket.chat from 0.39 to the latest 0.40.1 version and updating node js from 0.10.40 to 4.5 we got chat server process crash periodically with error:

2016-09-22 18:36:54 252: Error: 139654647129984:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:362:

We use SSL and nginx config from documentation.

@engelgabriel
Copy link
Member

engelgabriel commented Sep 22, 2016

Is this when you try to send emails?

nodejs/node-v0.x-archive#6779

@engelgabriel
Copy link
Member

Can you share the full stack of the error?

@ghost
Copy link
Author

ghost commented Sep 22, 2016

Crash appear when i send message to General chat. Sending messages to multimple private chat is ok.
Here is app-0.log fragment:

2016-09-22 19:04:47 740: Updating process.env.MAIL_URL
2016-09-22 19:04:47 777: .[32mUsing GridFS for custom emoji storage.[39m
2016-09-22 19:04:47 917: .[32mUsing FileSystem for Avatar storage.[39m
2016-09-22 19:04:48 232: .[32m➔.[39m .[32mSystem ➔ startup.[39m
2016-09-22 19:04:48 233: .[32m➔.[39m .[32m+-------------------------------------------+.[39m
2016-09-22 19:04:48 233: .[32m➔.[39m .[32m| SERVER RUNNING |.[39m
2016-09-22 19:04:48 233: .[32m➔.[39m .[32m+-------------------------------------------+.[39m
2016-09-22 19:04:48 233: .[32m➔.[39m .[32m| |.[39m
2016-09-22 19:04:48 233: .[32m➔.[39m .[32m| Version: 0.40.1 |.[39m
2016-09-22 19:04:48 233: .[32m➔.[39m .[32m| Process Port: 3000 |.[39m
2016-09-22 19:04:48 233: .[32m➔.[39m .[32m| Site URL: https://xxxx.xxxxxxxx.xxxx |.[39m
2016-09-22 19:04:48 234: .[32m➔.[39m .[32m| |.[39m
2016-09-22 19:04:48 234: .[32m➔.[39m .[32m+-------------------------------------------+.[39m
2016-09-22 19:05:43 334: Exception in defer callback: AuthError: Invalid login - 535 Incorrect authentication data
at Object.Future.wait (/var/www/rocket.chat/bundle/programs/server/node_modules/fibers/future.js:449:15)
at smtpSend (packages/email/email.js:89:1)
at Object.Email.send (packages/email/email.js:192:1)
at packages/rocketchat:lib/server/lib/sendEmailOnMessage.js:120:14
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at packages/meteor/timers.js:6:1
at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)
- - - - -
at SMTPClient._actionAUTHComplete (/var/www/rocket.chat/bundle/programs/server/npm/node_modules/meteor/email/node_modules/simplesmtp/lib/client.js:925:23)
at SMTPClient._onData (/var/www/rocket.chat/bundle/programs/server/npm/node_modules/meteor/email/node_modules/simplesmtp/lib/client.js:354:29)
at emitOne (events.js:77:13)
at TLSSocket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at TLSSocket.Readable.push (_stream_readable.js:111:10)
at TLSWrap.onread (net.js:536:20)
2016-09-22 19:05:46 157: Updating process.env.MAIL_URL
2016-09-22 19:05:47 177: ufs: store created at
2016-09-22 19:05:50 380: {"line":"114","file":"migrations.js","message":"Migrations: Not migrating, already at version 61","time":{"$date":1474560350377},"level":"info"}
2016-09-22 19:05:51 235: Updating process.env.MAIL_URL
2016-09-22 19:05:51 322: .[32mUsing GridFS for custom emoji storage.[39m
2016-09-22 19:05:51 491: .[32mUsing FileSystem for Avatar storage.[39m
2016-09-22 19:05:51 934: .[32m➔.[39m .[32mSystem ➔ startup.[39m
2016-09-22 19:05:51 935: .[32m➔.[39m .[32m+-------------------------------------------+.[39m
2016-09-22 19:05:51 935: .[32m➔.[39m .[32m| SERVER RUNNING |.[39m
2016-09-22 19:05:51 935: .[32m➔.[39m .[32m+-------------------------------------------+.[39m
2016-09-22 19:05:51 935: .[32m➔.[39m .[32m| |.[39m
2016-09-22 19:05:51 936: .[32m➔.[39m .[32m| Version: 0.40.1 |.[39m
2016-09-22 19:05:51 936: .[32m➔.[39m .[32m| Process Port: 3000 |.[39m
2016-09-22 19:05:51 936: .[32m➔.[39m .[32m| Site URL: https://xxx.xxxxxxx.xxx |.[39m
2016-09-22 19:05:51 937: .[32m➔.[39m .[32m| |.[39m
2016-09-22 19:05:51 937: .[32m➔.[39m .[32m+-------------------------------------------+.[39m

We don't sending any emails from rocket.chat. Email section doesn't configured.

In the error log only this:
2016-09-22 19:05:43 339: Error: 140486012131200:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:362:
at Error (native)

@engelgabriel
Copy link
Member

Someone in your GENERAL channel has email alerts turned on, and your email server setting is incorrect.

@engelgabriel
Copy link
Member

The PR #4416 will prevent the server from crashing.

@ghost
Copy link
Author

ghost commented Sep 23, 2016

Thanks @engelgabriel !

@sscholl
Copy link
Contributor

sscholl commented May 17, 2017

this issue was closed via #6940 in 0.56.0 FOR ME

Go to Administation->E-Mail->SMTP->Protocol (smtps)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants