Closed slyk closed 5 years ago
Seems like there can be problems with SMTP mail config. Another one config that I'm trying to turn off or revert to defaults... right now, after clearing SMTP config fields messages sent ok, without restarting... We'll try using it actively in next monday, to understand is it really the case. If so, the good idea would be to catch this error and tell people where is the problem. I'll keep you informed.
Please let us know if you narrow down what field being incorrect is causing this to fail.
@geekgonecrazy I can confirm after a day of active usage, when I reset all fields in SMTP settings I got no restarts.
Then, I just added one setting - "host" for SMTP, and got restart with error on the third message I send to myself in chat.
The host I set in settings does not have any SMTP server installed (it was previously, but then it was disabled). So giving the wrong SMTP host to RocketChat leads to error for me. I don't get any special error and don't found any traces to SMTP error, just turning off each function one by one can help find this.
It would be great for others that lost their SMTP server connection to tell them about that problem instead of just restarting.
P.S. sometimes after reseting SMTP settings, I should to relogin before problem disappear.
I think I'm experiencing the same issue on my snap installation, but I tried clearing the SMTP as described above and the issue doesn't seem to go away. Here's my server's info:
Version of Rocket.Chat Server: 0.73.2 Operating System: Ubuntu 18.04 Deployment Method: snap Number of Running Instances: 1 NodeJS Version: 8.11.3 - x64 MongoDB Version: v3.2.7
And here's what keeps getting printed to the log every time rocket.chat restarts (which is every 30 seconds - 5 minutes, seemingly random)
Jan 28 15:53:51 trout systemd[1]: Started Service for snap application rocketchat-server.rocketchat-server.
Jan 28 15:53:51 trout rocketchat-server.rocketchat-server[30584]: Checking if oplog has been enabled, and enabling if not
Jan 28 15:53:51 trout rocketchat-server.rocketchat-server[30584]: MongoDB shell version: 3.2.7
Jan 28 15:53:51 trout rocketchat-server.rocketchat-server[30584]: connecting to: test
Jan 28 15:53:51 trout rocketchat-server.rocketchat-server[30584]: /snap/rocketchat-server/1362/bin/startRocketChat: line 28: /var/snap/rocketchat-server/common/*.env: No such file or directory
Jan 28 15:53:54 trout rocketchat-server.rocketchat-server[30584]: Updating process.env.MAIL_URL
Jan 28 15:53:55 trout rocketchat-server.rocketchat-server[30584]: Starting Email Intercepter...
Jan 28 15:53:56 trout rocketchat-server.rocketchat-server[30584]: Warning: connect.session() MemoryStore is not
Jan 28 15:53:56 trout rocketchat-server.rocketchat-server[30584]: designed for a production environment, as it will leak
Jan 28 15:53:56 trout rocketchat-server.rocketchat-server[30584]: memory, and will not scale past a single process.
Jan 28 15:53:56 trout rocketchat-server.rocketchat-server[30584]: Setting default file store to FileSystem
Jan 28 15:53:59 trout rocketchat-server.rocketchat-server[30584]: {"line":"121","file":"migrations.js","message":"Migrations: Not migrating, already at version 137","time":{"$date":1548708839781},"level":"info"}
Jan 28 15:54:00 trout rocketchat-server.rocketchat-server[30584]: Using GridFS for custom sounds storage
Jan 28 15:54:00 trout rocketchat-server.rocketchat-server[30584]: Using GridFS for custom emoji storage
Jan 28 15:54:00 trout rocketchat-server.rocketchat-server[30584]: Updating process.env.MAIL_URL
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: The App 22236eb7-1786-42bc-846c-a086dd072c2e is checking if "math" command exists.
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: The App 22236eb7-1786-42bc-846c-a086dd072c2e is registering the command: "math"
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: Loaded the Apps Framework and loaded a total of 1 Apps!
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ System ➔ startup
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ +-------------------------------------------------+
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | SERVER RUNNING |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ +-------------------------------------------------+
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | Rocket.Chat Version: 0.73.2 |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | NodeJS Version: 8.11.3 - x64 |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | Platform: linux |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | Process Port: 3000 |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | Site URL: https://chat.burpg.space |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | ReplicaSet OpLog: Enabled |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | Commit Hash: 8ff0e3da16 |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | Commit Branch: HEAD |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ | |
Jan 28 15:54:02 trout rocketchat-server.rocketchat-server[30584]: ➔ +-------------------------------------------------+
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: Bugsnag: Encountered an uncaught error, terminating…
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: TypeError: err.stack.split is not a function
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at Object.exports.parse (/snap/rocketchat-server/1362/programs/server/npm/node_modules/stack-trace/lib/stack-trace.js:26:25)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at new Error (/snap/rocketchat-server/1362/programs/server/npm/node_modules/bugsnag/lib/error.js:69:28)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at Function.Error.buildErrors (/snap/rocketchat-server/1362/programs/server/npm/node_modules/bugsnag/lib/error.js:82:20)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at notify (/snap/rocketchat-server/1362/programs/server/npm/node_modules/bugsnag/lib/bugsnag.js:37:34)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at Object.Bugsnag.notify (/snap/rocketchat-server/1362/programs/server/npm/node_modules/bugsnag/lib/bugsnag.js:174:10)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at notify (packages/rocketchat:lib/server/lib/bugsnag.js:22:21)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at Object.Meteor._debug (packages/rocketchat:lib/server/lib/bugsnag.js:32:2)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at Object.Meteor._debug (packages/rocketchat:error-handler/server/lib/RocketChat.ErrorHandler.js:41:32)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at wrapInternalException (packages/ddp-server/livedata_server.js:1737:12)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at promise.then.exception (packages/ddp-server/livedata_server.js:745:25)
Jan 28 15:54:06 trout rocketchat-server.rocketchat-server[30584]: at /snap/rocketchat-server/1362/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Jan 28 15:54:06 trout systemd[1]: snap.rocketchat-server.rocketchat-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 28 15:54:06 trout systemd[1]: snap.rocketchat-server.rocketchat-server.service: Failed with result 'exit-code'.
Needless to say, this bug is seriously degrading server usability, so any suggestions for fixes?
When I was searching for some bug description, I found that there were problem in Node fibers module. But after 11.2 the problem seems like solved...
Can you provide a link to that bug? And if this is the issue, is it possible to upgrade that node module inside the snap?
On Jan 29, 2019, at 3:09 PM, slyk notifications@github.com wrote:
When I was searching for some bug description, I found that there were problem in Node fibers module. But after 11.2 the problem seems like solved...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Can you provide a link to that bug? And if this is the issue, is it possible to upgrade that node module inside the snap? … On Jan 29, 2019, at 3:09 PM, slyk @.***> wrote: When I was searching for some bug description, I found that there were problem in Node fibers module. But after 11.2 the problem seems like solved... — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
That bug report was solved in Node 8.11.2 as far as I remember, so when I've updated to 811.3 my server and continue to get my error, I closed tab with that bugtracker.
You can't update node inside a snap, or docker come to that. You can only do it on a manual type of install.
Regarding modules, I'm not sure but does a snap import and build modules when it is installing, and if so, is this yet another fibers module issue where they've moved the goalposts (again)?
I also note that snap appears to run on node 8.11.3 but say docker is on 8.11.4 Will that make a difference (not that it can be changed inside a snap as per my first comment - a rebuild would be required)
Regarding modules, I'm not sure but does a snap import and build modules when it is installing, and if so, is this yet another fibers module issue where they've moved the goalposts (again)?
Snap ships node modules frozen in stone. Npm shouldn’t even come shipped in it :)
0.74 is in candidate channel if you’d like to give it a go
@geekgonecrazy can we close this?
I think so. Please comment here if this should be re-opened @slyk
Description:
I got RocketChat server snap version 0.73.2 on Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-141-generic x86_64) at DigitalOcean. Almost every time I send direct message I see that client had lost connection... rocketchat-server is restarting.
The message is send ok, so when server is restarted I see that message.
Steps to reproduce:
Actual behavior:
Rocketchat server is restarted almost every time I send a message. Switching between channels/users and reading messages is ok.
Server Setup Information:
Additional context
TypeError:
err.stack.split
is not a function atreturn originalRun.call(this, val);
packages/rocketchat_monitoring.js:3549Relevant logs:
contents of the syslog:
PS: