These are chat archives for azukiapp/azk

11th
Feb 2016
Bartek Kus
@Bartekus
Feb 11 2016 04:43
doh, almost there, my bad
Bartek Kus
@Bartekus
Feb 11 2016 05:45

so close now, but still: ``` No Application Configured

This domain is not associated with an application. ```

Gullit Miranda
@gullitmiranda
Feb 11 2016 14:32
@Bartekus what's the version of azk installed in droplet?
$ azk deploy ssh
$ azk --version
Bartek Kus
@Bartekus
Feb 11 2016 17:53
@gullitmiranda
 Bart@Araphel  ~/Dev/BIN/ZONE/r3stack   master  azk deploy ssh                                                                                                  ✓  10071  10:50:07
? The agent is not running, would you like to start it? Yes
azk: Please wait, this process may take several minutes
azk: Loading settings and checking dependencies.
azk: Checking version...
azk: azk 0.16.3 detected
azk: Settings loaded successfully.
azk: Removing virtual machine...
azk: Virtual machine has been successfully removed.
azk: Agent is being started...
azk: Installing virtual machine...
azk: Virtual machine has been successfully installed.
azk: Setting the ssh key to vm...
azk: Starting virtual machine...
azk: Waiting for virtual machine boot...
azk: Virtual machine is ready to use.
azk: Mounting the shared folder in virtual machine...
azk: Shared folder has been successfully mounted.
azk: Trying to connect to docker (http://192.168.51.4:2375) (timeout: 20s)...
azk: Starting azk dns service...
azk: Dns service started.
azk: Trying to connect to docker (http://192.168.51.4:2375) (timeout: 20s)...
azk: Starting azk balancer redirect service...
azk: Check if balancer redirect service is up (tcp://192.168.51.4:80) (timeout: 10000s)...
azk: Balancer redirect started.
azk: Starting memcached service...
azk: Memcached service started.
azk: Starting http balancer service...
azk: Http balancer service started.
azk: Agent has been successfully started.
Enter passphrase for key '/root/.ssh/id_rsa':
Welcome to Ubuntu 15.10 (GNU/Linux 3.19.0-25-generic x86_64)
Certified Ubuntu Cloud Image

   __        .                   .
 _|  |_      | .-. .  . .-. :--. |-
|_    _|     ;|   ||  |(.-' |  | |
  |__|   `--'  `-' `;-| `-' '  ' `-'
                   /  ;  Instance (Ubuntu 15.10 20150807)
                   `-'   https://docs.joyent.com/images/linux/ubuntu-certified
                         http://www.ubuntu.com/cloud#joyent

 * Documentation:  https://help.ubuntu.com/

  System information as of Thu Feb 11 17:51:28 UTC 2016

  System load:  0.15              Processes:              141
  Usage of /:   56.3% of 7.39GB   Users logged in:        1
  Memory usage: 28%               IP address for eth0:    xx.xx.xxx.xx
  Swap usage:   0%                IP address for docker0: 172.17.0.1

  Graph this data and manage this system at:
    https://landscape.canonical.com/

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud


         Powered by vRocket @ https://vRocket.io


git@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:~$ azk --version
? =========================================================================
  We're constantly looking for ways to make azk better!
  May we anonymously report usage statistics to improve the tool over time?
  More info: https://github.com/azukiapp/azk and http://docs.azk.io/en/terms-of-use
 =========================================================================
 Yes
azk: cool! Thanks for helping us make azk better :)
azk 0.16.3
git@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:~$
Bartek Kus
@Bartekus
Feb 11 2016 18:12
I think it’s either npm problem, or something else…
root@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:~# cd ..
root@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:/# cd home/
root@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:/home# cd git/6a6f1c5
root@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:/home/git/6a6f1c5# azk restart r3stack
azk: System `r3stack` not running
azk: ↑ starting `r3stack` system, 1 new instances...
azk: ✓ checking `azukiapp/node:latest` image...
azk: ⎘ syncing files for `r3stack` system...
azk: ◴ waiting for `r3stack` system to start, trying connection to port http/tcp...
azk: Run system `r3stack` return: (1), for command: ["npm","run","start"]:
azk:  .r3stack [log] >  npm info it worked if it ends with ok
azk:  .r3stack [log] >  npm info using npm@3.3.12
azk:  .r3stack [log] >  npm info using node@v5.2.0
azk:  .r3stack [log] >  npm info lifecycle r3stack@1.0.0~prestart: r3stack@1.0.0
azk:  .r3stack [log] >  npm info lifecycle r3stack@1.0.0~start: r3stack@1.0.0
azk:  .r3stack [log] >
azk:  .r3stack [log] >  > r3stack@1.0.0 start /azk/6a6f1c5
azk:  .r3stack [log] >  > NODE_ENV=production node ./src/server
azk:  .r3stack [log] >
azk:  .r3stack [log] >  /azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:206
azk:  .r3stack [log] >            throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i, dirname));
azk:  .r3stack [log] >            ^
azk:  .r3stack [log] >
azk:  .r3stack [log] >  ReferenceError: Unknown plugin "add-module-exports" specified in "/azk/6a6f1c5/.babelrc" at 1, attempted to resolve relative to "/azk/6a6f1c5"
azk:  .r3stack [log] >      at /azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:206:17
azk:  .r3stack [log] >      at Array.map (native)
azk:  .r3stack [log] >      at Function.normalisePlugins (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:182:20)
azk:  .r3stack [log] >      at OptionManager.mergeOptions (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:298:36)
azk:  .r3stack [log] >      at OptionManager.addConfig (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:10)
azk:  .r3stack [log] >      at OptionManager.findConfigs (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:434:16)
azk:  .r3stack [log] >      at OptionManager.init (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:489:12)
azk:  .r3stack [log] >      at compile (/azk/6a6f1c5/node_modules/babel-register/lib/node.js:91:26)
azk:  .r3stack [log] >      at loader (/azk/6a6f1c5/node_modules/babel-register/lib/node.js:134:14)
azk:  .r3stack [log] >      at Object.require.extensions.(anonymous function) [as .js] (/azk/6a6f1c5/node_modules/babel-register/lib/node.js:144:7)
azk:  .r3stack [log] >
azk:  .r3stack [log] >  npm info lifecycle r3stack@1.0.0~start: Failed to exec start script
azk:  .r3stack [log] >  npm ERR! Linux 3.19.0-25-generic
azk:  .r3stack [log] >  npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
azk:  .r3stack [log] >  npm ERR! node v5.2.0
azk:  .r3stack [log] >  npm ERR! npm  v3.3.12
azk:  .r3stack [log] >  npm ERR! code ELIFECYCLE
azk:  .r3stack [log] >  npm ERR! r3stack@1.0.0 start: `NODE_ENV=production node ./src/server`
azk:  .r3stack [log] >  npm ERR! Exit status 1
azk:  .r3stack [log] >  npm ERR!
azk:  .r3stack [log] >  npm ERR! Failed at the r3stack@1.0.0 start script 'NODE_ENV=production node ./src/server'.
azk:  .r3stack [log] >  npm ERR! Make sure you have the latest version of node.js and npm installed.
azk:  .r3stack [log] >  npm ERR! If you do, this is most likely a problem with the r3stack package,
azk:  .r3stack [log] >  npm ERR! not with npm itself.
azk:  .r3stack [log] >  npm ERR! Tell the author that this fails on
Felipe Arenales Santos
@fearenales
Feb 11 2016 18:18
@Bartekus try running azk restart r3stack -Rvvv
Bartek Kus
@Bartekus
Feb 11 2016 18:21
@fearenales It seems to me it might be npm’s flat dependency issue, as it’s trying to install fsevents, which on *nix is a no no:
root@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:/home/git/6a6f1c5# azk restart r3stack -Rvvv
azk: System `r3stack` not running
azk: ↑ starting `r3stack` system, 1 new instances...
azk: ✓ checking `azukiapp/node:latest` image...
azk: ↻ provisioning `r3stack` system...
azk: ⎘ syncing files for `r3stack` system...
npm info it worked if it ends with ok
npm info using npm@3.3.12
npm info using node@v5.2.0
npm info attempt registry request try #1 at 6:19:19 PM
npm http request GET https://registry.npmjs.org/fsevents
npm http 200 https://registry.npmjs.org/fsevents
npm WARN install Couldn't install optional dependency: Unsupported
npm info lifecycle r3stack@1.0.0~preinstall: r3stack@1.0.0
npm info linkStuff r3stack@1.0.0
npm info lifecycle r3stack@1.0.0~install: r3stack@1.0.0
npm info lifecycle r3stack@1.0.0~postinstall: r3stack@1.0.0
npm WARN lifecycle r3stack@1.0.0~postinstall: cannot run in wd %s %s (wd=%s) r3stack@1.0.0 concurrent "npm run build:db" "npm run build:client" "npm run build:server" /azk/6a6f1c5
npm WARN EPEERINVALID babel-loader@6.2.1 requires a peer of webpack@^1.0.0 but none was installed.
npm WARN EPEERINVALID codemirror-graphql@0.2.2 requires a peer of graphql@^0.4.16 but none was installed.
npm WARN EPEERINVALID react-addons-create-fragment@0.14.7 requires a peer of react@^0.14.7 but none was installed.
npm WARN EPEERINVALID react-addons-pure-render-mixin@0.14.7 requires a peer of react@^0.14.7 but none was installed.
npm WARN EPEERINVALID react-addons-transition-group@0.14.7 requires a peer of react@^0.14.7 but none was installed.
npm WARN EPEERINVALID react-addons-update@0.14.7 requires a peer of react@^0.14.7 but none was installed.
npm info ok
azk: ◴ waiting for `r3stack` system to start, trying connection to port http/tcp...
azk: Run system `r3stack` return: (1), for command: ["npm","run","start"]:
azk:  .r3stack [log] >  npm info it worked if it ends with ok
azk:  .r3stack [log] >  npm info using npm@3.3.12
azk:  .r3stack [log] >  npm info using node@v5.2.0
azk:  .r3stack [log] >  npm info lifecycle r3stack@1.0.0~prestart: r3stack@1.0.0
azk:  .r3stack [log] >  npm info lifecycle r3stack@1.0.0~start: r3stack@1.0.0
azk:  .r3stack [log] >
azk:  .r3stack [log] >  > r3stack@1.0.0 start /azk/6a6f1c5
azk:  .r3stack [log] >  > NODE_ENV=production node ./src/server
azk:  .r3stack [log] >
azk:  .r3stack [log] >  /azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:206
azk:  .r3stack [log] >            throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i, dirname));
azk:  .r3stack [log] >            ^
azk:  .r3stack [log] >
azk:  .r3stack [log] >  ReferenceError: Unknown plugin "add-module-exports" specified in "/azk/6a6f1c5/.babelrc" at 1, attempted to resolve relative to "/azk/6a6f1c5"
azk:  .r3stack [log] >      at /azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:206:17
azk:  .r3stack [log] >      at Array.map (native)
azk:  .r3stack [log] >      at Function.normalisePlugins (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:182:20)
azk:  .r3stack [log] >      at OptionManager.mergeOptions (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:298:36)
azk:  .r3stack [log] >      at OptionManager.addConfig (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:10)
azk:  .r3stack [log] >      at OptionManager.findConfigs (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:434:16)
azk:  .r3stack [log] >      at OptionManager.init (/azk/6a6f1c5/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:489:12)
azk:  .r3stack [log] >      at comp
Felipe Arenales Santos
@fearenales
Feb 11 2016 18:31
hmm.. have you ever run this system using azk in your local box?
Bartek Kus
@Bartekus
Feb 11 2016 18:51
it does start:
 Bart@Araphel~/Dev/BIN/ZONE/r3stack   master ● ?  azk restart r3stack                                                                                         ✓  10084  11:49:05
azk: ↓ stopping `r3stack` system, 1 instances...
azk: ↑ starting `r3stack` system, 1 new instances...
azk: ✓ checking `azukiapp/node:latest` image...
azk: ⎘ syncing files for `r3stack` system...
azk: ◴ waiting for `r3stack` system to start, trying connection to port http/tcp...

┌───┬───────────┬───────────┬─────────────────────────────┬───────────────────────────┬──────────────┐
│   │ System    │ Instances │ Hostname/url                │ Instances-Ports           │ Provisioned  │
├───┼───────────┼───────────┼─────────────────────────────┼───────────────────────────┼──────────────┤
│ ↑ │ rethinkdb │ 1http://rethinkdb.dev.azk.io │ 1-http:8080, 1-data:28015 │ -            │
│   │           │           │                             │ 1-cluster:29015           │              │
├───┼───────────┼───────────┼─────────────────────────────┼───────────────────────────┼──────────────┤
│ ↑ │ r3stack   │ 1http://undefined            │ 1-http:3000               │ 11 hours ago │
└───┴───────────┴───────────┴─────────────────────────────┴───────────────────────────┴──────────────┘
Gullit Miranda
@gullitmiranda
Feb 11 2016 21:30
@Bartekus the plugin add-module-exports is in packages.json?
if yes, try:
$ azk deploy ssh
$ cd /home/git/6a6f1c5
$ azk stop
$ azk shell r3stack -- rm -rf ./node_modules/*
$ azk start -Rvvvv
Bartek Kus
@Bartekus
Feb 11 2016 21:39

nice, that definitly got it going:

git@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:~$ cd ..
git@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:/home$ cd git/6a6f1c5
git@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:~/6a6f1c5$ azk stop
? The agent is not running, would you like to start it? Yes
azk: Please wait, this process may take several minutes
azk: Loading settings and checking dependencies.
azk: Checking version...
azk: azk 0.16.3 detected
azk: azk updated, checking update procedures...
azk: Changing domain upgrading, (issue: #255)
azk: Cleaning 6 lost containers
azk: Settings loaded successfully.
azk: Agent is being started...
azk: Trying to connect to docker (unix:///var/run/docker.sock) (timeout: 20s)...
azk: Starting azk dns service...
azk: Dns service started.
azk: Trying to connect to docker (unix:///var/run/docker.sock) (timeout: 20s)...
azk: Starting azk balancer redirect service...
azk: Check if balancer redirect service is up (tcp://172.17.0.1:80) (timeout: 10000s)...
azk: Balancer redirect started.
azk: Starting memcached service...
azk: Memcached service started.
azk: Starting http balancer service...
azk: Http balancer service started.
azk: Agent has been successfully started.
[2]   Terminated              tail -n0 -f ${AZK_AGENT_LOG_ERR_FILE} 1>&2
azk: System `deploy` not running
azk: System `r3stack` not running
azk: System `rethinkdb` not running

┌───┬───────────┬───────────┬──────────────────────┬─────────────────┬─────────────┐
│   │ System    │ Instances │ Hostname/url         │ Instances-Ports │ Provisioned │
├───┼───────────┼───────────┼──────────────────────┼─────────────────┼─────────────┤
│ ↓ │ deploy    │ 0         │ dev.azk.io           │ -               │ -           │
├───┼───────────┼───────────┼──────────────────────┼─────────────────┼─────────────┤
│ ↓ │ r3stack   │ 076.10.221.33         │ -               │ 3 hours ago │
├───┼───────────┼───────────┼──────────────────────┼─────────────────┼─────────────┤
│ ↓ │ rethinkdb │ 0         │ rethinkdb.dev.azk.io │ -               │ -           │
└───┴───────────┴───────────┴──────────────────────┴─────────────────┴─────────────┘
git@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:~/6a6f1c5$ azk shell r3stack -- rm -rf ./node_modules/*
git@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:~/6a6f1c5$ azk start -Rvvvv
azk: ↑ starting `rethinkdb` system, 1 new instances...
azk: ✓ checking `library/rethinkdb:latest` image...
azk: ◴ waiting for `rethinkdb` system to start, trying connection to port http/tcp...
azk: ↑ starting `r3stack` system, 1 new instances...
azk: ✓ checking `azukiapp/node:latest` image...
azk: ↻ provisioning `r3stack` system...
azk: ⎘ syncing files for `r3stack` system...
npm info it worked if it ends with ok
npm info using npm@3.3.12
npm info using node@v5.2.0
npm info attempt registry request try #1 at 9:35:31 PM
npm http request GET https://registry.npmjs.org/babel-polyfill
npm info attempt registry request try #1 at 9:35:32 PM

all the packages being instaled, all good, but then:

├─┬ socketcluster-client@4.1.2
│ ├── linked-list@0.1.0
│ ├── sc-channel@1.0.4
│ └── sc-ws@0.8.0
└─┬ url@0.11.0
  ├── punycode@1.3.2
  └── querystring@0.2.0

npm WARN EPEERINVALID codemirror-graphql@0.2.2 requires a peer of graphql@^0.4.16 but none was installed.
npm WARN EPEERINVALID react-addons-create-fragment@0.14.7 requires a peer of react@^0.14.7 but none was installed.
npm WARN EPEERINVALID react-addons-update@0.14.7 requires a peer of react@^0.14.7 but none was installed.
npm WARN EPEERINVALID react-addons-pure-render-mixin@0.14.7 requires a peer of react@^0.14.7 but none was installed.
npm WARN EPEERINVALID react-addons-transition-group@0.14.7 requires a peer of react@^0.14.7 but none was installed.
npm info ok
azk: Error: EACCES, permission denied '/home/git/6a6f1c5/.azk/Azkfile.js/5c3978784fd3fdf7b6acdd6da56f06b8'
azk:     at Object.fs.openSync (fs.js:439:18)
azk:     at Object.fs.writeFileSync (fs.js:978:15)
azk:     at Object.Cache._put (/usr/lib/azk/node_modules/fscache/lib/cache.js:49:27)
azk
I suppose executing it from the root has something to do with it
Felipe Arenales Santos
@fearenales
Feb 11 2016 21:44
try running azk deploy --full for a environment resetting