gantree-io / gantree-cli-docker Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I'm retrying to deploy my node (which is based on a fresh node-template
2.0.0-alpha.5)
my config
{
"metadata":{
"version":"2.0",
"project":"nctr-test"
},
"binary":{
"chain":false,
"fetch":{
"url":"https://github.com/encointer/encointer-node/releases/download/v0.2.0/encointer-node",
"sha256":"0c0cda03410bff227c693a140094e2c8da6d9192238f5fe4e190ce7fab962af1"
},
"filename":"encointer-node",
"useBinChainSpec":"true"
},
"nodes":[
{
"validator":false,
"instance":{
"sshPrivateKeyPath": "/gantree/ssh/ssh_id_rsa_validator",
"provider":"do",
"dropletSize":"s-2vcpu-4gb",
"region":"fra1",
"sshPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDg4KTwEVbIG5FjmfX0E/Ip0HPOiOKKPAc+8yS4KO1fIJMMdHBybnRVrMHZL22DmQnih/Q1O6Zw4SPV5Ou+mZ4Ojz4JKv3VQ8HdIp1qS5AEqEOwAovkXhTTjnB/y5Mnoha1Pm5tC/15MOSjwclYHEegDBRosbBewOg6Or2ieeRbE1jYW4Sp8HWxhLAybQauqgKqCty8E78ZjG5cPdR54QmDQsypV918cBnKLWabV6UlZ67AprBmSeUo2QUmhOnPLVW4IsmpJuzuiJR9fBuXREk52zcRiXZoIrZqGzknR6xv5AnED2eIKjwciZL34cyOvVTNoX7vL1dM4qfsXzFGFWnX root@3f6b799bd119"
}
}
]
}
I'm running docker (commit b11a9c8), but that fails at:
docker run -v /home/abrenzikofer/gantree-work/:/gantree --env-file envfile.encointer --user $(id -u):$(id -g) --rm -ti gantree-cli-docker sync
Identity added: /gantree/ssh/ssh_id_rsa_validator (/gantree/ssh/ssh_id_rsa_validator)
Error loading key "/gantree/ssh/ssh_id_rsa_validator.pem": invalid format
Error loading key "/gantree/ssh/ssh_id_rsa_validator.pub": invalid format
██████╗ █████╗ ███╗ ██╗████████╗██████╗ ███████╗███████╗
██╔════╝ ██╔══██╗████╗ ██║╚══██╔══╝██╔══██╗██╔════╝██╔════╝
██║ ███╗███████║██╔██╗ ██║ ██║ ██████╔╝█████╗ █████╗
██║ ██║██╔══██║██║╚██╗██║ ██║ ██╔══██╗██╔══╝ ██╔══╝
╚██████╔╝██║ ██║██║ ╚████║ ██║ ██║ ██║███████╗███████╗
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝
[!] Using override for Gantree config path
[!] Using override for inventory path
2020-04-02T12:53:47.635Z [Gantree] (lib/gantree) info: reading gantree configuration
2020-04-02T12:53:47.662Z [Gantree] (lib/config/validate) info: Gantree configuration validated successfully
2020-04-02T12:53:47.663Z [Gantree] (lib/config/preprocessors/boolToString) info: converting booleans in config to strings
2020-04-02T12:53:47.663Z [Gantree] (lib/config/preprocessors/injectEnvVars) info: injecting environment variables into config
2020-04-02T12:53:47.664Z [Gantree] (lib/config/inject) info: injecting defaults
2020-04-02T12:53:47.664Z [Gantree] (lib/ansible/inventory) info: creating namespace
2020-04-02T12:53:47.664Z [Gantree] (lib/ansible/inventory) info: namespace created
2020-04-02T12:53:47.665Z [Gantree] (lib/ansible/inventory) info: creating Gantree inventory
2020-04-02T12:53:47.709Z [Gantree] (lib/ansible/inventory) warn: Gantree config hash has changed since creation
expected: 2e57e06b4f6dbe9f1818985e485c16e5514327682ca42da2a073514d4906408b
got: 7d498a53ed95c3cd58a2105d591fec475170053f15b43987b59a8cb9013fb926
2020-04-02T12:53:47.709Z [Gantree] (lib/ansible/inventory) info: Gantree inventory created
2020-04-02T12:53:47.710Z [Gantree] (lib/ansible/commands) info: running playbook: /usr/local/lib/node_modules/gantree-cli/node_modules/gantree-lib/ansible/infra.yml
2020-04-02T12:53:47.710Z [Gantree] (cmd) info: Executing: ansible-playbook -i /gantree/inventory/nctr-test/gantree -i /gantree/inventory/nctr-test/active /usr/local/lib/node_modules/gantree-cli/node_modules/gantree-lib/ansible/infra.yml, {"verbose":true}
2020-04-02T12:53:48.234Z [Gantree] (cmd) error: Error occured during command execution 'ansible-playbook -i /gantree/inventory/nctr-test/gantree -i /gantree/inventory/nctr-test/active /usr/local/lib/node_modules/gantree-cli/node_modules/gantree-lib/ansible/infra.yml':
Unhandled error:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/ansible/utils/path.py", line 85, in makedirs_safe
os.makedirs(b_rpath, mode)
File "/usr/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/.ansible'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/ansible/config/manager.py", line 554, in update_config_data
value, origin = self.get_config_value_and_origin(config, configfile)
File "/usr/lib/python3.8/site-packages/ansible/config/manager.py", line 498, in get_config_value_and_origin
value = ensure_type(value, defs[config].get('type'), origin=origin)
File "/usr/lib/python3.8/site-packages/ansible/config/manager.py", line 121, in ensure_type
makedirs_safe(value, 0o700)
File "/usr/lib/python3.8/site-packages/ansible/utils/path.py", line 90, in makedirs_safe
raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b'/.ansible'
2020-04-02T12:53:48.234Z [Gantree] (cmd) error: Error occured during command execution 'ansible-playbook -i /gantree/inventory/nctr-test/gantree -i /gantree/inventory/nctr-test/active /usr/local/lib/node_modules/gantree-cli/node_modules/gantree-lib/ansible/infra.yml':
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/ansible/utils/path.py", line 85, in makedirs_safe
os.makedirs(b_rpath, mode)
File "/usr/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/.ansible'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/ansible/config/manager.py", line 554, in update_config_data
value, origin = self.get_config_value_and_origin(config, configfile)
File "/usr/lib/python3.8/site-packages/ansible/config/manager.py", line 498, in get_config_value_and_origin
value = ensure_type(value, defs[config].get('type'), origin=origin)
File "/usr/lib/python3.8/site-packages/ansible/config/manager.py", line 121, in ensure_type
makedirs_safe(value, 0o700)
File "/usr/lib/python3.8/site-packages/ansible/utils/path.py", line 90, in makedirs_safe
raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b'/.ansible'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 62, in <module>
import ansible.constants as C
File "/usr/lib/python3.8/site-packages/ansible/constants.py", line 174, in <module>
config = ConfigManager()
File "/usr/lib/python3.8/site-packages/ansible/config/manager.py", line 290, in __init__
self.update_config_data()
File "/usr/lib/python3.8/site-packages/ansible/config/manager.py", line 566, in update_config_data
raise AnsibleError("Invalid settings supplied for %s: %s\n" % (config, to_native(e)), orig_exc=e)
ansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TMP: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b'/.ansible'
2020-04-02T12:53:48.241Z [Gantree] (cmd) error: Execution failed with code 1: ansible-playbook -i /gantree/inventory/nctr-test/gantree -i /gantree/inventory/nctr-test/active /usr/local/lib/node_modules/gantree-cli/node_modules/gantree-lib/ansible/infra.yml
(node:17) UnhandledPromiseRejectionWarning: Error: 1
at childCloseCallback (/usr/local/lib/node_modules/gantree-cli/node_modules/gantree-lib/src/lib/cmd.js:117:18)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/gantree-cli/node_modules/gantree-lib/src/lib/cmd.js:55:5)
at ChildProcess.emit (events.js:323:22)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
(node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:17) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
my gantree-work folder has been created with an earlier version of gantree-cli. How should I start anew? Didn't find any doc or tutorial. (sorry if I'm being impatient)
Step 14/22 : RUN npm install -g gantree-cli@$GANTREE_CLI_VERSION
---> Running in abe70370a4fc
/usr/local/bin/gantree-cli -> /usr/local/lib/node_modules/gantree-cli/src/index.js
> [email protected] postinstall /usr/local/lib/node_modules/gantree-cli/node_modules/storage-engine
> node ./compatibility/detect.js
internal/fs/utils.js:230
throw err;
^
Error: EACCES: permission denied, open '/usr/local/lib/node_modules/gantree-cli/node_modules/storage-engine/lib/compatibility/index.js'
at Object.openSync (fs.js:458:3)
at Object.writeFileSync (fs.js:1355:35)
at /usr/local/lib/node_modules/gantree-cli/node_modules/storage-engine/lib/compatibility/detect.js:35:15
at Object.<anonymous> (/usr/local/lib/node_modules/gantree-cli/node_modules/storage-engine/lib/compatibility/detect.js:45:3)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/usr/local/lib/node_modules/gantree-cli/node_modules/storage-engine/lib/compatibility/index.js'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node ./compatibility/detect.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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/2020-06-22T03_53_19_607Z-debug.log
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.