Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Bartek Kus
    @bartekus
    @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
    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
    @Bartekus try running azk restart r3stack -Rvvv
    Bartek Kus
    @bartekus
    @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
    hmm.. have you ever run this system using azk in your local box?
    Bartek Kus
    @bartekus
    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
    @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

    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
    try running azk deploy --full for a environment resetting
    Bartek Kus
    @bartekus
    sorry for the delay, I was afk… anyway, it’s odd but:
     Bart@Araphel  ~/Dev/BIN/ZONE/r3stack   master  azk deploy full                                                                                               3 ↵  10020  21:17:39
    
    PLAY ***************************************************************************
    
    TASK [setup] *******************************************************************
    fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue", "unreachable": true}
    
    PLAY RECAP *********************************************************************
    default                    : ok=0    changed=0    unreachable=1    failed=0
     Bart@Araphel~/Dev/BIN/ZONE/r3stack   master  git remote -v                                                                                                 3 ↵  1002021:23:19
    azk_deploy    ssh://git@76.10.221.33:22/home/git/6a6f1c5.git (fetch)
    azk_deploy    ssh://git@76.10.221.33:22/home/git/6a6f1c5.git (push)
    However:
     Bart@Araphel  ~/Dev/BIN/ZONE/r3stack   master  azk deploy ssh                                                                                                  ✓  10021  21:23:54
    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 Fri Feb 12 04:24:08 UTC 2016
    
      System load:  0.0               Processes:              88
      Usage of /:   57.1% of 7.39GB   Users logged in:        0
      Memory usage: 5%                IP address for eth0:    76.10.221.33
      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
    
    Last login: Fri Feb 12 04:04:22 2016 from 96.52.168.39
    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 deploy full
    ? 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: Cleaning 0 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.
    Generating public/private rsa key pair.
    Your identification has been saved in /root/.ssh/id_rsa.
    Your public key has been saved in /root/.ssh/id_rsa.pub.
    The key fingerprint is:
    SHA256: /xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
    The key's randomart image is:
    +---[RSA 4096]----+
    xxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    +----[SHA256]-----+
    fatal: Not a git repository (or any parent up to mount point /azk/deploy/src)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
    
    PLAY ***************************************************************************
    
    TASK [setup] *******************************************************************
    fatal: [default]: UNRE
    Felipe Arenales Santos
    @fearenales
    really odd.
    please, may you run azk deploy shell and check if:
    • The content of /azk/deploy/src is your project itself and it's a git repo;
    • The content of /azk/deploy/.sshis your local SSH keys;
    Bartek Kus
    @bartekus
    @fearenales so the /src is indeed a git repo, but I do not see the .ssh folder in there so I guess that’s what’s I’m missing then
    Bartek Kus
    @bartekus
    I probably should do it by the book this time and set separate login for the azk as part of admin group and stop using root account for eveything lol
    Ricardo Quintanilha
    @quintanilhar
    Hi guys, I'm trying to create a php environment for zendframework2 using the azukiapp/php-fpm:5.6 image but I can't see in azk logs what's wrong
    I got 500 error when access http://site.dev.azk.io/
    Bartek Kus
    @bartekus
    @fearenales So should I just copy the id_rsa and id_rsa.pub files into the /azk/deploy/.ssh ?
    Gullit Miranda
    @gullitmiranda
    @Bartekus your ssh keys are not inside of the path $HOME/.ssh?
    $ ls -alh $HOME/.ssh/
    @quintanilhar what is your Azkfile?
    Bartek Kus
    @bartekus
    ls -a

    @gullitmiranda
    on my machine:

     Bart@Araphel  ~/Dev/BIN/ZONE/r3stack   master ?  ls -alh $HOME/.ssh/                                     ✓  10007  09:41:20
    total 48
    drwx------    7 Bart  staff   238B May 18  2015 .
    drwxr-xr-x+ 120 Bart  staff   4.0K Feb 13 09:41 ..
    -rw-------    1 Bart  staff   1.7K May  3  2015 github_rsa
    -rw-r--r--    1 Bart  staff   400B May  3  2015 github_rsa.pub
    -rw-------    1 Bart  staff   3.2K May 18  2015 id_rsa
    -rw-r--r--    1 Bart  staff   744B May 18  2015 id_rsa.pub
    -rw-r--r--    1 Bart  staff   6.7K Oct  5 03:08 known_hosts

    on my deployment server:

    git@1dfa1cbe-b67d-4e91-aa6a-e9a8e60a0fff:~/6a6f1c5$ ls -alh $HOME/.ssh/
    total 12K
    drwxrwxr-x 2 git git  4.0K Feb 11 07:36 .
    drwxr-xr-x 9 git git  4.0K Feb 11 20:03 ..
    -rw------- 1 git root 1.2K Feb 11 07:36 authorized_keys
    Ricardo Quintanilha
    @quintanilhar
    @gullitmiranda this is my Azkfile:
    /**
     * Documentation: http://docs.azk.io/Azkfile.js
     */
    // Adds the systems that shape your system
    systems({
      odin: {
        // Dependent systems
        depends: [],
        // More images:  http://images.azk.io
        image: {"docker": "azukiapp/php-fpm:5.6"},
        // Steps to execute before running instances
        provision: [
          "composer install",
        ],
        workdir: "/azk/#{manifest.dir}",
        shell: "/bin/bash",
        wait: 20,
        mounts: {
          '/azk/#{manifest.dir}': sync("."),
          '/azk/#{manifest.dir}/vendor': persistent("./vendor"),
          '/azk/#{manifest.dir}/composer.lock': path("./composer.lock"),
        },
        scalable: {"default": 1},
        http: {
          domains: [ "#{system.name}.#{azk.default_domain}" ]
        },
        ports: {
          // exports global variables
          http: "80/tcp",
        },
        envs: {
          // Make sure that the PORT value is the same as the one
          // in ports/http below, and that it's also the same
          // if you're setting it in a .env file
          APP_DIR: "/azk/#{manifest.dir}",
        },
      },
    });
    Bartek Kus
    @bartekus
    ok, scrap that, I’ve restarted from the begining, using digitalocean this time, however I’m having problem with installing the build…. is that a sure way to purge the containers node_modules and force reinstall?
    Bartek Kus
    @bartekus

    ahh

    $ azk shell r3stack -- rm -rf ./node_modules/*
    $ azk start -Rvvvv

    this did the trick :D

    Bartek Kus
    @bartekus
    nope… so close, yet so far away lol
     Bart@Araphel~/Dev/BIN/ZONE/r3stack   master ● ?  azk start                                                                                          ✓  10152  19:26:32
    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: ⎘ 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/r3stack
    azk:  .r3stack [log] >  > NODE_ENV=production node ./src/server
    azk:  .r3stack [log] >
    azk:  .r3stack [log] >  /azk/r3stack/node_modules/babel-core/lib/transformation/file/logger.js:41
    azk:  .r3stack [log] >      throw new Constructor(this._buildMessage(msg));
    azk:  .r3stack [log] >      ^
    azk:  .r3stack [log] >
    azk:  .r3stack [log] >  ReferenceError: [BABEL] /azk/r3stack/src/server/server.js: Unknown option: base.Children
    azk:  .r3stack [log] >      at Logger.error (/azk/r3stack/node_modules/babel-core/lib/transformation/file/logger.js:41:11)
    azk:  .r3stack [log] >      at OptionManager.mergeOptions (/azk/r3stack/node_modules/babel-core/lib/transformation/file/options/option-manager.js:289:18)
    azk:  .r3stack [log] >      at OptionManager.init (/azk/r3stack/node_modules/babel-core/lib/transformation/file/options/option-manager.js:486:10)
    azk:  .r3stack [log] >      at File.initOptions (/azk/r3stack/node_modules/babel-core/lib/transformation/file/index.js:211:75)
    azk:  .r3stack [log] >      at new File (/azk/r3stack/node_modules/babel-core/lib/transformation/file/index.js:129:22)
    azk:  .r3stack [log] >      at Pipeline.transform (/azk/r3stack/node_modules/babel-core/lib/transformation/pipeline.js:48:16)
    azk:  .r3stack [log] >      at Object.transformFileSync (/azk/r3stack/node_modules/babel-core/lib/api/node.js:118:10)
    azk:  .r3stack [log] >      at compile (/azk/r3stack/node_modules/babel-register/lib/node.js:100:20)
    azk:  .r3stack [log] >      at loader (/azk/r3stack/node_modules/babel-register/lib/node.js:128:14)
    azk:  .r3stack [log] >      at Object.require.extensions.(anonymous function) [as .js] (/azk/r3stack/node_modules/babel-register/lib/node.js:138: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.16.0-4-amd64
    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 your system:
    azk:  .r3stack [log] >  npm ERR!     NODE_ENV=production node ./src/server
    azk:  .r3stack [log] >  npm ERR! You can get their info via:
    azk:  .r3stack [log] >  npm ERR!     npm owner ls r3stack
    azk:  .r3stack [log] >  npm ERR! There is likely additional logging output above.
    azk:  .r3stac
    Gullit Miranda
    @gullitmiranda
    @Bartekus in deploy system the path is /azk/deploy/.ssh:
    azk deploy ssh
    ls -alh /azk/deploy/.ssh/
    @Bartekus about npm Err!: I believe that is happening any problem in the premises of the dependencies.
    Gullit Miranda
    @gullitmiranda
    @quintanilhar your application has the folder ./public?
    the entrypoint of the image of the php-fpm is a "magic" to create dynamic nginx.conf file.
    check the entrypoint to more details: https://github.com/azukiapp/docker-php-fpm/blob/master/5.6%2Frun.sh
    Bartek Kus
    @bartekus
    I’m fairly certain that after switching to digital ocean the deployment is working despite the fact that
    azk deploy ssh
    Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-71-generic x86_64)
    
     * Documentation:  https://help.ubuntu.com/
    
      System information as of Sun Feb 14 19:57:14 EST 2016
    
      System load:  0.09               Processes:              93
      Usage of /:   10.2% of 39.25GB   Users logged in:        0
      Memory usage: 20%                IP address for eth0:    xxx.xxx.xx.xx
      Swap usage:   0%                 IP address for docker0: xxx.17.0.1
    
      Graph this data and manage this system at:
        https://landscape.canonical.com/
    
    git@r3stack:~$ ls -alh /azk/deploy/.ssh/
    ls: cannot access /azk/deploy/.ssh/: No such file or directory

    when I go to the ip of my server I get:

    No Application Configured
    
    This domain is not associated with an application.

    which to me means that the deploy is working fine, but the installation and the operation now is not

    azk start now give me:
     Bart@Araphel~/Dev/BIN/ZONE/r3stack   master ● ?  azk start                                                                                        3 ↵  10180  15:30:42
    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: ⎘ 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/r3stack
    azk:  .r3stack [log] >  > NODE_ENV=production node ./src/server
    azk:  .r3stack [log] >
    azk:  .r3stack [log] >  /azk/r3stack/node_modules/babel-core/lib/transformation/file/logger.js:41
    azk:  .r3stack [log] >      throw new Constructor(this._buildMessage(msg));
    azk:  .r3stack [log] >      ^
    azk:  .r3stack [log] >
    azk:  .r3stack [log] >  ReferenceError: [BABEL] /azk/r3stack/src/server/server.js: Unknown option: base.Children
    azk:  .r3stack [log] >      at Logger.error (/azk/r3stack/node_modules/babel-core/lib/transformation/file/logger.js:41:11)
    azk:  .r3stack [log] >      at OptionManager.mergeOptions (/azk/r3stack/node_modules/babel-core/lib/transformation/file/options/option-manager.js:289:18)
    azk:  .r3stack [log] >      at OptionManager.init (/azk/r3stack/node_modules/babel-core/lib/transformation/file/options/option-manager.js:486:10)
    azk:  .r3stack [log] >      at File.initOptions (/azk/r3stack/node_modules/babel-core/lib/transformation/file/index.js:211:75)
    azk:  .r3stack [log] >      at new File (/azk/r3stack/node_modules/babel-core/lib/transformation/file/index.js:129:22)
    azk:  .r3stack [log] >      at Pipeline.transform (/azk/r3stack/node_modules/babel-core/lib/transformation/pipeline.js:48:16)
    azk:  .r3stack [log] >      at Object.transformFileSync (/azk/r3stack/node_modules/babel-core/lib/api/node.js:118:10)
    azk:  .r3stack [log] >      at compile (/azk/r3stack/node_modules/babel-register/lib/node.js:100:20)
    azk:  .r3stack [log] >      at loader (/azk/r3stack/node_modules/babel-register/lib/node.js:128:14)
    azk:  .r3stack [log] >      at Object.require.extensions.(anonymous function) [as .js] (/azk/r3stack/node_modules/babel-register/lib/node.js:138: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.16.0-4-amd64
    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 your system:
    azk:  .r3stack [log] >  npm ERR!     NODE_ENV=production node ./src/server
    azk:  .r3stack [log] >  npm ERR! You can get their info via:
    azk:  .r3stack [log] >  npm ERR!     npm owner ls r3stack
    azk:  .r3stack [log] >  npm ERR! There is likely additional logging out
    how do I just scrap the whole thing, like erase all the files but my source and force a clean install?
    Bartek Kus
    @bartekus
    I think the ask restart is great, but perhaps there could be azk reboot, which basically scraps everything but the config files and rebuild everything from the ground up. Since at this point everything is good to deploy and should be working, but discrapencies within the docker are causing the installation/opperation to fail
    Bartek Kus
    @bartekus
    I guess the next best thing seems to be azk start —rebuild
    Bartek Kus
    @bartekus
    No matter what I can’t seem to force azk to drop all the previous builds and start fresh
    I can execute the build in osx normaly, but trying to get azk to start the build causes the same errors as before despite the fact that the build has been readjusted… where are the azk files stored since I’d like to manualy erase them to force azk to recreate everything from scratch
    Bartek Kus
    @bartekus
    Since it’s not fair for the rest of people in the room I’ve take this issue to github where I made a ticket about it.
    Bartek Kus
    @bartekus

    ok, I started from scratch and used different name and the build that I knew was working before and so far, so good… except that it has been like 20 minutes and I’m still looking at this:

    TASK [configure : Restart dbus] ************************************************
    changed: [default]
    
    TASK [configure : Set iptables to forward traffic to load balancer] ************
    changed: [default] => (item=iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.17.0.1:11000)
    changed: [default] => (item=iptables-save > /etc/iptables/rules.v4)
    
    TASK [envs : Copy .env to server] **********************************************
    changed: [default]
    
    TASK [envs : Adding load $HOME/.env file into .profile] ************************
    ok: [default]
    
    TASK [envs : Adding env vars into $HOME/.env] **********************************
    ok: [default] => (item={u'key': u'HOST_IP', u'value': u'159.203.25.99'})
    ok: [default] => (item={u'key': u'HOST_DOMAIN', u'value': u'r3stack.com;'})
    ok: [default] => (item={u'key': u'AZK_AGENT_START_COMMAND', u'value': u'azk agent start'})
    ok: [default] => (item={u'key': u'AZK_RESTART_COMMAND', u'value': u'azk restart -R'})
    ok: [default] => (item={u'key': u'GIT_REF', u'value': u'master'})
    
    PLAY RECAP *********************************************************************
    default                    : ok=14   changed=7    unreachable=0    failed=0
    
    Enter passphrase for key '/root/.ssh/id_rsa':
    Counting objects: 2593, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (1005/1005), done.
    Writing objects: 100% (2593/2593), 673.88 KiB | 0 bytes/s, done.
    Total 2593 (delta 1401), reused 2528 (delta 1374)
    remote: $> git --work-tree=/home/git/d09ffff --git-dir=/home/git/d09ffff.git checkout master -f
    remote: Already on 'master'
    remote: Starting azk. Maybe downloading images be needed. Please be patient.
    remote: $> azk restart -R
    remote: azk: System `meatier` not running
    remote: azk: System `rethinkdb` not running
    remote: azk: Skip stoping, system `deploy` does not scale.
    remote: azk: ↑ starting `meatier` system, 1 new instances...
    remote: azk: ↑ starting `rethinkdb` system, 1 new instances...
    remote: azk: ✓ checking `azukiapp/node:latest` image...
    remote: azk: ◴ waiting for `rethinkdb` system to start, trying connection to port http/tcp...
    remote: azk: ↻ provisioning `meatier` system...

    Is it stuck or should I keep on waiting?

    this is the Azkfile that I use:
    systems({
      meatier: {
        docker_extra: {
          User: 'root',
        },
        depends: ["rethinkdb"],
        // More images:  http://images.azk.io
        image: {"docker": "azukiapp/node"},
        // Steps to execute before running instances
        provision: [
          "npm install",
        ],
        workdir: "/azk/#{manifest.dir}",
        shell: "/bin/bash",
        command: ["npm", "run", "quickstart"],
        wait: {"retry": 2, "timeout": 20000},
        mounts: {
          '/azk/#{manifest.dir}': sync("."),
          '/azk/#{manifest.dir}/node_modules': persistent("./node_modules"),
        },
        scalable: {"default": 1},
        http: {
          domains: [
            "#{env.HOST_DOMAIN}",
            "#{env.HOST_IP}",
            "#{system.name}.#{azk.default_domain}"
          ]
        },
        ports: {
          // exports global variables
          http: "3000/tcp",
        },
        envs: {
          // Make sure that the PORT value is the same as the one
          // in ports/http below, and that it's also the same
          // if you're setting it in a .env file
          NODE_ENV: "development",
          PORT: "3000",
          GRAPHQL_HOST: "#{system.name}.#{azk.default_domain}"
        },
      },
    
      rethinkdb: {
        image: { docker: "rethinkdb" },
        shell: '/bin/bash',
        scalable: false,
        command: "rethinkdb --bind all --direct-io --cache-size auto --server-name rethinkdb --directory ./rethinkdb --canonical-address rethinkdb.dev.azk.io",
        wait: {"retry": 2, "timeout": 5000},
        mounts: {
          '/rethinkdb': persistent('rethinkdb-#{manifest.dir}'),
        },
        ports: {
          http: "8080",
          data: "28015",
          cluster: "29015",
        },
        http: {
          domains: [ '#{system.name}.#{azk.default_domain}' ],
        },
        export_envs: {
          "DATABASE_HOST": '#{net.host}',
          "DATABASE_PORT": '#{net.port.data}',
          "DATABASE_URL": 'rethinkdb://#{net.host}:#{net.port.data}',
        }
      },
    
      deploy: {
        image: {"docker": "azukiapp/deploy-digitalocean"},
        mounts: {
          "/azk/deploy/src" :    path("."),
          "/azk/deploy/.ssh":    path("#{env.HOME}/.ssh"),
          "/azk/deploy/.config": persistent("deploy-config"),
        },
        envs: {
          REMOTE_HOST:        "159.203.25.99",
        },
        scalable: {"default": 0, "limit": 0}
      }
    
    });
    Bartek Kus
    @bartekus
    ok it seems that it’s frozen but it did deploy it, as I can access the build thru the IP, but not the hostname that’s contained in the .env file
    excellent, I’ll resolve the other ticket by incrementaly building from this to see where the breaking changes are introduced
    Danni Friedland
    @BlueHotDog
    hi guys
    i'm trying to run my mocha tests using azk
    i've added test package json