Jarli01 / xenorchestra_installer

A simple install script for Xen Orchestra
GNU General Public License v3.0
428 stars 86 forks source link

Ubuntu Server 16.04 XOCE Service won't start #40

Closed cclarke591 closed 5 years ago

cclarke591 commented 5 years ago

First off, thanks for your awesome script and taking the time to check out this issue.

Keep up the good work!

Expected Behavior

Web page to load when browsing to ip address.


Actual Behavior

Web page does not load.


Confirm XOCE services are running

```systemctl status xo-server.service```

root@XOA-VM:~# systemctl status xo-server.service
● xo-server.service - XO Server
   Loaded: loaded (/lib/systemd/system/xo-server.service; enabled; vendor preset
   Active: failed (Result: start-limit-hit) since Tue 2018-11-13 13:14:21 EST; 2
  Process: 9442 ExecStart=/usr/local/bin/node ./bin/xo-server (code=exited, stat
 Main PID: 9442 (code=exited, status=1/FAILURE)

Nov 13 13:14:21 XOA-VM xo-server[9442]:     at bootstrap_node.js:625:3
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Main process exited, code=
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Unit entered failed state.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Failed with result 'exit-c
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Service hold-off time over
Nov 13 13:14:21 XOA-VM systemd[1]: Stopped XO Server.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Start request repeated too
Nov 13 13:14:21 XOA-VM systemd[1]: Failed to start XO Server.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Unit entered failed state.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Failed with result 'start-
lines 1-16/16 (END)...skipping...
● xo-server.service - XO Server
   Loaded: loaded (/lib/systemd/system/xo-server.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Tue 2018-11-13 13:14:21 EST; 2min 6s ago
  Process: 9442 ExecStart=/usr/local/bin/node ./bin/xo-server (code=exited, status=1/FAILURE)
 Main PID: 9442 (code=exited, status=1/FAILURE)

Nov 13 13:14:21 XOA-VM xo-server[9442]:     at bootstrap_node.js:625:3
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Unit entered failed state.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Failed with result 'exit-code'.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Service hold-off time over, scheduling restart.
Nov 13 13:14:21 XOA-VM systemd[1]: Stopped XO Server.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Start request repeated too quickly.
Nov 13 13:14:21 XOA-VM systemd[1]: Failed to start XO Server.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Unit entered failed state.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Failed with result 'start-limit-hit'.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-16/16 (END)

Provide the output of journalctl logs

journalctl -u xo-server -f -n 50

root@XOA-VM:~# journalctl -u xo-server -f -n 50
-- Logs begin at Tue 2018-11-13 13:10:58 EST. --
Nov 13 13:14:21 XOA-VM systemd[1]: Started XO Server.
Nov 13 13:14:21 XOA-VM xo-server[9433]: module.js:550
Nov 13 13:14:21 XOA-VM xo-server[9433]:     throw err;
Nov 13 13:14:21 XOA-VM xo-server[9433]:     ^
Nov 13 13:14:21 XOA-VM xo-server[9433]: Error: Cannot find module 'bluebird'
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Function.Module._resolveFilename (module.js:548:15)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Function.Module._load (module.js:475:25)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Module.require (module.js:597:17)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at require (internal/module.js:11:18)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Object.<anonymous> (/opt/xen-orchestra/packages/xo-server/bin/xo-server:12:18)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Module._compile (module.js:653:30)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Object.Module._extensions..js (module.js:664:10)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Module.load (module.js:566:32)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at tryModuleLoad (module.js:506:12)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Function.Module._load (module.js:498:3)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at Function.Module.runMain (module.js:694:10)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at startup (bootstrap_node.js:204:16)
Nov 13 13:14:21 XOA-VM xo-server[9433]:     at bootstrap_node.js:625:3
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Unit entered failed state.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Failed with result 'exit-code'.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Service hold-off time over, scheduling restart.
Nov 13 13:14:21 XOA-VM systemd[1]: Stopped XO Server.
Nov 13 13:14:21 XOA-VM systemd[1]: Started XO Server.
Nov 13 13:14:21 XOA-VM xo-server[9442]: module.js:550
Nov 13 13:14:21 XOA-VM xo-server[9442]:     throw err;
Nov 13 13:14:21 XOA-VM xo-server[9442]:     ^
Nov 13 13:14:21 XOA-VM xo-server[9442]: Error: Cannot find module 'bluebird'
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Function.Module._resolveFilename (module.js:548:15)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Function.Module._load (module.js:475:25)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Module.require (module.js:597:17)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at require (internal/module.js:11:18)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Object.<anonymous> (/opt/xen-orchestra/packages/xo-server/bin/xo-server:12:18)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Module._compile (module.js:653:30)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Object.Module._extensions..js (module.js:664:10)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Module.load (module.js:566:32)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at tryModuleLoad (module.js:506:12)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Function.Module._load (module.js:498:3)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at Function.Module.runMain (module.js:694:10)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at startup (bootstrap_node.js:204:16)
Nov 13 13:14:21 XOA-VM xo-server[9442]:     at bootstrap_node.js:625:3
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Unit entered failed state.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Failed with result 'exit-code'.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Service hold-off time over, scheduling restart.
Nov 13 13:14:21 XOA-VM systemd[1]: Stopped XO Server.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Start request repeated too quickly.
Nov 13 13:14:21 XOA-VM systemd[1]: Failed to start XO Server.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Unit entered failed state.
Nov 13 13:14:21 XOA-VM systemd[1]: xo-server.service: Failed with result 'start-limit-hit'.

Provide answers to these questions:

Installation log:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2818  100  2818    0     0  10222      0 --:--:-- --:--:-- --:--:-- 10247
'multiverse' distribution component is already enabled for all sources.
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:2 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages                                                                                                                                                              [398 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packag                                                                                                                                                             es [16.4 kB]
Get:7 http://ca.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Package                                                                                                                                                             s [15.5 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [                                                                                                                                                             345 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en                                                                                                                                                              [154 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packag                                                                                                                                                             es [3,460 B]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/multiverse i386 Package                                                                                                                                                             s [3,628 B]
Fetched 1,259 kB in 1s (967 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version (7.47.0-1ubuntu2.11).
git is already the newest version (1:2.7.4-0ubuntu1.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

## Installing the NodeSource Node.js 8.x LTS Carbon repo...

## Populating apt-get cache...

+ apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:4 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Fetched 107 kB in 0s (145 kB/s)
Reading package lists... Done

## Confirming "xenial" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/xenial/Relea                                                                                                                                                             se'

## 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 xenial main' > /etc/apt/sources.                                                                                                                                                             list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_8.x xenial main' >> /etc/apt/sou                                                                                                                                                             rces.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Get:1 https://deb.nodesource.com/node_8.x xenial InRelease [4,646 B]
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:3 https://deb.nodesource.com/node_8.x xenial/main Sources [761 B]
Hit:4 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
Get:5 https://deb.nodesource.com/node_8.x xenial/main amd64 Packages [1,006 B]
Hit:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:7 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:8 https://deb.nodesource.com/node_8.x xenial/main i386 Packages [1,004 B]
Fetched 114 kB in 0s (149 kB/s)
Reading package lists... Done

## Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon and np                                                                                                                                                             m
## 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/s                                                                                                                                                             ources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

OK
deb https://dl.yarnpkg.com/debian/ stable main
Hit:1 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 https://deb.nodesource.com/node_8.x xenial InRelease
Get:4 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:6 https://dl.yarnpkg.com/debian stable InRelease [13.3 kB]
Get:7 https://dl.yarnpkg.com/debian stable/main amd64 Packages [8,242 B]
Get:8 https://dl.yarnpkg.com/debian stable/main i386 Packages [8,242 B]
Get:9 https://dl.yarnpkg.com/debian stable/main all Packages [8,242 B]
Fetched 145 kB in 0s (285 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python
  python-minimal python2.7 python2.7-minimal
Suggested packages:
  python-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib nodejs python
  python-minimal python2.7 python2.7-minimal yarn
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.3 MB of archives.
After this operation, 85.6 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_8.x xenial/main amd64 nodejs amd64 8.12.0-                                                                                                                                                             1nodesource1 [13.5 MB]
Get:2 https://dl.yarnpkg.com/debian stable/main amd64 yarn all 1.12.3-1 [833 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7                                                                                                                                                             -minimal amd64 2.7.12-1ubuntu0~16.04.4 [339 kB]
Get:4 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7-mi                                                                                                                                                             nimal amd64 2.7.12-1ubuntu0~16.04.4 [1,261 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-minim                                                                                                                                                             al amd64 2.7.12-1~16.04 [28.1 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7                                                                                                                                                             -stdlib amd64 2.7.12-1ubuntu0~16.04.4 [1,880 kB]
Get:7 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7 am                                                                                                                                                             d64 2.7.12-1ubuntu0~16.04.4 [224 kB]
Get:8 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython-st                                                                                                                                                             dlib amd64 2.7.12-1~16.04 [7,768 B]
Get:9 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python amd64                                                                                                                                                              2.7.12-1~16.04 [137 kB]
Fetched 18.3 MB in 7s (2,426 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 92770 files and directories currently installed.)
Preparing to unpack .../libpython2.7-minimal_2.7.12-1ubuntu0~16.04.4_amd64.deb .                                                                                                                                                             ..
Unpacking libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.4) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../python2.7-minimal_2.7.12-1ubuntu0~16.04.4_amd64.deb ...
Unpacking python2.7-minimal (2.7.12-1ubuntu0~16.04.4) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.12-1~16.04_amd64.deb ...
Unpacking python-minimal (2.7.12-1~16.04) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.4_amd64.deb ..                                                                                                                                                             .
Unpacking libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.4) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.12-1ubuntu0~16.04.4_amd64.deb ...
Unpacking python2.7 (2.7.12-1ubuntu0~16.04.4) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../libpython-stdlib_2.7.12-1~16.04_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.12-1~16.04) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.4) ...
Setting up python2.7-minimal (2.7.12-1ubuntu0~16.04.4) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.12-1~16.04) ...
Selecting previously unselected package python.
(Reading database ... 93516 files and directories currently installed.)
Preparing to unpack .../python_2.7.12-1~16.04_amd64.deb ...
Unpacking python (2.7.12-1~16.04) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_8.12.0-1nodesource1_amd64.deb ...
Unpacking nodejs (8.12.0-1nodesource1) ...
Selecting previously unselected package yarn.
Preparing to unpack .../archives/yarn_1.12.3-1_all.deb ...
Unpacking yarn (1.12.3-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.4) ...
Setting up python2.7 (2.7.12-1ubuntu0~16.04.4) ...
Setting up libpython-stdlib:amd64 (2.7.12-1~16.04) ...
Setting up python (2.7.12-1~16.04) ...
Setting up nodejs (8.12.0-1nodesource1) ...
Setting up yarn (1.12.3-1) ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17042  100 17042    0     0  62822      0 --:--:-- --:--:-- --:--:-- 62885
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpng12-dev' instead of 'libpng-dev'
git is already the newest version (1:2.7.4-0ubuntu1.5).
python-minimal is already the newest version (2.7.12-1~16.04).
python-minimal set to manually installed.
The following additional packages will be installed:
  binutils cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 keyutils
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  libasan2 libatomic1 libbfio1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5
  libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-5-dev libgomp1
  libisl15 libitm1 libjemalloc1 liblsan0 libmpc3 libmpx0 libnfsidmap2
  libquadmath0 libstdc++-5-dev libtirpc1 libtsan0 libubsan0 libvhdi1
  linux-libc-dev make manpages-dev redis-tools rpcbind zlib1g-dev
Suggested packages:
  binutils-doc cpp-doc gcc-5-locales debian-keyring g++-multilib
  g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf automake
  libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg libgomp1-dbg
  libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
  libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg glibc-doc
  libstdc++-5-doc make-doc watchdog ruby-redis
The following NEW packages will be installed:
  binutils build-essential cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5
  keyutils libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libasan2 libatomic1 libbfio1 libc-dev-bin libc6-dev
  libcc1-0 libcilkrts5 libdpkg-perl libfakeroot libfile-fcntllock-perl
  libgcc-5-dev libgomp1 libisl15 libitm1 libjemalloc1 liblsan0 libmpc3 libmpx0
  libnfsidmap2 libpng12-dev libquadmath0 libstdc++-5-dev libtirpc1 libtsan0
  libubsan0 libvhdi-utils libvhdi1 linux-libc-dev make manpages-dev nfs-common
  redis-server redis-tools rpcbind zlib1g-dev
0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.1 MB of archives.
After this operation, 150 MB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 libnfsidmap2 amd64 0                                                                                                                                                             .25-5 [32.2 kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 libmpc3 amd64 1.0.3-                                                                                                                                                             1 [39.7 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 binutils amd                                                                                                                                                             64 2.26.1-1ubuntu1~16.04.7 [2,309 kB]
Get:4 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-dev-bin                                                                                                                                                              amd64 2.23-0ubuntu10 [68.7 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-libc-d                                                                                                                                                             ev amd64 4.4.0-138.164 [859 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dev am                                                                                                                                                             d64 2.23-0ubuntu10 [2,079 kB]
Get:7 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 libisl15 amd64 0.16.                                                                                                                                                             1-1 [524 kB]
Get:8 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cpp-5 amd64                                                                                                                                                              5.4.0-6ubuntu1~16.04.10 [7,671 kB]
Get:9 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 cpp amd64 4:5.3.1-1u                                                                                                                                                             buntu1 [27.7 kB]
Get:10 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcc1-0 am                                                                                                                                                             d64 5.4.0-6ubuntu1~16.04.10 [38.8 kB]
Get:11 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgomp1 am                                                                                                                                                             d64 5.4.0-6ubuntu1~16.04.10 [55.1 kB]
Get:12 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libitm1 amd                                                                                                                                                             64 5.4.0-6ubuntu1~16.04.10 [27.4 kB]
Get:13 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libatomic1                                                                                                                                                              amd64 5.4.0-6ubuntu1~16.04.10 [8,888 B]
Get:14 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasan2 am                                                                                                                                                             d64 5.4.0-6ubuntu1~16.04.10 [264 kB]
Get:15 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblsan0 am                                                                                                                                                             d64 5.4.0-6ubuntu1~16.04.10 [105 kB]
Get:16 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtsan0 am                                                                                                                                                             d64 5.4.0-6ubuntu1~16.04.10 [244 kB]
Get:17 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libubsan0 a                                                                                                                                                             md64 5.4.0-6ubuntu1~16.04.10 [95.3 kB]
Get:18 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcilkrts5                                                                                                                                                              amd64 5.4.0-6ubuntu1~16.04.10 [40.1 kB]
Get:19 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmpx0 amd                                                                                                                                                             64 5.4.0-6ubuntu1~16.04.10 [9,764 B]
Get:20 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libquadmath                                                                                                                                                             0 amd64 5.4.0-6ubuntu1~16.04.10 [131 kB]
Get:21 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgcc-5-de                                                                                                                                                             v amd64 5.4.0-6ubuntu1~16.04.10 [2,228 kB]
Get:22 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 gcc-5 amd64                                                                                                                                                              5.4.0-6ubuntu1~16.04.10 [8,426 kB]
Get:23 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 gcc amd64 4:5.3.1-1                                                                                                                                                             ubuntu1 [5,244 B]
Get:24 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libstdc++-5                                                                                                                                                             -dev amd64 5.4.0-6ubuntu1~16.04.10 [1,426 kB]
Get:25 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 g++-5 amd64                                                                                                                                                              5.4.0-6ubuntu1~16.04.10 [8,319 kB]
Get:26 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 g++ amd64 4:5.3.1-1                                                                                                                                                             ubuntu1 [1,504 B]
Get:27 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 make amd64 4.1-6 [1                                                                                                                                                             51 kB]
Get:28 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg-per                                                                                                                                                             l all 1.18.4ubuntu1.5 [195 kB]
Get:29 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg-dev al                                                                                                                                                             l 1.18.4ubuntu1.5 [584 kB]
Get:30 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 build-essential amd                                                                                                                                                             64 12.1ubuntu2 [4,758 B]
Get:31 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 libfakeroot amd64 1                                                                                                                                                             .20.2-1ubuntu1 [25.5 kB]
Get:32 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 fakeroot amd64 1.20                                                                                                                                                             .2-1ubuntu1 [61.8 kB]
Get:33 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 keyutils amd64 1.5.                                                                                                                                                             9-8ubuntu1 [47.1 kB]
Get:34 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-diff-p                                                                                                                                                             erl all 1.19.03-1 [47.6 kB]
Get:35 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-diff-x                                                                                                                                                             s-perl amd64 0.04-4build1 [11.0 kB]
Get:36 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-merge-                                                                                                                                                             perl all 0.08-3 [12.0 kB]
Get:37 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64 libbfio1 amd64                                                                                                                                                              20160108-1 [306 kB]
Get:38 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 libfile-fcntllock-p                                                                                                                                                             erl amd64 0.22-3 [32.0 kB]
Get:39 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 zlib1g-dev                                                                                                                                                              amd64 1:1.2.8.dfsg-2ubuntu4.1 [168 kB]
Get:40 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpng12-de                                                                                                                                                             v amd64 1.2.54-1ubuntu1.1 [183 kB]
Get:41 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64 libvhdi1 amd64                                                                                                                                                              20160108-1 [328 kB]
Get:42 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64 libvhdi-utils a                                                                                                                                                             md64 20160108-1 [26.2 kB]
Get:43 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 manpages-dev all 4.                                                                                                                                                             04-2 [2,048 kB]
Get:44 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtirpc1 a                                                                                                                                                             md64 0.2.5-1ubuntu0.1 [75.4 kB]
Get:45 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 rpcbind amd64 0.2.3                                                                                                                                                             -0.2 [40.3 kB]
Get:46 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 nfs-common                                                                                                                                                              amd64 1:1.2.8-9ubuntu12.1 [184 kB]
Get:47 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64 libjemalloc1 am                                                                                                                                                             d64 3.6.0-9ubuntu1 [78.9 kB]
Get:48 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64 redis-tools amd                                                                                                                                                             64 2:3.0.6-1 [95.3 kB]
Get:49 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64 redis-server am                                                                                                                                                             d64 2:3.0.6-1 [343 kB]
Fetched 40.1 MB in 17s (2,240 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libnfsidmap2:amd64.
(Reading database ... 97074 files and directories currently installed.)
Preparing to unpack .../libnfsidmap2_0.25-5_amd64.deb ...
Unpacking libnfsidmap2:amd64 (0.25-5) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../libmpc3_1.0.3-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.3-1) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.26.1-1ubuntu1~16.04.7_amd64.deb ...
Unpacking binutils (2.26.1-1ubuntu1~16.04.7) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.23-0ubuntu10_amd64.deb ...
Unpacking libc-dev-bin (2.23-0ubuntu10) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_4.4.0-138.164_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.4.0-138.164) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.23-0ubuntu10_amd64.deb ...
Unpacking libc6-dev:amd64 (2.23-0ubuntu10) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../libisl15_0.16.1-1_amd64.deb ...
Unpacking libisl15:amd64 (0.16.1-1) ...
Selecting previously unselected package cpp-5.
Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking cpp (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../libcc1-0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgomp1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libitm1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libatomic1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libasan2:amd64.
Preparing to unpack .../libasan2_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libasan2:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking liblsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libtsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libubsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libmpx0:amd64.
Preparing to unpack .../libmpx0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libmpx0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libgcc-5-dev:amd64.
Preparing to unpack .../libgcc-5-dev_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package gcc-5.
Preparing to unpack .../gcc-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking gcc-5 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking gcc (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package libstdc++-5-dev:amd64.
Preparing to unpack .../libstdc++-5-dev_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package g++-5.
Preparing to unpack .../g++-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking g++-5 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking g++ (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package make.
Preparing to unpack .../archives/make_4.1-6_amd64.deb ...
Unpacking make (4.1-6) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../libdpkg-perl_1.18.4ubuntu1.5_all.deb ...
Unpacking libdpkg-perl (1.18.4ubuntu1.5) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../dpkg-dev_1.18.4ubuntu1.5_all.deb ...
Unpacking dpkg-dev (1.18.4ubuntu1.5) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../build-essential_12.1ubuntu2_amd64.deb ...
Unpacking build-essential (12.1ubuntu2) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../libfakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking fakeroot (1.20.2-1ubuntu1) ...
Selecting previously unselected package keyutils.
Preparing to unpack .../keyutils_1.5.9-8ubuntu1_amd64.deb ...
Unpacking keyutils (1.5.9-8ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-4build1_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-4build1) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libbfio1.
Preparing to unpack .../libbfio1_20160108-1_amd64.deb ...
Unpacking libbfio1 (20160108-1) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../libfile-fcntllock-perl_0.22-3_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Selecting previously unselected package libpng12-dev:amd64.
Preparing to unpack .../libpng12-dev_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-dev:amd64 (1.2.54-1ubuntu1.1) ...
Selecting previously unselected package libvhdi1:amd64.
Preparing to unpack .../libvhdi1_20160108-1_amd64.deb ...
Unpacking libvhdi1:amd64 (20160108-1) ...
Selecting previously unselected package libvhdi-utils.
Preparing to unpack .../libvhdi-utils_20160108-1_amd64.deb ...
Unpacking libvhdi-utils (20160108-1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../manpages-dev_4.04-2_all.deb ...
Unpacking manpages-dev (4.04-2) ...
Selecting previously unselected package libtirpc1:amd64.
Preparing to unpack .../libtirpc1_0.2.5-1ubuntu0.1_amd64.deb ...
Unpacking libtirpc1:amd64 (0.2.5-1ubuntu0.1) ...
Selecting previously unselected package rpcbind.
Preparing to unpack .../rpcbind_0.2.3-0.2_amd64.deb ...
Unpacking rpcbind (0.2.3-0.2) ...
Selecting previously unselected package nfs-common.
Preparing to unpack .../nfs-common_1%3a1.2.8-9ubuntu12.1_amd64.deb ...
Unpacking nfs-common (1:1.2.8-9ubuntu12.1) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../libjemalloc1_3.6.0-9ubuntu1_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-9ubuntu1) ...
Selecting previously unselected package redis-tools.
Preparing to unpack .../redis-tools_2%3a3.0.6-1_amd64.deb ...
Unpacking redis-tools (2:3.0.6-1) ...
Selecting previously unselected package redis-server.
Preparing to unpack .../redis-server_2%3a3.0.6-1_amd64.deb ...
Unpacking redis-server (2:3.0.6-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.8) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libnfsidmap2:amd64 (0.25-5) ...
Setting up libmpc3:amd64 (1.0.3-1) ...
Setting up binutils (2.26.1-1ubuntu1~16.04.7) ...
Setting up libc-dev-bin (2.23-0ubuntu10) ...
Setting up linux-libc-dev:amd64 (4.4.0-138.164) ...
Setting up libc6-dev:amd64 (2.23-0ubuntu10) ...
Setting up libisl15:amd64 (0.16.1-1) ...
Setting up cpp-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up cpp (4:5.3.1-1ubuntu1) ...
Setting up libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libgomp1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libitm1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libatomic1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libasan2:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up liblsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libtsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libubsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libmpx0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up gcc-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up gcc (4:5.3.1-1ubuntu1) ...
Setting up libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up g++-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up g++ (4:5.3.1-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mo                                                                                                                                                             de
Setting up make (4.1-6) ...
Setting up libdpkg-perl (1.18.4ubuntu1.5) ...
Setting up dpkg-dev (1.18.4ubuntu1.5) ...
Setting up build-essential (12.1ubuntu2) ...
Setting up libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Setting up fakeroot (1.20.2-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (                                                                                                                                                             fakeroot) in auto mode
Setting up keyutils (1.5.9-8ubuntu1) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Setting up libalgorithm-diff-xs-perl (0.04-4build1) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libbfio1 (20160108-1) ...
Setting up libfile-fcntllock-perl (0.22-3) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Setting up libpng12-dev:amd64 (1.2.54-1ubuntu1.1) ...
Setting up libvhdi1:amd64 (20160108-1) ...
Setting up libvhdi-utils (20160108-1) ...
Setting up manpages-dev (4.04-2) ...
Setting up libtirpc1:amd64 (0.2.5-1ubuntu0.1) ...
Setting up rpcbind (0.2.3-0.2) ...
Setting up nfs-common (1:1.2.8-9ubuntu12.1) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/default/nfs-common with new version
Adding system user `statd' (UID 111) ...
Adding new user `statd' (UID 111) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
nfs-utils.service is a disabled or a static unit, not starting it.
Setting up libjemalloc1 (3.6.0-9ubuntu1) ...
Setting up redis-tools (2:3.0.6-1) ...
Setting up redis-server (2:3.0.6-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.8) ...
Processing triggers for ureadahead (0.100.0-19) ...
Cloning into 'xen-orchestra'...
remote: Enumerating objects: 156, done.
remote: Counting objects: 100% (156/156), done.
remote: Compressing objects: 100% (102/102), done.
remote: Total 66356 (delta 80), reused 79 (delta 50), pack-reused 66200
Receiving objects: 100% (66356/66356), 29.84 MiB | 2.58 MiB/s, done.
Resolving deltas: 100% (44378/44378), done.
Checking connectivity... done.
yarn install v1.12.3
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.2.tgz: Extr                                                                                                                                                             acting tar content of undefined failed, the file appears to be corrupt: "Unexpec                                                                                                                                                             ted end of data"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this                                                                                                                                                              command.
yarn run v1.12.3
$ scripts/run-script --parallel build
module.js:550
    throw err;
    ^

Error: Cannot find module 'promise-toolbox'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/xen-orchestra/scripts/run-script:4:32)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm                                                                                                                                                             and.
Created symlink from /etc/systemd/system/multi-user.target.wants/xo-server.servi                                                                                                                                                             ce to /lib/systemd/system/xo-server.service.

Installation complete, open a browser to:
192.168.x.x

Default Login:admin@admin.net Password:admin

Don't forget to change your password!
Jarli01 commented 5 years ago

Please try the installation on Ubuntu 18.04 Server, 16.04 is very old at this point.

Jarli01 commented 5 years ago

I'm attempting the installation on 18.04 live (64) at the moment and once done I'll be able to provide more feedback to this.

From the initial error though it looks as though your source is missing bluebird npm. Which would cause an issue.

Jarli01 commented 5 years ago

I'm unable to reproduce this error with a more current version of Ubuntu Server. It would be best to run the most current version if possible.

chrome_2018-11-13_13-59-21

Is there a particular need to run 16.04?

cclarke591 commented 5 years ago

No particular reason, I run a few vm's like openvpn for testing, and I know openvpn hasn't updated to 18.04 last time I checked. So I just default to 16.04 for most applications. I will try 18.04 now. Same process? Just sudo bash and run script?

Jarli01 commented 5 years ago

Correct, same process, just with an updated distro.

Jarli01 commented 5 years ago

Staying current is useful for other reasons beyond just getting it to install. If you ever need support from the XO developer team, they are more likely to want to help if you're at least using a current distro.

No one wants to go back and troubleshoot something from X years ago :)

cclarke591 commented 5 years ago

I agree, its nice having a script or application running on the most current distros instead of having to backdate your version just to make one app work.

Moving on!

I spun up a new vm with 18.04 Ubuntu Server 64bit, running into the same issue. The issue standing out to me the most when watching the log blow through, is still the yarn install section at the end.

image

Jarli01 commented 5 years ago

Do you have any proxy on this box or something that might be causing this? It looks like you're getting a partial file for yarn.

Jarli01 commented 5 years ago

The issue in particular is that the yarn package validator isn't downloaded fully or is corrupted (likely you have a partial download).

It's only 3KB from what I'm seeing here when I download it directly.

cclarke591 commented 5 years ago

No proxies setup for it. Based on the logs and the errors being thrown up I think its safe to say it is a yarn download issue like you said. If its so small I can't imagine why it wouldn't download properly. I tried with and without guest tools installed just in case as well thinking it may have been conflicting with installed networking tools from XCP-NG.

Nothing special about the Virtual Network setup either. Default as can be. DHCP ip addressing, no issues pinging out and receiving. No problems with updating from Ubuntu...

I think I will try to install Yarn separately and see if that helps...

cclarke591 commented 5 years ago

Andddddd a big fat nope.

Had to install Node.js first, then installed yarn, and still failed.

Looking againnnnnnn at the log, it's saying https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.2.tgz is "corrupt".

Looking into the web directory, it looks like 5.1.3 is the most recent version. Would that effect anything? (Regardless is should load anyways considering you ran it yourself and it worked no problem, just spitballing noob ideas ;D)

Jarli01 commented 5 years ago

virtualbox_2018-11-13_16-48-22

So those are the versions of node, yarn and npm that were automatically installed on the test I ran earlier today.

Can you check what your system says is installed?

Jarli01 commented 5 years ago

(also I didn't bother updating my test system).

cclarke591 commented 5 years ago

Says the exact same thing as yours. I tested both before and after installing updates.

Jarli01 commented 5 years ago

I'm working on another issue at the moment, but can you provide the link to the distro you used to install most recently with so I can test with the same thing.

I'm not sure where the issue could be since I'm unable to reproduce this. Would be good to use the same thing that you're using.

Also Debian works (or should).

cclarke591 commented 5 years ago

I'm using an iso I downloaded a week or two ago. I will try using debian as well to see if that works instead, as well as installing a fresh version of ubuntu 18.04 iso from the website.

Jarli01 commented 5 years ago

An iso that is only a week old should work, if you can send me the link that you used to download it I could test with that exact iso here in my lab and see if this is something related to that iso.

Unlikely but it's possible.

cclarke591 commented 5 years ago

It was direct from the website, so no link to send. Let me try out the 2 new iso's and I will get back to you.

cclarke591 commented 5 years ago

Alright so debian 9 didn't work either. Same error. Here is the process:

debian-9.6.0-amd64-netinst.iso direct from debian.org ---> spun up vm in XCP-NG with 2 vcpu, 2048mb of ram, 20GB of disk space, used guided install with LVM, used entire disk. Only installed standard tools, and openssh server in regards to extra software in the installation wizard. ---> Logged in via putty, used su command to switch into root. Downloaded curl. Then curled the script.

Danp2 commented 5 years ago

Unsure why this isn't working for you. FWIW, I just tested the script with a freshly updated copy of Ubuntu 18.04.01, and the install went just fine.

Try to run the following commands and show us the output from each --

cd /opt/xen-orchestra
yarn
yarn build
cclarke591 commented 5 years ago

root@xoa-debian:/opt/xen-orchestra# yarn ERROR: There are no scenarios; must have at least one. root@xoa-debian:/opt/xen-orchestra# yarn build ERROR: [Errno 2] No such file or directory: 'build' root@xoa-debian:/opt/xen-orchestra#

This was after I had run the scenario this morning. I will try running on direct hardware, outside of Xen, just to find out if xen is whats messing with me. Because in theory is should be working, and since both you guys have been able to run it no problem is something with my scenario specifically.

Also would removing installation of yarn and nodejs from the script, and installing it separately first, effect the rest of the installation?

Danp2 commented 5 years ago

Seems like you are running into this issue -- https://github.com/yarnpkg/yarn/issues/2821

You could try running apt purge cmdtest and then reinstall yarn with the correct commands.

cclarke591 commented 5 years ago

Alright so Installed this scenerio (debian 9 one) directly onto hardware outside of xen and it gives the same error.

@Danp2 I thought the same thing as well while troubleshooting yarn. Here is the output from the hardware test scenerio, where this is after I have run the script and received the same error as before.

root@debian-xoa-test:/home/user# apt purge cmdtest Reading package lists... Done Building dependency tree Reading state information... Done Package 'cmdtest' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@debian-xoa-test:/home/user#

Jarli01 commented 5 years ago

Removing it would substantially affect the script as they are required components to have a working XO installation.

Danp2 commented 5 years ago

@Jarli01 Are you referring to cmdtest package or something else?

cclarke591 commented 5 years ago

Update time.

I installed curl, git, node, and yarn manually. All went fine from what I could tell.

I then forked code (Forgive me, this is my first time really working with github, so I apologize if that's and inherently rude thing to do lol) and commented out the node and yarn installation section. I passed the first error section! A new error comes up. Here is the last section of the log:

Resolving deltas: 100% (44426/44426), done. sed: can't read /opt/xen-orchestra/packages/xo-web/src/xo-app/settings/config/index.js: No such file or directory bash: line 52: cd: /opt/xen-orchestra: No such file or directory yarn install v1.12.3 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Saved lockfile. Done in 0.10s. yarn run v1.12.3 error Couldn't find a package.json file in "/home/cclarke" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. bash: line 56: cd: packages/xo-server: No such file or directory cp: cannot stat 'sample.config.yaml': No such file or directory sed: can't read .xo-server.yaml: No such file or directory ls: cannot access '/opt/xen-orchestra/packages/xo-server-*': No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/xo-server.service → /lib/systemd/system/xo-server.service.

Installation complete, open a browser to: 192.168.55.179

Default Login:admin@admin.net Password:admin

Don't forget to change your password! root@xoa-debian:/home/cclarke#

What sticks out to me is the:

sed: can't read /opt/xen-orchestra/packages/xo-web/src/xo-app/settings/config/index.js: No such file or directory bash: line 52: cd: /opt/xen-orchestra: No such file or directory

In that first section. As well as obviously:

error Couldn't find a package.json file in "/home/cclarke"

Jarli01 commented 5 years ago

@cclarke591 asked if removing them from the script would cause issues. Which of course it would since they are required components to XO.

The script automates the installation of the dependencies and really nothing extra to get to a working point.

We also don't use cmdtest, but the current main stable version of yarn.

Jarli01 commented 5 years ago

@cclarke591 I can't for the life of me understand where this is failing since we can't reproduce this error.

Jarli01 commented 5 years ago

In your most recent post, you're missing the directories required for XO /opt/xen-orchestra.

It's as if you aren't running with permission to create directories and files.

Jarli01 commented 5 years ago

PS forking code is perfectly fine. No complaints from me.

cclarke591 commented 5 years ago

I think you are right @Jarli01. At least that's what it looks like. But I honestly don't know enough about coding to figure out what I am doing wrong. In my mind, using bash, running as root, or even cloning the entire project into my home directory, chmod 0777 the entire /xenorchestra_installer/ directory and running the script locally, should work.

Could it be that my drives on LVM? or I'm using ftp.ca.debian.org as my main repository?

Also, dope, I'm glad that's cool with you. I think I am getting the hang of github a little more.

Danp2 commented 5 years ago

@Jarli01 OIC... I missed his original question. But technically, it should work because he was going to manually install yarn and node before hand, correct?

Jarli01 commented 5 years ago

@Danp2 it should but doesn't mean it will if he is having other issues.

Honestly if I have 10 minutes free I would just run via a remote session and perform the install for him.

Danp2 commented 5 years ago

@cclarke591 You commented out the line cd /opt, so the subsequent git clone isn't being run from the correct location.

cclarke591 commented 5 years ago

@Danp2 Lol I just found it and am in the process of testing it again with that fixed.

cclarke591 commented 5 years ago

Re ran it, thanks @Danp2, I caught it just before you told me.

I got the same errors in the original, and whats causing them is lines 52-54. this is outside of my experience at this point lol. I have no idea what yarn is or does.

root@xoa-debian:/opt/xen-orchestra# yarn
yarn install v1.12.3
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.2.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
root@xoa-debian:/opt/xen-orchestra# yarn build
yarn run v1.12.3
$ scripts/run-script --parallel build
module.js:550
    throw err;
    ^

Error: Cannot find module 'promise-toolbox'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/xen-orchestra/scripts/run-script:4:32)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
root@xoa-debian:/opt/xen-orchestra#
Jarli01 commented 5 years ago

This issue is clearly something within your environment, either a firewall rule or route issue that is causing the issue.

I've created a video of the installation working from VM creation to login at a brand new installation.

If you need further assistance I would check with your internal team (if you have others) to see if there might be something that is blocking or otherwise stopping the required connections to download this.

I've recorded the process from start to finish, it can be reviewed here. https://youtu.be/VaDtLNQgGsQ

Jarli01 commented 5 years ago

Since this appears to be an issue with a dependency there isn't much that we can do. You could attempt a manual installation following the source directions but I suspect the same issue will occur.

Or you may get lucky and get this validator file.

Thanks for being patient.

cclarke591 commented 5 years ago

No worries, thanks for keeping an eye out.

cclarke591 commented 5 years ago

https://github.com/vatesfr/xen-orchestra/issues/3705

cclarke591 commented 5 years ago

XO Guys have sorted out yarn.lock file, allowing the installation to complete flawlessly.

Thanks for your help gents.