nodejs give error Error initializing V8 on cent os
Problem
I am trying to run openstack horizon to my system. When I try to connect to horizon it give Error
FATAL ERROR: v8::Debug::SetDebugMessageDispatchHandler Error initializing V8
When I check in code it giving due to nodejs
problem.
I also search on net and found some solution like memory leak or others but that didn't work for me. I gave unlimited memory to virtual memory.
[test@localhost ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 62849
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
I check Nodejs error initializing V8 on Gentoo AMD64 but that also not help. :(.
Solution
My guess is, because you are using this on a redhat build, there is no node.js packages.
I know that there was a plan to make it possible to disable the need for node.js in redhat.
but I am not sure whether that ever materialized.
An option for continuing would be to install node.js from a third party repository. Or build your own package.
Example for third party:
yum localinstall --nogpgcheck http://nodejs.tchol.org/repocfg/fedora/nodejs-stable-release.noarch.rpm
yum -y install nodejs nodejs-compat-symlinks
systemctl restart httpd.service
Discussion
View additional discussion.