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.
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
[[email protected] ~]# 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 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/
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.
[[email protected] ~]# 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
[[email protected] ~]# 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