Closed pascalspits closed 6 years ago
oh really ? any fix for this yet ?
Hej, just installed on Ubuntu 18.04 and got same problem, install node 10.13 instead of 8...
Please retest using this command instead of the regular one --
sudo curl https://raw.githubusercontent.com/Jarli01/xenorchestra_installer/Danp2-node-fix/xo_install.sh | bash
Hej, tested and verified. Installs fine and /usr/local/bin/node ./bin/xo-server runs. Logged in now :-) Thanks for quick response. Cheers //Mats
it worked ! AWESOME ! thanks !
Expected Behavior
installing XenOrchestra CE on VM
Actual Behavior
xo server fails to start
Confirm XOCE services are running
Provide the output of journalctl logs
CLICK ME
```root@ubuntu184:~# sudo curl https://raw.githubusercontent.com/Jarli01/xenorchestra_installer/master/xo_install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2839 100 2839 0 0 11780 0 --:--:-- --:--:-- --:--:-- 11731 'multiverse' distribution component is already enabled for all sources. Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Hit:2 https://dl.yarnpkg.com/debian stable InRelease Hit:3 https://deb.nodesource.com/node_8.x bionic InRelease Hit:4 http://be.archive.ubuntu.com/ubuntu bionic InRelease Get:5 http://be.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:6 http://be.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Fetched 247 kB in 1s (317 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done curl is already the newest version (7.58.0-2ubuntu3.5). git is already the newest version (1:2.17.1-1ubuntu0.3). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. ## Installing the NodeSource Node.js 8.x LTS Carbon repo... ## Populating apt-get cache... + apt-get update Hit:1 http://be.archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Get:3 http://be.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Hit:4 https://deb.nodesource.com/node_8.x bionic InRelease Hit:5 https://dl.yarnpkg.com/debian stable InRelease Get:6 http://be.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Fetched 247 kB in 0s (499 kB/s) Reading package lists... Done ## Confirming "bionic" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/bionic/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - OK ## Creating apt sources list file for the NodeSource Node.js 8.x LTS Carbon repo... + echo 'deb https://deb.nodesource.com/node_8.x bionic main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src https://deb.nodesource.com/node_8.x bionic main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Hit:2 http://be.archive.ubuntu.com/ubuntu bionic InRelease Get:3 http://be.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Hit:4 https://deb.nodesource.com/node_8.x bionic InRelease Get:5 http://be.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Hit:6 https://dl.yarnpkg.com/debian stable InRelease Fetched 247 kB in 0s (497 kB/s) Reading package lists... Done ## Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn OK deb https://dl.yarnpkg.com/debian/ stable main Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Hit:2 http://be.archive.ubuntu.com/ubuntu bionic InRelease Get:3 http://be.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Hit:4 https://deb.nodesource.com/node_8.x bionic InRelease Hit:5 https://dl.yarnpkg.com/debian stable InRelease Get:6 http://be.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Fetched 247 kB in 0s (499 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done nodejs is already the newest version (8.12.0-1nodesource1). yarn is already the newest version (1.12.1-1). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 17024 100 17024 0 0 74995 0 --:--:-- --:--:-- --:--:-- 74995 ln: failed to create symbolic link '/usr/local/bin/node': File exists Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.4ubuntu1). nfs-common is already the newest version (1:1.3.4-2.1ubuntu5). python-minimal is already the newest version (2.7.15~rc1-1). libvhdi-utils is already the newest version (20170223-3). redis-server is already the newest version (5:4.0.9-1). git is already the newest version (1:2.17.1-1ubuntu0.3). libpng-dev is already the newest version (1.6.34-1ubuntu0.18.04.1). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. fatal: destination path 'xen-orchestra' already exists and is not an empty directory. yarn install v1.12.1 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... info fsevents@1.2.4: The platform "linux" is incompatible with this module. info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... [5/5] Building fresh packages... [6/9] ⠈ leveldown [-/9] ⠈ waiting... [-/9] ⠈ waiting... [-/9] ⠁ waiting... error /opt/xen-orchestra/node_modules/level-party/node_modules/leveldown: Command failed. Exit code: 1 Command: prebuild-install || node-gyp rebuild Arguments: Directory: /opt/xen-orchestra/node_modules/level-party/node_modules/leveldown Output: prebuild-install WARN install No prebuilt binaries found (target=10.13.0 runtime=node arch=x64 platform=linux) gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@10.13.0 | linux | x64 gyp info spawn /usr/bin/python2 gyp info spawn args [ '/opt/xen-orchestra/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/opt/xen-orchestra/node_modules/level-party/node_modules/leveldown/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/opt/xen-orchestra/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/pascal/.node-gyp/10.13.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/pascal/.node-gyp/10.13.0', gyp info spawn args '-Dnode_gyp_dir=/opt/xen-orchestra/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/pascal/.node-gyp/10.13.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/opt/xen-orchestra/node_modules/level-party/node_modules/leveldown', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/opt/xen-orchestra/node_modules/level-party/node_modules/leveldown/build' CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_iter.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/filename.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/dbformat.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_reader.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_writer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/memtable.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/repair.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/table_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_edit.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_set.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/write_batch.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix_sse.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/filter_block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/format.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/merger.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/two_level_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/arena.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/bloom.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/coding.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/comparator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/crc32c.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/filter_policy.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/hash.o ../deps/leveldb/leveldb-1.20/util/hash.cc: In function ‘uint32_t leveldb::Hash(const char*, size_t, uint32_t)’: ../deps/leveldb/leveldb-1.20/util/hash.cc:37:9: warning: this statement may fall through [-Wimplicit-fallthrough=] h += static_cast(data[2]) << 16;
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/leveldb/leveldb-1.20/util/hash.cc:39:5: note: here
case 2:
^~~~
../deps/leveldb/leveldb-1.20/util/hash.cc:40:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
h += static_cast(data[1]) << 8;
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/leveldb/leveldb-1.20/util/hash.cc:42:5: note: here
case 1:
^~~~
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/logging.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/options.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/status.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env_posix.o
AR(target) Release/obj.target/deps/leveldb/leveldb.a
COPY Release/leveldb.a
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-sinksource.o
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-stubs-internal.o
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy.o
AR(target) Release/obj.target/deps/snappy/snappy.a
COPY Release/snappy.a
CXX(target) Release/obj.target/leveldown/src/batch.o
In file included from ../../nan/nan.h:192:0,
from ../src/batch.cc:3:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:198,
from ../src/batch.cc:3:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’:
../../nan/nan_implementation_12_inl.h:337:37: warning: ‘static v8::Local v8::StringObject::New(v8::Local)’ is deprecated: Use Isolate* version [-Wdeprecated-declarations]
return v8::StringObject::New(value).As();
^
In file included from /home/pascal/.node-gyp/10.13.0/include/node/v8.h:26:0,
from /home/pascal/.node-gyp/10.13.0/include/node/node.h:63,
from ../src/batch.cc:1:
/home/pascal/.node-gyp/10.13.0/include/node/v8.h:5053:37: note: declared here
static Local New(Local value));
^
/home/pascal/.node-gyp/10.13.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/batch.cc:3:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’:
../../nan/nan.h:835:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/batch.cc:1:0:
/home/pascal/.node-gyp/10.13.0/include/node/node.h:176:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pascal/.node-gyp/10.13.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/batch.cc:3:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’:
../../nan/nan.h:850:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/batch.cc:1:0:
/home/pascal/.node-gyp/10.13.0/include/node/node.h:169:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pascal/.node-gyp/10.13.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/batch.cc:3:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char*, int, v8::Local*)’:
../../nan/nan.h:865:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, const char*, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/batch.cc:1:0:
/home/pascal/.node-gyp/10.13.0/include/node/node.h:162:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pascal/.node-gyp/10.13.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/batch.cc:3:0:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local)’:
../../nan/nan.h:911:53: warning: ‘v8::Local v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Local string = from->ToString();
^
In file included from /home/pascal/.node-gyp/10.13.0/include/node/node.h:63:0,
from ../src/batch.cc:1:
/home/pascal/.node-gyp/10.13.0/include/node/v8.h:10040:15: note: declared here
Local Value::ToString() const {
^~~~~
In file included from ../src/batch.cc:3:0:
../../nan/nan.h:921:74: warning: ‘int v8::String::WriteUtf8(char*, int, int*, int) const’ is deprecated: Use Isolate* version [-Wdeprecated-declarations]
length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
^
In file included from /home/pascal/.node-gyp/10.13.0/include/node/v8.h:26:0,
from /home/pascal/.node-gyp/10.13.0/include/node/node.h:63,
from ../src/batch.cc:1:
/home/pascal/.node-gyp/10.13.0/include/node/v8.h:2659:21: note: declared here
int WriteUtf8(char* buffer, int length = -1,
^
/home/pascal/.node-gyp/10.13.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/batch.cc:3:0:
../../nan/nan.h: In member function ‘v8::Local Nan::Callback::Call_(v8::Isolate*, v8::Local, int, v8::Local*) const’:
../../nan/nan.h:1479:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/batch.cc:1:0:
/home/pascal/.node-gyp/10.13.0/include/node/node.h:176:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pascal/.node-gyp/10.13.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/database.h:18:0,
from ../src/batch.cc:5:
../src/leveldown.h: In function ‘size_t StringOrBufferLength(v8::Local)’:
../src/leveldown.h:16:26: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return (!obj->ToObject().IsEmpty()
^
In file included from /home/pascal/.node-gyp/10.13.0/include/node/node.h:63:0,
from ../src/batch.cc:1:
/home/pascal/.node-gyp/10.13.0/include/node/v8.h:10046:15: note: declared here
Local
Provide answers to these questions:
Is this a fresh install or an upgrade? fresh
Version of XOCE server and web interface you're running can't get it running ...
What OS is XOCE running on? http://cdimage.ubuntu.com/releases/18.04/release/ubuntu-18.04.1-server-amd64.iso
What method you used to install XOCE (xo_install.sh, manual installation, etc) sudo bash
What specific XOCE page you're on, and what specific element you're interacting with to trigger the error 192.168.1.72 refused connection
If a stacktrace is provided in the error, include that too. ?
Any errors that appear in your browser's error console. 192.168.1.72 refused connection
Include what you've done so far in the installation, and if you got any error messages along the way. see log (above) ...
Indicate whether or not you've manually edited any data directly. no