Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: fpausp 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:
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:
yum enablerepo=reetp install smeserver-rocketchat
db setprop rocketchat status enabled
-
could you please translate the error message? thank you
-
could you please translate the error message? thank you
"Datei oder Verzeichnis nicht gefunden " means File or Folder not found ...
-
I tried to install on another sm9.1 server:
...
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
...
-
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
cd /opt
find -iname libhttp_parser.so.2
Let me know what you find and I will try and assist you.
B. Rgds
John
-
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 (http://pasted.co/4e573b17)
-
[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!
-
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:
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:
npm install
npm install -g forever
Then you can try
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
-
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.
-
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 :-)
-
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