ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Xen Orchestra on Ubuntu 15.10 - Complete installation instructions

    IT Discussion
    how to xen orchestra ubuntu 15.10 debian xen open source ubuntu linux xenserver
    24
    609
    282.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brandon
      last edited by

      Does anyone know the correct version of node and npm we should use?

      I have installed Ubuntu and when I run the script it freaks out when it gets to the sudo npm run build... My first attempt was on Debian 8 and it also freaked out at that step...

      I see that we install node ver 5 but when n stable runs it gets upgraded to v7.4, so I tried skipping n stable but no luck

      DanpD DustinB3403D 2 Replies Last reply Reply Quote 0
      • DanpD
        Danp @brandon
        last edited by

        @brandon I recently tested the script on Ubuntu Server 16.10 and it worked fine. Post the error shown so that we can see what is happening.

        There is one known issue that you will need to deal with unless you build with the next-release branch.

        1 Reply Last reply Reply Quote 1
        • DustinB3403D
          DustinB3403 @brandon
          last edited by

          @brandon On my Ubuntu 16.10 trial system the NPM version is 3.10.10 and node version 7.2.1.

          By providing the error message we can help to determine the cause as @Danp said.

          B 1 Reply Last reply Reply Quote 0
          • B
            brandon @DustinB3403
            last edited by

            @DustinB3403 Here is my error:

            index generated src/common/intl/locales/index.js
            [16:01:46] Using gulpfile /opt/xo-web/gulpfile.js
            [16:01:46] Starting 'build'...
            [16:01:46] Starting 'buildPages'...
            [16:01:46] Starting 'buildScripts'...
            [16:01:46] Starting 'buildStyles'...
            [16:01:46] Starting 'copyAssets'...
            [16:01:51] 'buildStyles' errored after 5.51 s
            [16:01:51] Error: ENOENT: no such file or directory, scandir '/opt/xo-web/node_modules/node-sass/vendor'
            at Object.fs.readdirSync (fs.js:871:18)
            at Object.getInstalledBinaries (/opt/xo-web/node_modules/node-sass/lib/extensions.js:122:13)
            at foundBinariesList (/opt/xo-web/node_modules/node-sass/lib/errors.js:20:15)
            at foundBinaries (/opt/xo-web/node_modules/node-sass/lib/errors.js:15:5)
            at Object.module.exports.missingBinary (/opt/xo-web/node_modules/node-sass/lib/errors.js:45:5)
            at module.exports (/opt/xo-web/node_modules/node-sass/lib/binding.js:15:30)
            at Object.<anonymous> (/opt/xo-web/node_modules/node-sass/lib/index.js:14:35)
            at Module._compile (module.js:571:32)
            at Object.Module._extensions..js (module.js:580:10)
            at Module.load (module.js:488:32)
            [16:01:51] 'build' errored after 5.53 s
            [16:01:51] The following tasks did not complete: buildPages, buildScripts, copyAssets
            [16:01:51] Did you forget to signal async completion?

            npm ERR! Linux 4.2.0-16-generic
            npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
            npm ERR! node v7.4.0
            npm ERR! npm v4.0.5
            npm ERR! code ELIFECYCLE
            npm ERR! [email protected] build: npm run build-indexes && NODE_ENV=production gulp build
            npm ERR! Exit status 1
            npm ERR!
            npm ERR! Failed at the [email protected] build script 'npm run build-indexes && NODE_ENV=production gulp build'.
            npm ERR! Make sure you have the latest version of node.js and npm installed.
            npm ERR! If you do, this is most likely a problem with the xo-web package,
            npm ERR! not with npm itself.
            npm ERR! Tell the author that this fails on your system:
            npm ERR! npm run build-indexes && NODE_ENV=production gulp build
            npm ERR! You can get information on how to open an issue for this project with:
            npm ERR! npm bugs xo-web
            npm ERR! Or if that isn't available, you can get their info via:
            npm ERR! npm owner ls xo-web
            npm ERR! There is likely additional logging output above.

            npm ERR! Please include the following file with any support request:
            npm ERR! /opt/xo-web/npm-debug.log

            1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              Did you run the installer as root?

              B 2 Replies Last reply Reply Quote 1
              • B
                brandon @DustinB3403
                last edited by

                @DustinB3403 Yes I did: sudo su, sudo ./script

                DanpD 1 Reply Last reply Reply Quote 0
                • B
                  brandon @DustinB3403
                  last edited by

                  @DustinB3403 Should I install 16 lts?

                  1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403
                    last edited by

                    You said you're running Debian 8? Can you try the installer with Ubuntu 16.10? (never LTS)

                    My original system is based on Debian 7 and I'm a bit to busy to build a debain 8 system.

                    B 2 Replies Last reply Reply Quote 0
                    • B
                      brandon @DustinB3403
                      last edited by

                      @DustinB3403 I tried on Debian 8 but I failed, I have a 7.8? I am running ubuntu 15 and why not lts, I know they don't do the hole long time support thing but is there something wrong with the lts?

                      DustinB3403D 1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403 @brandon
                        last edited by

                        @brandon said in Xen Orchestra on Ubuntu 15.10 - Complete installation instructions:

                        @DustinB3403 I tried on Debian 8 but I failed, I have a 7.8? I am running ubuntu 15 and why not lts, I know they don't do the hole long time support thing but is there something wrong with the lts?

                        LTS is a marketing campaign (more or less). Just run the proper server and stay up to date with that.

                        1 Reply Last reply Reply Quote 1
                        • B
                          brandon @DustinB3403
                          last edited by

                          @DustinB3403 Downloading 16.10 doesnt matter that the OS is 64 bit?

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @brandon
                            last edited by

                            @brandon said in Xen Orchestra on Ubuntu 15.10 - Complete installation instructions:

                            @DustinB3403 Downloading 16.10 doesnt matter that the OS is 64 bit?

                            It only depends if your hardware isn't 64-bit...

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              brandon @DustinB3403
                              last edited by

                              @DustinB3403 Haha okay so it doesnt matter then, okay will install and give feedback. Did you use the install script or did you do go manual with 16.10?

                              DustinB3403D 1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403 @brandon
                                last edited by

                                @brandon Yes I installed maybe 2 weeks ago on 16.10 (server)

                                B 1 Reply Last reply Reply Quote 0
                                • B
                                  brandon @DustinB3403
                                  last edited by

                                  @DustinB3403 Okay will be a clean server install so the script will install everything needed?

                                  DustinB3403D 1 Reply Last reply Reply Quote 0
                                  • DustinB3403D
                                    DustinB3403 @brandon
                                    last edited by

                                    @brandon it should.

                                    1 Reply Last reply Reply Quote 0
                                    • DanpD
                                      Danp @brandon
                                      last edited by

                                      @brandon said in Xen Orchestra on Ubuntu 15.10 - Complete installation instructions:

                                      @DustinB3403 Yes I did: sudo su, sudo ./script

                                      To ensure that you are using the most recent version of the installation script, it is recommended to install using --

                                      sudo curl https://raw.githubusercontent.com/scottalanmiller/xenorchestra_installer/master/xo_install.sh | bash
                                      
                                      B 2 Replies Last reply Reply Quote 1
                                      • B
                                        brandon @Danp
                                        last edited by

                                        @Danp Hi Danp I tried to use the script but the new Ubuntu server is just so unstable... Cant install anything then apt crashes and I have to run dpkg --configure -a , while running the script it will randomly stop and say Killed... Busy running the script manually I am currently busy with sudo npm install and npm run build in the ox-server dir. Will give an update if the install is successful or not.... Why is the new Ubuntu such a pain? I use Xubuntu 14.04 as my main driver at home and work and I haven't had any real problem besides the wallpaper reverting back after every reboot but that was minor.

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          brandon @Danp
                                          last edited by

                                          Okay so I dont even get as far anymore keep getting "Killed" when I run "sudo npm install" in the xo-server dir...

                                          root@xenorc:/opt# git clone -b stable https://github.com/vatesfr/xo-server
                                          Cloning into 'xo-server'...
                                          remote: Counting objects: 10478, done.
                                          remote: Compressing objects: 100% (59/59), done.
                                          remote: Total 10478 (delta 31), reused 0 (delta 0), pack-reused 10419
                                          Receiving objects: 100% (10478/10478), 2.71 MiB | 959.00 KiB/s, done.
                                          Resolving deltas: 100% (7503/7503), done.
                                          Checking connectivity... done.
                                          root@xenorc:/opt# git clone -b stable https://github.com/vatesfr/xo-web
                                          Cloning into 'xo-web'...
                                          remote: Counting objects: 26052, done.
                                          remote: Compressing objects: 100% (81/81), done.
                                          remote: Total 26052 (delta 33), reused 0 (delta 0), pack-reused 25968
                                          Receiving objects: 100% (26052/26052), 9.20 MiB | 1.41 MiB/s, done.
                                          Resolving deltas: 100% (17340/17340), done.
                                          Checking connectivity... done.
                                          root@xenorc:/opt# cd xo-server
                                          root@xenorc:/opt/xo-server# sudo npm install
                                          ^[[B[ ..] - extract:lodash: verb gentlyRm don't care about contennpm WARN prefer global [email protected] should be installed with -g
                                          npm WARN prefer global [email protected] should be installed with -g
                                          npm WARN prefer global [email protected] should be installed with -g
                                          npm WARN prefer global [email protected] should be installed with -g

                                          [email protected] install /opt/xo-server/node_modules/argon2
                                          node-gyp rebuild

                                          Killed

                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            brandon
                                            last edited by

                                            Hi Everyone

                                            Okay installed Debian 7.8, Installation gave me a lot less problems than Ubuntu 16.10, the installation wasn't successful....
                                            Here is the complete installation output of xo-server and web

                                            xo-server : http://pastebin.com/yH0MRFpJ

                                            xo-web: http://pastebin.com/XVxXs9gf

                                            Here is my error:

                                            root@xen-orcha:/opt/xo-web# sudo npm run build

                                            [email protected] build /opt/xo-web
                                            npm run build-indexes && NODE_ENV=production gulp build

                                            [email protected] build-indexes /opt/xo-web
                                            index-modules --auto src

                                            index generated src/common/intl/locales/index.js
                                            [13:27:41] Using gulpfile /opt/xo-web/gulpfile.js
                                            [13:27:41] Starting 'build'...
                                            [13:27:41] Starting 'buildPages'...
                                            [13:27:41] Starting 'buildScripts'...
                                            [13:27:41] Starting 'buildStyles'...
                                            [13:27:41] Starting 'copyAssets'...
                                            [13:27:47] Finished 'buildPages' after 6.7 s
                                            [13:27:53] Finished 'buildStyles' after 12 s
                                            [13:27:54] Finished 'copyAssets' after 14 s
                                            Killed

                                            npm ERR! Linux 3.2.0-4-amd64
                                            npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
                                            npm ERR! node v7.4.0
                                            npm ERR! npm v4.0.5
                                            npm ERR! code ELIFECYCLE
                                            npm ERR! [email protected] build: npm run build-indexes && NODE_ENV=production gulp build
                                            npm ERR! Exit status 137
                                            npm ERR!
                                            npm ERR! Failed at the [email protected] build script 'npm run build-indexes && NODE_ENV=production gulp build'.
                                            npm ERR! Make sure you have the latest version of node.js and npm installed.
                                            npm ERR! If you do, this is most likely a problem with the xo-web package,
                                            npm ERR! not with npm itself.
                                            npm ERR! Tell the author that this fails on your system:
                                            npm ERR! npm run build-indexes && NODE_ENV=production gulp build
                                            npm ERR! You can get information on how to open an issue for this project with:
                                            npm ERR! npm bugs xo-web
                                            npm ERR! Or if that isn't available, you can get their info via:
                                            npm ERR! npm owner ls xo-web
                                            npm ERR! There is likely additional logging output above.

                                            npm ERR! Please include the following file with any support request:
                                            npm ERR! /opt/xo-web/npm-debug.log

                                            Does anyone know what to do?

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 15
                                            • 16
                                            • 17
                                            • 18
                                            • 19
                                            • 30
                                            • 31
                                            • 17 / 31
                                            • First post
                                              Last post