esl / MongooseIM

MongooseIM is Erlang Solutions' robust, scalable and efficient XMPP server, aimed at large installations. Specifically designed for enterprise purposes, it is fault-tolerant and can utilise the resources of multiple clustered machines.
Other
1.67k stars 427 forks source link

MongooseIM Suse Linux Enterprise server Intalltion error #1137

Closed vickydhas closed 7 years ago

vickydhas commented 7 years ago

MongooseIM version: 2.0.0 Installed from: github Erlang/OTP version: 18

I was able to build the Mongoose server on Suse Linux after all dependancies and library support , the build is also complete with no error but the mongooseim folder was not generated.

developer@suse-linux-enterprise:~/mim/MongooseIM> sudo make
./rebar get-deps > deps.log 2>&1 || (cat deps.log; exit 1)
./rebar  compile > compile.log 2>&1 || (cat compile.log; exit 1)

developer@suse-linux-enterprise:~/mim/MongooseIM> ls
apps             COPYING                   doc           Makefile     rebar                test
CHANGELOG.md     deps                      ebin          mkdocs.yml   rebar.config         tools
compile.log      deps.log                  elvis.config  priv         rebar.config.script  VERSION
configure.out    dialyzer.ignore-warnings  examples      readlink.sh  rel
CONTRIBUTING.md  dialyzer.mk               index.html    README.md    src

developer@suse-linux-enterprise:~/mim/MongooseIM> cd rel/

developer@suse-linux-enterprise:~/mim/MongooseIM/rel> ls

configure.vars.config  files  reltool.config.script  reltool_vars  vars.config.in
kklocek commented 7 years ago

Hi @vickydhas !

You need to run commands make and after that make rel to generate MongooseIM build.

Reference here

vickydhas commented 7 years ago

Yes my apology i forgot this.

Okay I installed the reltool from yast and yes, its done , but when I start the mongoose server it just stops automatically. Attached my ejabberd.cfg and other crash log files for more information

vickydhas commented 7 years ago

erl_crash.dump.txt ejabberd.txt erlang.log.1.txt run_erl.txt

kklocek commented 7 years ago

I am not a developer here but in logs I saw: {"Kernel pid terminated",application_controller,"{application_start_failure,fast_tls,{{shutdown,{failed_to_start_child,fast_tls,{open_error,-10}}},{fast_tls_app,start,[normal,[]]}}}"}

Maybe some silly questions:

  1. Ensure you have installed openssl
  2. Do make clean
  3. Again make and make rel
vickydhas commented 7 years ago
developer@suse-linux-enterprise:~/mim/MongooseIM/rel/mongooseim/log> openssl
OpenSSL> 
OpenSSL>

Yes I think so , sorry but this entire setup works very well in ubuntu but we looking to try on suse linux , i faced such issues on mac so we changed to ubuntu and now exploring Suse capabilities.

developer@suse-linux-enterprise:~/mim/MongooseIM/rel/mongooseim/log> sudo zypper install openssl

Loading repository data... Reading installed packages... 'openssl' is already installed. No update candidate for 'openssl-1.0.2j-55.1.x86_64'. The highest available version is already installed. Resolving package dependencies...

fenek commented 7 years ago

Hi @vickydhas

Please check if OpenSSL development package is installed as well. I don't know the exact name for SuSE but most probably it will be openssl-devel or openssl-dev

vickydhas commented 7 years ago

Thanks for this valuable input I am able to install and register the user using mnesia, let me check with the MS SQL as its not integrating with this chat server even after following guidelines of Backend Database configuration on MongooseIM Read Docs.

vickydhas commented 7 years ago

Closing this bug as i have resolved it by adjusting the odbc.ini, idbcinst.ini and freetds.conf settings.

I have to enable the ports in local machine for the outside users to access in linux. I used Yast , Security & Users -- Firewall and Advanced settings changed to port 5222 enabled and 1433.

Hope this help some one.

Now facing this issue where offline message are stored in DB and seen in DB when queried and emptied when user comes online. but the actual message is not received / sent from MIM to user. also checked the ejabberd.log.

this settings is confirmed to add {backend, odbc} to mod_offline module. FYI.