XMPP not working

After my today’s distro upgrade I can’t get XMPP (letschat) working. It worked fine before upgrade.

Now dashobard says it is working, but it is not accessible, when trying to connect to letschat via http (on port 5000) or via xmpp client (pidgin), it always says “cannot connect” or “no response”.

I have tried completly remove xmpp via module admin and install it again, but it is same, it looks working, but is not.

I could not find any operation log files for xmpp. Is there any? Where I can look, what is wrong?

1 Like

Hi
You can create custom fw rule for letschat, Connectivity --> Firewall --> Services --> Custom Services --> Create New Services --> Name " Chat " ; Protocol: TCP and UDP; Single Port: 5000 ; Internet and Local --> Save

Check on FW --> XMPP --> Internet and Local its allowed.

It is not firewall problem, I can’t acces letschat’s interface via http or xmpp even with firewall completely disabled.
Lteschat process is runnig and fully uses one core of cpu:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
29488 asterisk  20   0 1054220  69840  12908 R 101.3  3.6   0:06.92 letschat

I think it is hung on something, but cn’t find any log which could say what is going on…

Ahh found some errors in /var/log/asterisk/xmpp_out.log

2018-01-24 09:32 +00:00: Error: Cannot find module 'lodash._bindcallback'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/html/admin/modules/xmpp/node/node_modules/lodash._createassigner/index.js:9:20)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/html/admin/modules/xmpp/node/node_modules/lodash.assign/index.js:10:22)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/html/admin/modules/xmpp/node/node_modules/node-xmpp-core/lib/Connection.js:11:14)
    at Module._compile (module.js:643:30)

and similar in /var/log/asterisk/xmpp_out.log

2018-01-24 09:34 +00:00: Error: Cannot find module 'lodash._bindcallback'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/html/admin/modules/xmpp/node/node_modules/lodash._createassigner/index.js:9:20)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/html/admin/modules/xmpp/node/node_modules/lodash.assign/index.js:10:22)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/html/admin/modules/xmpp/node/node_modules/node-xmpp-core/lib/Connection.js:11:14)
    at Module._compile (module.js:643:30)

But what to do with it…

Hi
Have you tried to update xmpp or other modules? you can check first your modules.
fwconsole ma listonline
fwconsole ma updateall

if its not work just remove and install again xmpp module.

Best

Yep, reinstall xmpp, even use xmpp from edge, still same problem.

I’ve resolved it for now.
I had to “dive” into node_modules, find where requested module should be and download it manualy into its folder (there was only “metafile” package.json, but not module itself - index.js file was missing).

So now xmpp works again. But it is realy strange that even complete xmpp reinstall did not download this module. I hope that new version of XMPP will not break it again.

Did you file a bug report? issues.freepbx.org

Did not have time yet. Maybe later i will try to remove xmpp again and reinstall, if there will be same problem then will file bug report.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.