Koozali.org: home of the SME Server

Rocket Chat:Contrib

Offline fpausp

  • *
  • 728
  • +0/-0
Rocket Chat:Contrib
« on: September 02, 2016, 12:17:00 PM »
I tried to install the contrib on sme9 (2.6.32-642.4.2.el6.x86_64) but got a few plroblems. Please take a look:

Code: [Select]
service rocketchat start

/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



P.S. - this shoud be corrected:

Code: [Select]
yum enablerepo=reetp install smeserver-rocketchat

db setprop rocketchat status enabled
Viribus unitis

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Rocket Chat:Contrib
« Reply #1 on: September 02, 2016, 01:32:51 PM »
could you please translate the error message? thank you

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Rocket Chat:Contrib
« Reply #2 on: September 02, 2016, 06:54:43 PM »
Quote
could you please translate the error message? thank you

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

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Rocket Chat:Contrib
« Reply #3 on: September 02, 2016, 07:58:23 PM »
I tried to install on another sm9.1 server:

Code: [Select]
...
  Installieren : rocketchat-0.0.38.0-1.noarch                                                                                                      1/1
Create symbolic link to npm
Create symbolic link to node
Installing npm modules for RocketChat - this may take a while
node: error while loading shared libraries: libhttp_parser.so.2: cannot open shared object file: No such file or directory
node: error while loading shared libraries: libhttp_parser.so.2: cannot open shared object file: No such file or directory
No rocketchat service. You may need smeserver-rocketchat installed
  Verifying    : rocketchat-0.0.38.0-1.noarch                                                                                                      1/1
...
Viribus unitis

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: Rocket Chat:Contrib
« Reply #4 on: September 04, 2016, 02:30:59 AM »
Sorry - been out and about.

Did you follow the steps on the wiki precisely ?

The rocketchat 'bundle' is experimental and thank you for trying it. It needs someone brave to have a go so we can iron out any bugs !

I have not seen this error anywhere before - it looks like something is not installed correctly

Can you check if this file exists :

/opt/rh/nodejs010/root/usr/lib64/libhttp_parser.so.2

You can try

Code: [Select]
cd /opt
find -iname libhttp_parser.so.2

Let me know what you find and I will try and assist you.

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: Rocket Chat:Contrib
« Reply #5 on: September 04, 2016, 03:00:07 PM »
OK John, i tried it today on a fresh installed, updated sme9 server. Please take a look on the complete install log:

RocketChatInstallError - http://pasted.co/4e573b17
Viribus unitis

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Rocket Chat:Contrib
« Reply #6 on: September 04, 2016, 03:34:53 PM »
Code: [Select]
[root@sme9test ~]# scl enable nodejs010 bash

[root@sme9test ~]# npm install -g inherits
inherits@2.0.1 /opt/rh/nodejs010/root/usr/lib/node_modules/inherits

[root@sme9test ~]# npm install -g n
/opt/rh/nodejs010/root/usr/bin/n -> /opt/rh/nodejs010/root/usr/lib/node_modules/n/bin/n
n@2.1.4 /opt/rh/nodejs010/root/usr/lib/node_modules/n

[root@sme9test ~]# n 0.10.40

     install : node-v0.10.40
       mkdir : /usr/local/n/versions/node/0.10.40
       fetch : https://nodejs.org/dist/v0.10.40/node-v0.10.40-linux-x64.tar.gz
######################################################################## 100,0%
   installed : v0.10.40

[root@sme9test ~]# exit

[root@sme9test ~]# find / -name libhttp_parser.so.2
/opt/rh/nodejs010/root/usr/lib64/libhttp_parser.so.2


[root@sme9test ~]# yum -y install rocketchat --enablerepo=reetp

Geladene Plugins: fastestmirror, smeserver
Einrichten des Installationsprozess
Loading mirror speeds from cached hostfile
 * base: mirror.nextlayer.at
 * smeaddons: mirror.pialasse.com
 * smeextras: mirror.pialasse.com
 * smeos: mirror.pialasse.com
 * smeupdates: mirror.pialasse.com
 * updates: mirror.nextlayer.at
reetp                                                                              | 2.9 kB     00:00
reetp/primary_db                                                                   | 339 kB     00:00
Löse Abhängigkeiten auf
--> Führe Transaktionsprüfung aus
---> Package rocketchat.noarch 0:0.0.38.0-1 will be installiert
--> Abhängigkeitsauflösung beendet

Abhängigkeiten aufgelöst

==========================================================================================================
 Paket                      Arch                   Version                    Repository            Grösse
==========================================================================================================
Installieren:
 rocketchat                 noarch                 0.0.38.0-1                 reetp                  62 M

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

Gesamte Downloadgrösse: 62 M
Installed size: 198 M
Lade Pakete herunter:
rocketchat-0.0.38.0-1.noarch.rpm                                                   |  62 MB     00:18
Führe rpm_check_debug durch
Führe Verarbeitungstest durch
Verarbeitungstest erfolgreich
Führe Verarbeitung durch
  Installieren : rocketchat-0.0.38.0-1.noarch                                                         1/1
Create symbolic link to npm
Create symbolic link to node
Installing npm modules for RocketChat - this may take a while
node: error while loading shared libraries: libhttp_parser.so.2: cannot open shared object file: No such file or directory
node: error while loading shared libraries: libhttp_parser.so.2: cannot open shared object file: No such file or directory
No rocketchat service. You may need smeserver-rocketchat installed
  Verifying    : rocketchat-0.0.38.0-1.noarch                                                         1/1

Installiert:
  rocketchat.noarch 0:0.0.38.0-1

Komplett!
Viribus unitis

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: Rocket Chat:Contrib
« Reply #7 on: September 04, 2016, 04:02:22 PM »
Hi,

Sorry for the issues - this is still highly experimental !

Clearly some paths are not set correctly as you appear to have the file there.

I think this may be a clue:

Quote
No rocketchat service. You may need smeserver-rocketchat installed

Is this on a test machine and are you able to try a few things for me ?

I *think* the issue is due to setting up SCL paths so that they are found during the rocketchat install. I may need to add a couple of extra script lines for an initial install.

I think we need smeserver-rocketchat installed first, but if we reboot to set the DB configs and paths it will complain that rocketchat files are not there at startup.

If we install rocketchat itself first we get the errors that you have seen. All a bit chicken and egg :-)

For now, try doing post-upgrade/reboot. Then try manually doing:

Code: [Select]
npm install
npm install -g forever

Then you can try

Code: [Select]
service rocketchat restart
and see what happens (note it can take a while to get itself going - monitor /var/log/rocketchat/log)

I know once you have it running the rocketchat RPM seems to upgrade OK - it is just the initial install that is the issue.

As another test, could you try installing smeserver-rocketchat first, enable it, reboot, ignore any errors (though I would like to see them) and then install rocketchat itself ?

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

guest22

Re: Rocket Chat:Contrib
« Reply #8 on: September 04, 2016, 08:21:57 PM »
I *think* SCL environments are not activated by the contrib....

Please see the wiki page on how to source these _before_ any action with nodejs or any other scl application.

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: Rocket Chat:Contrib
« Reply #9 on: September 07, 2016, 06:22:00 PM »
I *think* SCL environments are not activated by the contrib....

Please see the wiki page on how to source these _before_ any action with nodejs or any other scl application.

Yup - I believe that is the issue.

Wondering if I can source them in the smeserver-rocketchat post-install and prior to installing the man blob It gets tricky :-)
...
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,950
  • +6/-0
Re: Rocket Chat:Contrib
« Reply #10 on: November 23, 2016, 01:57:41 PM »
Just added smeserver-rocketchat 0.1-7 and rocketchat 0.46.0 to my repo

I have updated the wiki as well.

Note you cannot use SCL for nodejs as RocketChat requires a higher version than available. Notes are on the wiki.

Seems to upgrade mine working system OK :-)

Please let me know if there are any issues with the contrib.

There are plenty with Rocket itself as it is still very experimental. Please check https://github.com/RocketChat for more details.

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