Koozali.org: home of the SME Server

[NEW HOWTO] Rocket.Chat

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #75 on: May 07, 2016, 12:10:17 PM »
I have a compiled mod_proxy_wstunnel for el6 in my repo, but I haven't tested it at all (yet)

Yes, I was trying it :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #76 on: May 07, 2016, 03:46:29 PM »
OK, I have found a possible fix for mail:

[root@test opt]# diff -ruN ./Rocket.Chat/programs/server/npm/email/node_modules/mailcomposer/lib/mailcomposer.js ./Rocket.Chat/programs/server/npm/email/node_modules/mailcomposer/lib/mailcomposer.orig
--- ./Rocket.Chat/programs/server/npm/email/node_modules/mailcomposer/lib/mailcomposer.js 2016-05-07 14:07:22.426311320 +0200
+++ ./Rocket.Chat/programs/server/npm/email/node_modules/mailcomposer/lib/mailcomposer.orig 2016-05-07 14:12:58.010375819 +0200
@@ -99,11 +99,6 @@
this._gencounter = 0;

this.addHeader("MIME-Version", "1.0");
-// Set up the date
- var dateObj = new Date();
-// Convert to UTC
- dateObj = dateObj.toUTCString();
// Now add the header element
- this.addHeader("Date", dateObj);
};

/* PUBLIC API */

This forces all mails to have the date added (I think !)

HOWEVER !

This does not fix the email issue on install as there is no 'From' address until such time as the DB is populated

It probably needs something along the lines of 'if From == '' then From == 'admin@locahost' or somesuch or alternatively add something to the DB on install of the contrib. I'll look at that later.

There is also a coding bug in the Subject Line for mails which adds <br> to the subject line. I'll try and find a fix for that as well, but it is just cosmetic and can be overridden by a custom template in Rocket.

Let me know if this make any difference please.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

guest22

Re: [NEW HOWTO] Rocket.Chat
« Reply #77 on: May 20, 2016, 03:03:46 AM »
I have a compiled mod_proxy_wstunnel for el6 in my repo, but I haven't tested it at all (yet)

Using your RPM and the below http settings, there are no more 'ws' errors. So it seems that your RPM is working just fine, also according to other log files.

https://wiki.contribs.org/Talk:Rocket_Chat

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #78 on: August 31, 2016, 02:50:59 PM »
As a FYI I now have two contrib RPMs

smeserver-rocketchat - this adds the rocketchat init service and manages some settings

rocketchat - this is the main 'app' bundle

I have made notes here :

https://wiki.contribs.org/Rocket_Chat:Contrib

I am still trying to work out some more logic for different configurations

As far as I can see there would be:

Local access only
Remote access via http
Remote access via https

Remote access via http/proxy
Remote access via https/proxy

I have been testing with HSF and we can run it from Remote using https and a reverse proxy using Daniels mod_proxy contrib to get Voice and Video calls

Each of these options could be to the main host, or to a subdomain on the host, or even elsewhere. Gets a bit tricky at that point due to the httpd.conf configurations/permutations !

If anyone wants to have a play then please let me know and I can explain some config options

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline fpausp

  • *
  • 728
  • +0/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #79 on: October 10, 2016, 09:50:22 AM »
Tried your contrib until the db command:


Code: [Select]
[root@sme9chat ~]# db setprop rocketchat status enabled
usage:
    /sbin/e-smith/db dbfile keys
    /sbin/e-smith/db dbfile print [key]
    /sbin/e-smith/db dbfile show [key]
    /sbin/e-smith/db dbfile get key
    /sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
    /sbin/e-smith/db dbfile setdefault key type [prop1 val1] [prop2 val2] ...
    /sbin/e-smith/db dbfile delete key
    /sbin/e-smith/db dbfile printtype [key]
    /sbin/e-smith/db dbfile gettype key
    /sbin/e-smith/db dbfile settype key type
    /sbin/e-smith/db dbfile printprop key [prop1] [prop2] [prop3] ...
    /sbin/e-smith/db dbfile getprop key prop
    /sbin/e-smith/db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...
    /sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...

Viribus unitis

guest22

Re: [NEW HOWTO] Rocket.Chat
« Reply #80 on: October 10, 2016, 09:53:17 AM »
corrected on the wiki page.

Offline fpausp

  • *
  • 728
  • +0/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #81 on: October 10, 2016, 09:59:15 AM »
I used:

Code: [Select]
db configuration setprop rocketchat status enabled

instead of:

Code: [Select]
db setprop rocketchat status enabled


but on the end I was not able to start the service:

Code: [Select]
[root@sme9chat ~]# service rocketchat restart
Shutting down rocketchat: /etc/rc.d/init.d/rocketchat: Zeile 104: /opt/rh/nodejs010/root/usr/lib/node_modules/forever/bin/forever: Datei oder Verzeichnis nicht gefunden
Not running
/etc/rc.d/init.d/rocketchat: Zeile 64: /opt/rh/nodejs010/root/usr/lib/node_modules/forever/bin/forever: Datei oder Verzeichnis nicht gefunden
Starting rocketchat
/etc/rc.d/init.d/rocketchat: Zeile 82: /opt/rh/nodejs010/root/usr/lib/node_modules/forever/bin/forever: Datei oder Verzeichnis nicht gefunden


"Datei oder Verzeichnis nicht gefunden" means "File or Folder not found" ...


Viribus unitis

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #82 on: October 10, 2016, 07:46:25 PM »
I used:

Code: [Select]
db configuration setprop rocketchat status enabled

instead of:

Code: [Select]
db setprop rocketchat status enabled

Or you could have used:

Code: [Select]
config setprop rocketchat status enabled

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #83 on: October 10, 2016, 08:54:25 PM »
Sorry but am on holiday at the minute.

FYI from v0.40 onwards a higher version of nodejs than is provided by SCL is required.

I have got v0.42 running but have not documented it as yet, nor looked at building a RPM, as it requires a different setup. I'll look further in a week or so.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline fpausp

  • *
  • 728
  • +0/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #84 on: October 11, 2016, 12:32:33 AM »
OK, John. Please let me know when you are ready...

Best
fpausp
Viribus unitis

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #85 on: October 31, 2016, 12:43:26 PM »
Just setup a new test box and I am going to try and write up how to install for 0.40 +

I have 0.44 (current) running on another machine but it is a manual hack.

I'll write back once I have some notes.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline fpausp

  • *
  • 728
  • +0/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #86 on: October 31, 2016, 03:10:57 PM »
OK John, sounds good...

Viribus unitis

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #87 on: October 31, 2016, 07:50:41 PM »
OK, a couple of RPMs to test.

Please DON'T try this on a production box. Test boxes that you do no value ONLY. You have been warned.

Read these notes first :
https://github.com/reetp/smeserver-rocketchat/blob/master/Notes-0.44.txt

You can get the RPMs here - I've only just built them and not even installed them myself yet.....:

First one alows you to manage settings:
wget https://www.reetspetit.com/Test/smeserver-rocketchat-0.1-6.noarch.rpm

This one includes a patched version of rocket.chat for mailcomposer Missing header
wget https://www.reetspetit.com/Test/rocketchat-0.0.44.0-1.noarch.rpm

You can yum localinstall them at the relevant points in the notes.

You can anualy download and install rocket directly like this:
wget https://rocket.chat/releases/0.44.0/download; tar zxvf rocket.chat.tgz; mv bundle /opt/Rocket.Chat

Check the permissions on the files in /opt

I also have it running with HTTPS and reverse proxy. If anyone wants a test login on my test box to play and chat then let me know.

I will have a go at installing from the ground up myself tomorrow but am going out for dinner now !

Let me know if there are any issues.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #88 on: November 01, 2016, 06:24:30 PM »
OK, updated today to v 0.45 so I built a new RPM

wget https://www.reetspetit.com/Test/rocketchat-0.0.45.0-1.noarch.rpm

I managed to upgrade my main test box without any issues - it barfs a lot whilst it is upgrading whilst it messes with node/npm, but the upshot is it came back up without any intervention  :-)

Beware -I have seen a report that audio is scuppered with 0.45 and you can't downgrade. https://github.com/RocketChat/Rocket.Chat/issues/4808

I am just rebuilding a local V9 VM so I can test on a clean install. Will advise accordingly.

Let me know if there are any issues.

B. Rgds
JC
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline fpausp

  • *
  • 728
  • +0/-0
Re: [NEW HOWTO] Rocket.Chat
« Reply #89 on: November 03, 2016, 08:24:58 PM »
Code: [Select]
[root@sme9test ~]# yum localinstall rocketchat-0.0.45.0-1.noarch.rpm
Geladene Plugins: fastestmirror, smeserver
Einrichten der lokalen Paketverarbeitung
Untersuche rocketchat-0.0.45.0-1.noarch.rpm: rocketchat-0.0.45.0-1.noarch
Markiere rocketchat-0.0.45.0-1.noarch.rpm zum Installieren
Determining fastest mirrors
 * base: mirror.nextlayer.at
 * smeaddons: mirror.pialasse.com
 * smeextras: mirror.pialasse.com
 * smeos: mirror.pialasse.com
 * smeupdates: mirror.pialasse.com
 * updates: mirror.nextlayer.at
base                                                                                                                                      | 3.7 kB     00:00
base/primary_db                                                                                                                           | 4.7 MB     00:15
smeaddons                                                                                                                                 | 2.9 kB     00:00
smeaddons/primary_db                                                                                                                      | 1.2 kB     00:00
smeextras                                                                                                                                 | 2.9 kB     00:00
smeextras/primary_db                                                                                                                      | 109 kB     00:00
smeos                                                                                                                                     | 3.1 kB     00:00
smeos/primary_db                                                                                                                          | 1.1 MB     00:04
smeupdates                                                                                                                                | 2.9 kB     00:00
smeupdates/primary_db                                                                                                                     | 500 kB     00:03
updates                                                                                                                                   | 3.4 kB     00:00
updates/primary_db                                                                                                                        | 3.1 MB     00:09
Löse Abhängigkeiten auf
--> Führe Transaktionsprüfung aus
---> Package rocketchat.noarch 0:0.0.45.0-1 will be installiert
--> Abhängigkeitsauflösung beendet

Abhängigkeiten aufgelöst

=================================================================================================================================================================
 Paket                             Arch                          Version                              Repository                                           Grösse
=================================================================================================================================================================
Installieren:
 rocketchat                        noarch                        0.0.45.0-1                           /rocketchat-0.0.45.0-1.noarch                        352 M

Vorgangsübersicht
=================================================================================================================================================================
Install       1 Package(s)

Gesamtgrösse: 352 M
Installed size: 352 M
Ist dies in Ordnung? [j/N] :j
Lade Pakete herunter:
Führe rpm_check_debug durch
Führe Verarbeitungstest durch
Verarbeitungstest erfolgreich
Führe Verarbeitung durch
  Installieren : rocketchat-0.0.45.0-1.noarch                                                                                                                1/1
Installing npm modules for RocketChat - this may take a while
/var/tmp/rpm-tmp.jHi2bA: Zeile 5: npm: Kommando nicht gefunden.
/var/tmp/rpm-tmp.jHi2bA: Zeile 6: npm: Kommando nicht gefunden.
No rocketchat service. You may need smeserver-rocketchat installed
  Verifying    : rocketchat-0.0.45.0-1.noarch                                                                                                                1/1

Installiert:
  rocketchat.noarch 0:0.0.45.0-1

Komplett!


"Kommando nicht gefunden." - means command not found...

Viribus unitis