Rocket.Chat - SLACK alternative (with MongoDB as backend)

Docker Rocket.Chat - SLACK alternative (with MongoDB as backend)

Currently reading
Docker Rocket.Chat - SLACK alternative (with MongoDB as backend)

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Rusty submitted a new resource:

Rocket.Chat - SLACK alternative (with MongoDB as backend) - Tutorial for setting up RocketChat platform via Docker for running your very own, private chat

View attachment 265


Did you hear of SLACK? How about Discord? Microsoft Teams? Great! Then you know what this tutorial will be all about.

In this tutorial, we will focus on running an open source, private alternative to those platforms. Enter, Rocket.Chat

Just in case that you haven't heard about any of those platforms or have never used them, let say in...

Read more about this resource...
 
1,475
640
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Desperately trying to find something that works now.
Couldn't go past the first step! I think I'm hopeless when it comes to this mongo thing :(

This is what I have:

271



How to do this?! (or is it going to be generated later through all the configurations?)

272
 

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Desperately trying to find something that works now.
Couldn't go past the first step! I think I'm hopeless when it comes to this mongo thing :(

This is what I have:

View attachment 271


How to do this?! (or is it going to be generated later through all the configurations?)

View attachment 272
As I said, create a conf file (using a text editor) and then mount it using the volume section. Just use the Add file button, not folder
 

jeyare

Subscriber
1,587
537
Rusty, how is the E2E encryption?
Till now we use Syno Chat for “secure” conversation and sensitive data exchange (screenshots, etc) for an immediate action execution within team.
Except Android notifications (it sometimes doesn't work properly). All the rest clients work well (our situation iOS/Win,Lnx). Include data exchange from/to NAS.
Also Private key encryption does work perfect. If you lose your passphrase or private Key, then only admin of the particular chat thread can give you back new authorization with no lose of content.
Applicable for a NDA content.
 

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Rusty, how is the E2E encryption?
Not using it atm, still in beta for the time being. Tried it a bit but it was unstable months back. Would have to give it another go to tell you some concrete info.
 

jeyare

Subscriber
1,587
537
Yes, also read about the Beta feature in Rocket. Front end client is nice. But the E2E encryption is must for us. You did again great job!
 

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
The main reason why I stopped using it on my server is this:

The mobile apps may not support the encrypted messages (they are implementing it).

Considering that most users are mobile this will have the most sense to implement when it rolls out.
 

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Ofc... I just prefer not to be locked down. Also at one point Chat didnt offer "outside" users but build DSM users that were suppose to use Chat. Didn't like that. Wit ha 3rd party solution I have no connections to it and also I can deploy it anywhere I want (hw and sw independent).

Still, as a solution inside an organization that uses other Syno apps, there is no reason not to use it.

Also are these private channels or encrypted? Or both?
 

jeyare

Subscriber
1,587
537
Absolutely right - it is just for our internal comm within team (as I wrote). Then no troubles with outside users.
Private and Encrypted comm.
 

jeyare

Subscriber
1,587
537
for all other comm we can use plenty of them - up to customer's wish :cool:
But interested to find an aggregation tool - as Smooch for Docker.
 

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Absolutely right - it is just for our internal comm within team (as I wrote). Then no troubles with outside users.
Private and Encrypted comm.
Yeah we also run an RC and Chat in my team as well. But I prefer RC as a private public chat, just to keep new user creation on DSM to a minimum.
 

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Rusty updated Rocket.Chat - SLACK alternative (with MongoDB as backend) with a new update entry:

Rocket.Chat DB backup and restore steps

In case you ever need to restore your RC content to the same or a separate RC instance you might get into a bit of a problem with MongoDB.

Now unless you are using snapshot replication (for local or remote restore) method you will not be able to just copy paste your MongoDB content to a new mongoDB instance for example because that container will not boot up at all.

What you wanna do (if you are restoring your RC setup to a new location for example) is the following:

01. setup a new...

Read the rest of this update entry...
 
3
0
NAS
DS 218+
Thank you so much for your Tutorial, I really tried to find something like this for a long time. Only thing is, I can't get Rocketchat to connect to MongoDB.
I always get this response:

os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.59+" }, platform: "Node.js v8.11.4, LE, mongodb-core: 3.1.5" }
2019-07-23T09:06:53.653+0000 I ACCESS [conn64] Supported SASL mechanisms requested for unknown user '[email protected]'
2019-07-23T09:06:53.671+0000 I ACCESS [conn64] SASL SCRAM-SHA-1 authentication failed for root on admin from client 172.17.0.5:48900 ; UserNotFound:
Could not find user [email protected]

I can log into mongo db directly without any problems
 
3
0
NAS
DS 218+
I've set my Rocketchat Container to
MONGO_URL = mongodb://root:[email protected]:27017/db?authSource=admin
MONGO_OPLOG_URL = mongodb://root:[email protected]:27017/local?authSource=admin

(for testing purposes I even changed the root pwd for the mongodb user to "yourRootPass". so it should be identical to your tutorial)

Rocketchat crashes and I get the message above from the MongoDB Terminal
 

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
And you have set up an alias on your RC container towards your mongo container under the name "db"?
 
I have a problem when executing a command :mongod --smallfiles --oplogSize 128 --replSet rs0
gets a message:

2019-08-09T10:00:43.239+0000 I CONTROL [initandlisten] options: { replication: { oplogSizeMB: 128, replSet: "rs0" }, storage: { mmapv1: { smallFiles: true } } }
2019-08-09T10:00:43.239+0000 I STORAGE [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /data/db/mongod.lock (Resource temporarily unavailabl
e). Another mongod instance is already running on the /data/db directory, terminating
2019-08-09T10:00:43.239+0000 I CONTROL [initandlisten] now exiting
2019-08-09T10:00:43.239+0000 I CONTROL [initandlisten] shutting down with code:100


does anyone know how to solve this?
Thanks
Mirek
 

Rusty

Moderator
NAS Support
2,371
703
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
I have a problem when executing a command :mongod --smallfiles --oplogSize 128 --replSet rs0
gets a message:

2019-08-09T10:00:43.239+0000 I CONTROL [initandlisten] options: { replication: { oplogSizeMB: 128, replSet: "rs0" }, storage: { mmapv1: { smallFiles: true } } }
2019-08-09T10:00:43.239+0000 I STORAGE [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /data/db/mongod.lock (Resource temporarily unavailabl
e). Another mongod instance is already running on the /data/db directory, terminating
2019-08-09T10:00:43.239+0000 I CONTROL [initandlisten] now exiting
2019-08-09T10:00:43.239+0000 I CONTROL [initandlisten] shutting down with code:100


does anyone know how to solve this?
Thanks
Mirek
How are you running this command exactly? Are you running it after you have started the container or are you starting the container with that command? The idea is to run the container with that command line not run it afterward.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top