FreePBX | Register | Issues | Wiki | Portal | Support

Zulu erroring out


(Jimmy) #1

Hello all, I upgraded the modules on a couple of my PBX’s to the latest and greatest and found Zulu kept erroring out and would not run for me. When checking the logs, I found the following:

2018-12-27 12:52 -07:00: Error: Cannot find module ‘ltx’
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 _0x26e47d.(anonymous function) (/var/www/html/admin/modules/zulu/node/index.js:1:24242)
at _0x2a9a20 (/var/www/html/admin/modules/zulu/node/index.js:1:21999)
at _0x26e47d.(anonymous function) (/var/www/html/admin/modules/zulu/node/index.js:1:22464)
at _0x2a9a20 (/var/www/html/admin/modules/zulu/node/index.js:1:21999)
at /var/www/html/admin/modules/zulu/node/index.js:1:276209
at Object. (/var/www/html/admin/modules/zulu/node/index.js:1:276252)

Upon further checking the directory /var/www/html/admin/modules/zulu/node/node_modules, I see that the module ltx is no longer present. I tried doing a full uninstall and remove of Zulu and reinstall and no luck.

Zulu module: 13.0.56.2
PBX Version: 10.13.66-15


#2

I’m having a similar issue. Here’s the install log as well as some of the debug log:

[root@asterisk1 bin]# fwconsole ma downloadinstall zulu
No repos specified, using: [commercial,standard,extended,unsupported] from last GUI settings

Starting zulu download…
Processing zulu
Verifying local module download…Verified
Extracting…Done
Module zulu successfully downloaded
Updating tables zulu_interactions_interaction_states, zulu_softphones, zulu_tokens, zulu_interactions_contacts, zulu_interactions_interactions, zulu_interactions_owners, zulu_interactions_members, zulu_interactions_streams, zulu_interactions_stream_bodies, zulu_interactions_stream_links, zulu_interactions_stream_actions, zulu_login_tokens…Done
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/zulu/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/zulu/node/package.json: 5bc75c37e25ed3d18cd2d4f367c6964b
[npm-cache] [INFO] [npm] running [npm install]…
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.

websocket@1.0.28 install /var/www/html/admin/modules/zulu/node/node_modules/websocket
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /var/www/html/admin/modules/zulu/node/node_modules/websocket/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o make: Leaving directory/var/www/html/admin/modules/zulu/node/node_modules/websocket/build’

ws@0.4.31 install /var/www/html/admin/modules/zulu/node/node_modules/ari-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /var/www/html/admin/modules/zulu/node/node_modules/ari-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o make: Leaving directory/var/www/html/admin/modules/zulu/node/node_modules/ari-client/node_modules/ws/build’

node-expat@2.3.17 install /var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules/node-expat
node-gyp rebuild

make: Entering directory /var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules/node-expat/build' CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o AR(target) Release/obj.target/deps/libexpat/libexpat.a COPY Release/libexpat.a CXX(target) Release/obj.target/node_expat/node-expat.o In file included from ../node_modules/nan/nan.h:53, from ../node-expat.cc:1: /home/asterisk/.node-gyp/0.12.18/include/node/node.h: In function ‘void node::FatalException(const v8::TryCatch&)’: /home/asterisk/.node-gyp/0.12.18/include/node/node.h:273: warning: ‘void node::FatalException(v8::Isolate*, const v8::TryCatch&)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node.h:270) /home/asterisk/.node-gyp/0.12.18/include/node/node.h: In function ‘v8::Local<v8::Value> node::Encode(const void*, size_t, node::encoding)’: /home/asterisk/.node-gyp/0.12.18/include/node/node.h:282: warning: ‘v8::Local<v8::Value> node::Encode(v8::Isolate*, const void*, size_t, node::encoding)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node.h:278) /home/asterisk/.node-gyp/0.12.18/include/node/node.h: In function ‘ssize_t node::DecodeBytes(v8::Handle<v8::Value>, node::encoding)’: /home/asterisk/.node-gyp/0.12.18/include/node/node.h:294: warning: ‘ssize_t node::DecodeBytes(v8::Isolate*, v8::Handle<v8::Value>, node::encoding)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node.h:291) /home/asterisk/.node-gyp/0.12.18/include/node/node.h: In function ‘ssize_t node::DecodeWrite(char*, size_t, v8::Handle<v8::Value>, node::encoding)’: /home/asterisk/.node-gyp/0.12.18/include/node/node.h:307: warning: ‘ssize_t node::DecodeWrite(v8::Isolate*, char*, size_t, v8::Handle<v8::Value>, node::encoding)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node.h:302) In file included from ../node_modules/nan/nan.h:54, from ../node-expat.cc:1: /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h: In function ‘v8::Local<v8::Object> node::Buffer::New(v8::Handle<v8::String>, node::encoding)’: /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:55: warning: ‘v8::Local<v8::Object> node::Buffer::New(v8::Isolate*, v8::Handle<v8::String>, node::encoding)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:52) /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h: In function ‘v8::Local<v8::Object> node::Buffer::New(const char*, size_t)’: /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:65: warning: ‘v8::Local<v8::Object> node::Buffer::New(v8::Isolate*, const char*, size_t)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:62) /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h: In function ‘v8::Local<v8::Object> node::Buffer::New(char*, size_t, void (*)(char*, void*), void*)’: /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:75: warning: ‘v8::Local<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, void (*)(char*, void*), void*)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:70) /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h: In function ‘v8::Local<v8::Object> node::Buffer::Use(char*, uint32_t)’: /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:88: warning: ‘v8::Local<v8::Object> node::Buffer::Use(v8::Isolate*, char*, uint32_t)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:85) In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:223, from ../node-expat.cc:1: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::StringObject> Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’: ../node_modules/nan/nan_implementation_12_inl.h:353: error: #pragma GCC diagnostic not allowed inside functions ../node_modules/nan/nan_implementation_12_inl.h:354: error: #pragma GCC diagnostic not allowed inside functions ../node_modules/nan/nan_implementation_12_inl.h:358: error: #pragma GCC diagnostic not allowed inside functions In file included from ../node-expat.cc:1: ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::NewBuffer(char*, size_t, void (*)(char*, void*), void*)’: ../node_modules/nan/nan.h:829: warning: ‘v8::Local<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, void (*)(char*, void*), void*)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:70) ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CopyBuffer(const char*, uint32_t)’: ../node_modules/nan/nan.h:844: warning: ‘v8::Local<v8::Object> node::Buffer::New(v8::Isolate*, const char*, size_t)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:62) ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::NewBuffer(char*, uint32_t)’: ../node_modules/nan/nan.h:870: warning: ‘v8::Local<v8::Object> node::Buffer::Use(v8::Isolate*, char*, uint32_t)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node_buffer.h:85) ../node_modules/nan/nan.h: In function ‘void Nan::FatalException(const Nan::TryCatch&)’: ../node_modules/nan/nan.h:1023: warning: ‘void node::FatalException(v8::Isolate*, const v8::TryCatch&)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node.h:270) ../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’: ../node_modules/nan/nan.h:1090: error: #pragma GCC diagnostic not allowed inside functions ../node_modules/nan/nan.h:1091: error: #pragma GCC diagnostic not allowed inside functions ../node_modules/nan/nan.h:1095: error: #pragma GCC diagnostic not allowed inside functions ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Encode(const void*, size_t, Nan::Encoding)’: ../node_modules/nan/nan.h:2288: warning: ‘v8::Local<v8::Value> node::Encode(v8::Isolate*, const void*, size_t, node::encoding)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node.h:278) ../node_modules/nan/nan.h: In function ‘ssize_t Nan::DecodeBytes(v8::Local<v8::Value>, Nan::Encoding)’: ../node_modules/nan/nan.h:2304: warning: ‘ssize_t node::DecodeBytes(v8::Isolate*, v8::Handle<v8::Value>, node::encoding)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node.h:291) ../node_modules/nan/nan.h: In function ‘ssize_t Nan::DecodeWrite(char*, size_t, v8::Local<v8::Value>, Nan::Encoding)’: ../node_modules/nan/nan.h:2326: warning: ‘ssize_t node::DecodeWrite(v8::Isolate*, char*, size_t, v8::Handle<v8::Value>, node::encoding)’ is deprecated (declared at /home/asterisk/.node-gyp/0.12.18/include/node/node.h:302) make: *** [Release/obj.target/node_expat/node-expat.o] Error 1 make: Leaving directory/var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules/node-expat/build’
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1078:12)
gyp ERR! System Linux 2.6.32-642.6.2.el6.x86_64
gyp ERR! command “node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules/node-expat
gyp ERR! node -v v0.12.18
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
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 ELIFECYCLE

npm ERR! node-expat@2.3.17 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat@2.3.17 install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-expat
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR!
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.

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

Failed updating libraries!
Stopping old running processes…Zulu Server is not running
Done
Migration from XMPP was done previously
Generating CSS…Done
Module zulu successfully installed
Updating Hooks…Done
[root@asterisk1 bin]# fwconsole start zulu
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…
30848 [============================]
Finished setting permissions
Unable to run Pre-Asterisk hooks, because Asterisk is already running on PID 18662 and has been running for 1 hour, 6 minutes, 14 seconds
Running Asterisk post from Zulu module
Starting Zulu Server…
[>---------------------------] < 1 sec
Started Zulu Server. PID is 29090

In the npm-debug.log file I get:

21970 verbose cwd /var/www/html/admin/modules/zulu/node
21971 error Linux 2.6.32-642.6.2.el6.x86_64
21972 error argv “/usr/bin/node” “/usr/bin/npm” “install”
21973 error node v0.12.18
21974 error npm v2.15.11
21975 error code ELIFECYCLE
21976 error node-expat@2.3.17 install: node-gyp rebuild
21976 error Exit status 1
21977 error Failed at the node-expat@2.3.17 install script ‘node-gyp rebuild’.
21977 error This is most likely a problem with the node-expat package,
21977 error not with npm itself.
21977 error Tell the author that this fails on your system:
21977 error node-gyp rebuild
21977 error You can get information on how to open an issue for this project with:
21977 error npm bugs node-expat
21977 error Or if that isn’t available, you can get their info via:
21977 error
21977 error npm owner ls node-expat
21977 error There is likely additional logging output above.
21978 verbose exit [ 1, true ]
21979 verbose unbuild node_modules/ltx/node_modules/node-expat
21980 info preuninstall node-expat@2.3.17
21981 info uninstall node-expat@2.3.17
21982 verbose unbuild rmStuff node-expat@2.3.17 from /var/www/html/admin/modules/zulu/node/node_modules
21983 verbose unbuild rmStuff in /var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules
21984 info postuninstall node-expat@2.3.17
21985 silly gentlyRm /var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules/node-expat is being purged from base /var/www/html/admin/modules/zulu/node
21986 verbose gentlyRm don’t care about contents; nuking /var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules/node-expat
21987 silly vacuum-fs purging /var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules/node-expat
21988 silly vacuum-fs quitting because other entries in /var/www/html/admin/modules/zulu/node/node_modules/ltx/node_modules
21989 verbose unbuild node_modules/ltx
21990 info preuninstall ltx@0.7.2
21991 info uninstall ltx@0.7.2
21992 verbose unbuild rmStuff ltx@0.7.2 from /var/www/html/admin/modules/zulu/node/node_modules
21993 info postuninstall ltx@0.7.2
21994 silly gentlyRm /var/www/html/admin/modules/zulu/node/node_modules/ltx is being purged from base /var/www/html/admin/modules/zulu/node
21995 verbose gentlyRm don’t care about contents; nuking /var/www/html/admin/modules/zulu/node/node_modules/ltx
21996 silly vacuum-fs purging /var/www/html/admin/modules/zulu/node/node_modules/ltx
21997 silly vacuum-fs quitting because other entries in /var/www/html/admin/modules/zulu/node/node_modules


#3

After working on this some more:

[root@asterisk1 /]# fwconsole ma downloadinstall zulu
No repos specified, using: [commercial,standard,extended,unsupported] from last GUI settings

Starting zulu download…
Processing zulu
Verifying local module download…Verified
Extracting…Done
Module zulu successfully downloaded
Updating tables zulu_interactions_interaction_states, zulu_softphones, zulu_tokens, zulu_interactions_contacts, zulu_interactions_interactions, zulu_interactions_owners, zulu_interactions_members, zulu_interactions_streams, zulu_interactions_stream_bodies, zulu_interactions_stream_links, zulu_interactions_stream_actions, zulu_login_tokens…Done
NPM version is: 2.15.5 requirement is 2.15.11. Run ‘yum upgrade nodejs’ from the CLI as root
Unable to install module zulu:

  • Failed to run installation scripts
    Updating Hooks…Done
    [root@asterisk1 /]# npm -v
    2.15.11
    [root@asterisk1 /]#

#4

I resolved this issue by migrating to the latest stable version of Freepbx 14. Running centos 7.