XMPP error after monday updates

had about 10 or so updates waiting on me Monday, I installed them and noticed today that XMPP wasn’t running.
did the fwconsole stop and start, got a failure. I did a gui uninstall and remove of XMPP and redownloaded and installed with same results. here is the console start error, looks to me that there is a missing module async , any ideas on how to fix.

[root@pbx-knox ~]# fwconsole stop
Running FreePBX shutdown…

Stopping UCP Node Server
Stopped UCP Node Server
Chat Server is not running
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[============================] 1 sec
[root@pbx-knox ~]# fwconsole start
Running FreePBX startup…
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions…
Setting base permissions…Done
Setting specific permissions…
16981 [============================]
Finished setting permissions
Running Asterisk pre from Firewall module
Running Asterisk pre from Sysadmin module
Running Sysadmin Hooks
Checking Vpn server
Starting Asterisk…
[============================] 1 sec
Asterisk Started
Running Asterisk post from Ucpnode module
Starting UCP Node Server…
[>---------------------------] < 1 sec
Started UCP Node Server. PID is 32313
Running Asterisk post from Xmpp module
Resetting PBX Users Failed: The command “node /var/www/html/admin/modules/xmpp/node/resetpbxusers.js” failed.

Exit Code: 1(General error)

Working directory: /root

Output:

Error Output:

module.js:338
throw err;
^
Error: Cannot find module ‘async’
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/var/www/html/admin/modules/xmpp/node/resetpbxusers.js:3:13)
at Module._compile (module.js:460:26)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)

I’m seeing the same thing and have yet to find the solution. It does appear to be an issue with nodejs, but fixing it has eluded me so far.

so far my users haven’t complained and the system seems to be functional so far.

My dashboard says xmpp is not running. Since I’m not currently using it, it is not a show stopper, but I would like to have a solution.

Anyone submit a ticket?

I wouldn’t. The async package is already listed in /var/www/html/admin/modules/xmpp/node/package.json. So there’s nothing to do from the development end/

This means they need to reinstall xmpp

2 Likes

I did, i uninstalled, then removed, then downloaded and installed via the GUI. would the command line install do anything different

It will show you the output

did the console install here is the output. the core OS has been online for over a year and not updated. might need to install updates.

[root@pbx-knox ~]# fwconsole ma download xmpp
No repos specified, using: [standard,extended,unsupported] from last GUI settings

Starting xmpp download…
Processing xmpp
Verifying local module download…Verified
Extracting…Done
Module xmpp successfully downloaded
[root@pbx-knox ~]# fwconsole ma install xmpp
Installing/Updating Required Libraries. This may take a while…The following messages are ONLY FOR DEBUGGING. Ignore anything that says ‘WARN’ or is just a warning
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
Installed npm-cache v0.7.0
Running installation…
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/xmpp/node/composer.json does not exist. Skipping install
[npm-cache] [INFO] [npm] config file exists
[npm-cache] [INFO] [npm] cli exists
[npm-cache] [INFO] [npm] hash of /var/www/html/admin/modules/xmpp/node/package.json: af6707edb2ff5e018e26921cb83ae4fd
[npm-cache] [INFO] [npm] running [npm install]…
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:95:15)
npm WARN addRemoteGit sangoma/lets-chat#931bc86 resetting remote /home/asterisk/.npm/_git-remotes/git-github-com-sangoma-lets-chat-git-6bde9c86 because of error: { [Error: not found: git] code: ‘ENOGIT’ }
npm ERR! git clone --template=/home/asterisk/.npm/_git-remotes/_templates --mirror git://github.com/sangoma/lets-chat.git /home/asterisk/.npm/_git-remotes/git-github-com-sangoma-lets-chat-git-6bde9c86: undefined
npm ERR! git clone --template=/home/asterisk/.npm/_git-remotes/_templates --mirror git://github.com/sangoma/lets-chat.git /home/asterisk/.npm/_git-remotes/git-github-com-sangoma-lets-chat-git-6bde9c86: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:95:15)
npm WARN addRemoteGit sangoma/lets-chat#931bc86 resetting remote /home/asterisk/.npm/_git-remotes/https-github-com-sangoma-lets-chat-git-f2569456 because of error: { [Error: not found: git] code: ‘ENOGIT’ }
npm ERR! git clone --template=/home/asterisk/.npm/_git-remotes/_templates --mirror https://github.com/sangoma/lets-chat.git /home/asterisk/.npm/_git-remotes/https-github-com-sangoma-lets-chat-git-f2569456: undefined
npm ERR! git clone --template=/home/asterisk/.npm/_git-remotes/_templates --mirror https://github.com/sangoma/lets-chat.git /home/asterisk/.npm/_git-remotes/https-github-com-sangoma-lets-chat-git-f2569456: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:95:15)
npm WARN addRemoteGit sangoma/lets-chat#931bc86 resetting remote /home/asterisk/.npm/_git-remotes/git-github-com-sangoma-lets-chat-git-ee283f0f because of error: { [Error: not found: git] code: ‘ENOGIT’ }
npm ERR! git clone --template=/home/asterisk/.npm/_git-remotes/_templates --mirror [email protected]:sangoma/lets-chat.git /home/asterisk/.npm/_git-remotes/git-github-com-sangoma-lets-chat-git-ee283f0f: undefined
npm ERR! git clone --template=/home/asterisk/.npm/_git-remotes/_templates --mirror [email protected]:sangoma/lets-chat.git /home/asterisk/.npm/_git-remotes/git-github-com-sangoma-lets-chat-git-ee283f0f: undefined
npm ERR! Linux 2.6.32-642.6.2.el6.x86_64
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install”
npm ERR! node v0.12.18
npm ERR! npm v2.15.11
npm ERR! code ENOGIT

npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/admin/modules/xmpp/node/npm-debug.log
[npm-cache] [ERROR] [npm] error running npm install
[npm-cache] [ERROR] error installing dependencies

Finished updating libraries!
Starting new Xmpp Process…Failed!
Generating CSS…Done
Module xmpp successfully installed
Updating Hooks…Done
[root@pbx-knox ~]#

Prior to installing XMPP run:

yum install git
1 Like

got some errors but that seemed to fix it, XMPP is now running, thanks for the help

[root@pbx-knox ~]# fwconsole ma install xmpp
Installing/Updating Required Libraries. This may take a while…The following messages are ONLY FOR DEBUGGING. Ignore anything that says ‘WARN’ or is just a warning
Found npm-cache v0.7.0
Running installation…
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/xmpp/node/composer.json does not exist. Skipping install
[npm-cache] [INFO] [npm] config file exists
[npm-cache] [INFO] [npm] cli exists
[npm-cache] [INFO] [npm] hash of /var/www/html/admin/modules/xmpp/node/package.json: af6707edb2ff5e018e26921cb83ae4fd
[npm-cache] [INFO] [npm] running [npm install]…
npm WARN addRemoteGit Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:754:12)
npm WARN addRemoteGit at ChildProcess.emit (events.js:110:17)
npm WARN addRemoteGit at maybeClose (child_process.js:1019:16)
npm WARN addRemoteGit at Socket. (child_process.js:1190:11)
npm WARN addRemoteGit at Socket.emit (events.js:107:17)
npm WARN addRemoteGit at Pipe.close (net.js:484:11)
npm WARN addRemoteGit sangoma/lets-chat#931bc86 resetting remote /home/asterisk/.npm/_git-remotes/git-github-com-sangoma-lets-chat-git-6bde9c86 because of error: { [Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: ‘git config --get remote.origin.url’ }
npm WARN engine [email protected]: wanted: {“node”:“0.8.x”} (current: {“node”:“0.12.18”,“npm”:“2.15.11”})
npm WARN deprecated [email protected]: not actively maintained anymore
npm WARN engine [email protected]: wanted: {“node”:">=5.0.0"} (current: {“node”:“0.12.18”,“npm”:“2.15.11”})
npm WARN deprecated [email protected]: use @xmpp/jid package https://www.npmjs.com/package/@xmpp/jid
npm WARN engine [email protected]: wanted: {“node”:">=4"} (current: {“node”:“0.12.18”,“npm”:“2.15.11”})

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