UCP - error during installation


(Alex) #1

Hello,

I’m trying to properly install UCP but during the installation process, I found the following error:

sqlclient.target.mk:138: recipe for target 'Release/obj.target/sqlclient/src/binding.o' failed
make: *** [Release/obj.target/sqlclient/src/binding.o] Error 1
make: Leaving directory '/var/www/html/admin/modules/ucp/node/node_modules/mariasql/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:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 4.15.0-124-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/html/admin/modules/ucp/node/node_modules/mariasql
gyp ERR! node -v v12.20.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mariasql@0.2.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mariasql@0.2.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/asterisk/.npm/_logs/2020-11-27T11_47_51_256Z-debug.log
[npm-cache] [ERROR] [npm] error running npm install
[npm-cache] [ERROR] error installing dependencies

Failed updating libraries!
Stopping old running processes...Done
Refreshing all UCP Assets, this could take a while...
Generating Module Scripts...Done
Generating Module CSS...Done
Generating Main Scripts...Done
Generating Main CSS...Done
Done!
Generating CSS...Done
Module ucp version 15.0.6.20 successfully installed
Updating Hooks...Done
Chowning directories...Done

My system is:

Ubuntu 18.04
FreePBX 15.0.16.81
Asterisk 16.15.0
Nodejs v12.20.0
npm 6.14.8
Phyton 2.7.17
Mariadb 15.1 Ver Distribution 10.5.8

I try to solve it uninstalling node several times and reinstalling but without positive result.

Thanks for your help


(Alex) #2

I found the solution…
Nodejs 12 is not compatible
I had to downgrade to Nodejs v11 and UCP and related Deamon are working properly.

hope this could help …

Alex