hackmods / autoxoa Goto Github PK
View Code? Open in Web Editor NEWA automatic installer for getting and compiling Xen Orchestra from source.
License: GNU General Public License v3.0
A automatic installer for getting and compiling Xen Orchestra from source.
License: GNU General Public License v3.0
I would like to be able to script the install of XOA using Salt, but with the menus, this seems complicated.
Link has changed:
New Link is: https://github.com/kelektiv/node.bcrypt.js/archive/v1.0.2.tar.gz
Nearly completely clean install (Debian and salt-minion)
Starting xo-server
[email protected] start /xoa/xo-server
node bin/xo-server
app-conf /xoa/xo-server/config.json +0ms
app-conf /xoa/xo-server/.xo-server.yaml +2ms
xo:main Configuration loaded. +15ms
xo:main Web server listening on http://[::]:80 +6ms
xo:perf blocked for 84ms +146ms
[WARN] start error: Error: spawn vgchange ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
xo:main Setting up / → /xoa/xo-web/dist +279ms
xo:perf blocked for 182ms +4ms
Hitting the http:// does show the xoa sign-in screen. When I try to sign in with an invalid un/pw it tells me bad login. When I try to sign in with the default un/pw, it signs me in and gives me a spinning icon indefinitely.
Hi,
The documentation should be updated to note that under Ubuntu, the curl script must be run under sudo -i. Without this, the install scripts throws back errors. If it is run under sudo -i, it works perfectly.
Thanks.
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
cat /root/.npm/_logs/2018-05-22T20_30_56_704Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]start: [email protected]
6 info lifecycle [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle truestart: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/xoa/xo-server/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]start: CWD: /xoa/xo-serverstart: Args: [ '-c', 'node bin/xo-server' ]
10 silly lifecycle [email protected]
11 silly lifecycle [email protected]start: Returned: code: 1 signal: nullstart: Failed to exec start script
12 info lifecycle [email protected]
13 verbose stack Error: [email protected] start: node bin/xo-server
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:283:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:947:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5)
14 verbose pkgid [email protected]
15 verbose cwd /xoa/xo-server
16 verbose Linux 4.4.0-121-generic
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v10.0.0
19 verbose npm v6.0.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: node bin/xo-server
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
curl -L autoXOA.zxcv.us | sudo -i bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
######################################################
100 52## ##
72 100 5272 0 0 2444 ## Deploy Xen Orchestra from source, automatically. ##
0 0:00:02 0:00:02 --:--:-- 2444
######################################################
You are root.
User selected to install XOA
Make a selection
User selected to install XOA-Server && XOA-Web.
Performing initial updates
Installing updates
Hit:1 https://dl.yarnpkg.com/debian stable InRelease
Hit:2 http://br.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:5 https://deb.nodesource.com/node_8.x xenial InRelease
Hit:6 http://repo.zabbix.com/zabbix/3.4/ubuntu xenial InRelease
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing dependencies
Command: curl + n stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16696 100 16696 0 0 51640 0 --:--:-- --:--:-- --:--:-- 51690
Command: apt-get --yes --force-yes install build-essential redis-server libpng-dev git python-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpng12-dev' instead of 'libpng-dev'
build-essential is already the newest version (12.1ubuntu2).
libpng12-dev is already the newest version (1.2.54-1ubuntu1).
redis-server is already the newest version (2:3.0.6-1).
git is already the newest version (1:2.7.4-0ubuntu1.3).
python-minimal is already the newest version (2.7.12-1~16.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Command: npm install -g bower
/usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower
prepublish
scripts are deprecated.prepare
for build steps and prepublishOnly
for upload-only.npm help scripts
for more information.added 84 packages from 63 contributors in 8.979s
[!] 398 vulnerabilities found [12344 packages audited]
Severity: 357 Low | 32 Moderate | 9 High
Run npm audit
for more detail
Command: npm run build
[email protected] prebuild /xoa/xo-server
index-modules src/api src/xapi/mixins src/xo-mixins
index generated src/api/index.js
index generated src/xapi/mixins/index.js
index generated src/xo-mixins/index.js
[email protected] build /xoa/xo-server
gulp build --production
[17:30:31] Using gulpfile /xoa/xo-server/gulpfile.js
[17:30:31] Starting 'build'...
[17:30:31] Starting 'clean'...
[17:30:31] Finished 'clean' after 30 ms
[17:30:31] Starting 'buildCoffee'...
[17:30:31] Starting 'buildEs6'...
[17:30:34] Finished 'buildCoffee' after 2.37 s
[17:30:41] Finished 'buildEs6' after 10 s
[17:30:41] Finished 'build' after 10 s
Command: curl -L https://raw.githubusercontent.com/hackmods/autoXOA/master/config/xo-server.yaml > .xo-server.yaml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3704 100 3704 0 0 12595 0 --:--:-- --:--:-- --:--:-- 12598
Starting Install_XOA-web install
Command: git clone -b stable http://github.com/vatesfr/xo-web
fatal: destination path 'xo-web' already exists and is not an empty directory.
Command: npm install
npm WARN prepublish-on-install As of npm@5, prepublish
scripts are deprecated.
npm WARN prepublish-on-install Use prepare
for build steps and prepublishOnly
for upload-only.
npm WARN prepublish-on-install See the deprecation note in npm help scripts
for more information.
npm WARN lifecycle [email protected]~prepublish: cannot run in wd [email protected] npm run build (wd=/xoa/xo-web)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 84 packages from 63 contributors in 9.892s
[!] 446 vulnerabilities found [16579 packages audited]
Severity: 398 Low | 38 Moderate | 10 High
Run npm audit
for more detail
Command: npm run build
[email protected] build /xoa/xo-web
npm run build-indexes && NODE_ENV=production gulp build
[email protected] build-indexes /xoa/xo-web
index-modules --auto src
index generated src/common/intl/locales/index.js
index generated src/common/themes/index.js
[17:30:53] Using gulpfile /xoa/xo-web/gulpfile.js
[17:30:53] Starting 'build'...
[17:30:53] Starting 'buildPages'...
[17:30:53] Starting 'buildScripts'...
[17:30:53] Starting 'buildStyles'...
[17:30:53] Starting 'copyAssets'...
[17:30:54] 'buildStyles' errored after 461 ms
[17:30:54] Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (64)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.5.3
at module.exports (/xoa/xo-web/node_modules/node-sass/lib/binding.js:13:13)
at Object. (/xoa/xo-web/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/xoa/xo-web/node_modules/gulp-sass/index.js:187:21)
[17:30:54] 'build' errored after 465 ms
[17:30:54] The following tasks did not complete: buildPages, buildScripts, copyAssets
[17:30:54] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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 ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-05-22T20_30_54_120Z-debug.log
Starting autoXOA install
Command: curl -L autoxoa.zxcv.us > autoXOA.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5272 100 5272 0 0 10299 0 --:--:-- --:--:-- --:--:-- 10299
All installations have been completed.
IP Configuration
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 1a:d7:ba:65:27:dc brd ff:ff:ff:ff:ff:ff
inet 10.10.10.189/24 brd 10.10.10.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::18d7:baff:fe65:27dc/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 56:1c:b8:94:8e:83 brd ff:ff:ff:ff:ff:ff
Starting xo-server
[email protected] start /xoa/xo-server
node bin/xo-server
internal/buffer.js:53
throw new ERR_BUFFER_OUT_OF_BOUNDS();
^
RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to write outside buffer bounds
at boundsError (internal/buffer.js:53:11)
at Buffer.readUInt32BE (internal/buffer.js:198:5)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
at startup (internal/bootstrap/node.js:228:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:575:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node bin/xo-server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-05-22T20_30_56_704Z-debug.log
Thank you for using AutoXOA. Leave feedback at zxcv.us or contribute to the Github project.
The link autoXOA.zxcv.us seems to be broken.
autoxoa.zxcv.us’s server DNS address could not be found.
As autoXOA installs to /xoa autostart seems to be broken.
Is there another way to integrate autostart to the script?
Thanks, Markus
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.