These are chat archives for azukiapp/azk

13th
Nov 2015
Slobodan Mišković
@slobo
Nov 13 2015 17:08
anyone run into this with docker 1.9, azk 0.16.1:
azk: Starting azk dns service...
azk: Error: HTTP code is 500 which indicates error: server error - Cannot start container 4efbd5f4bfff9e5be91ad2686df06d4cfb15f3869cb1f61c5e053423c189641d: failed to create endpoint dev.azk.io_type.daemon_mid.ce833fc9c9_sys.dns_seq.1_uid.f6967a908a on network bridge: Error starting userland proxy: listen udp 172.17.42.1:53: bind: cannot assign requested address
$ azk doctor
azk: Error: Config docker:host to be set by configure
azk:     at Object.get (/azk:0.16.1/src/config.js:246:11)
azk:     at Object.module.exports.Object.defineProperties.default.get [as default] (/azk:0.16.1/src/docker/index.js:1:10)
azk:     at Doctor._createClass.get (/azk:0.16.1/src/cmds/doctor.js:13:33)
azk:     at Doctor.callee$2$0$ (/azk:0.16.1/src/cmds/doctor.js:30:82)
azk:     at tryCatch (/usr/lib/azk/node_modules/babel-runtime/regenerator/runtime.js:65:40)
azk:     at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/lib/azk/node_modules/babel-runtime/regenerator/runtime.js:229:22)
azk:     at GeneratorFunctionPrototype.Gp.(anonymous function) [as next] (/usr/lib/azk/node_modules/babel-runtime/regenerator/runtime.js:262:19)
azk:     at GeneratorFunctionPrototype.tryCatcher (/usr/lib/azk/node_modules/bluebird/js/main/util.js:24:31)
azk:     at PromiseSpawn._next (/usr/lib/azk/node_modules/bluebird/js/main/generators.js:100:49)
azk:     at Promise._settlePromiseAt (/usr/lib/azk/node_modules/bluebird/js/main/promise.js:528:21)
azk:     at Promise._settlePromiseAtPostResolution (/usr/lib/azk/node_modules/bluebird/js/main/promise.js:224:10)
azk:     at Async._drainQueue (/usr/lib/azk/node_modules/bluebird/js/main/async.js:182:12)
azk:     at Async._drainQueues (/usr/lib/azk/node_modules/bluebird/js/main/async.js:187:10)
azk:     at Async.drainQueues (/usr/lib/azk/node_modules/bluebird/js/main/async.js:15:14)
azk:     at process._tickCallback (node.js:442:13)
azk:     at Function.Module.runMain (module.js:499:11)
Gullit Miranda
@gullitmiranda
Nov 13 2015 17:11

hi @slobo

This problem is occurring because the docker changed the IP where it is started. I am with this issue annotated to add, but I have not done.

Slobodan Mišković
@slobo
Nov 13 2015 17:12
is there something i can do fix it?
Gullit Miranda
@gullitmiranda
Nov 13 2015 17:13
workaround:
sudo rm -rf /etc/resolver/dev.azk.io
azk agent start
You can add the issue adding your error outputs?
If so, I add the reason for the problem and the workaround, it is well documented.
Slobodan Mišković
@slobo
Nov 13 2015 17:22
I added a comment to your issue, my azk now works fine, thank for the quick fix !
Gullit Miranda
@gullitmiranda
Nov 13 2015 17:25
tks
not remember who had already opened 😂
Patrik Patie Gmitter
@patie
Nov 13 2015 17:30
what about this please
azk: ↑ starting `node` system, 1 new instances...
azk: ✓ checking `azukiapp/node:latest` image...
azk: ⎘ syncing files for `node` system...
azk: TypeError: Object #<Object> has no method 'join'
azk:     at I18n._resolveKey (/i18n-cli:0.0.2/src/index.js:88:60)
azk:     at I18n.translate (/i18n-cli:0.0.2/src/index.js:44:39)
azk:     at I18n.t (/i18n-cli:0.0.2/src/index.js:23:28)
azk:     at Object._status (/azk:0.16.1/src/cli/ui.js:1:14)
azk:     at Object.fail (/azk:0.16.1/src/cli/ui.js:61:36)
azk:     at /azk:0.16.1/src/cmds/start.js:103:15
azk:     at tryCatcher (/usr/local/Cellar/azk/0.16.1/node_modules/bluebird/js/main/util.js:24:31)
azk:     at Promise._settlePromiseFromHandler (/usr/local/Cellar/azk/0.16.1/node_modules/bluebird/js/main/promise.js:454:31)
azk:     at Promise._settlePromiseAt (/usr/local/Cellar/azk/0.16.1/node_modules/bluebird/js/main/promise.js:530:18)
azk:     at Promise._settlePromises (/usr/local/Cellar/azk/0.16.1/node_modules/bluebird/js/main/promise.js:646:14)
azk:     at Async._drainQueue (/usr/local/Cellar/azk/0.16.1/node_modules/bluebird/js/main/async.js:177:16)
azk:     at Async._drainQueues (/usr/local/Cellar/azk/0.16.1/node_modules/bluebird/js/main/async.js:187:10)
azk:     at Async.drainQueues (/usr/local/Cellar/azk/0.16.1/node_modules/bluebird/js/main/async.js:15:14)
azk:     at process._tickCallback (node.js:442:13)
Gullit Miranda
@gullitmiranda
Nov 13 2015 17:40
@patie
This error occurs because there is a bug in the error display.
The problem is being passed an object to be translated (see https://github.com/azukiapp/azk/blob/master/src/cli/ui.js#L75).
Patrik Patie Gmitter
@patie
Nov 13 2015 17:41
what i can do
Gullit Miranda
@gullitmiranda
Nov 13 2015 17:44

The problem is that with this bug can not know what is really going on.
we can try to use azk start --log=debug.

If not, we have two viable options to identify it:

  1. make the hotfix
  2. you install azk from source and input a console.log to see the true error.
Patrik Patie Gmitter
@patie
Nov 13 2015 17:47
with azk start --log=debug there is many info on begin an at end there is the same error
Gullit Miranda
@gullitmiranda
Nov 13 2015 17:49
it is expected. Except, maybe to identify the problem with the generated log. Can you send me it?
Patrik Patie Gmitter
@patie
Nov 13 2015 17:58
ok i have it, i forgot move js files into subfolder
Gullit Miranda
@gullitmiranda
Nov 13 2015 17:59
:D
Patrik Patie Gmitter
@patie
Nov 13 2015 17:59
thanks @gullitmiranda @fearenales
Gullit Miranda
@gullitmiranda
Nov 13 2015 17:59
you’re welcome @patie
Patrik Patie Gmitter
@patie
Nov 13 2015 18:00
i love this project :D
Felipe Arenales Santos
@fearenales
Nov 13 2015 18:00
:D you're welcome @patie!
Gullit Miranda
@gullitmiranda
Nov 13 2015 18:00
We were very happy with it 😍
Gullit Miranda
@gullitmiranda
Nov 13 2015 18:24
We are very happy with it*
Patrik Patie Gmitter
@patie
Nov 13 2015 18:24
:)
Patrik Patie Gmitter
@patie
Nov 13 2015 22:36
hmm what about adding modules into apache? i need allow htaccess
Patrik Patie Gmitter
@patie
Nov 13 2015 22:44
provisioning? log into shell after start and change it manually? any other solution?
hmm provision on bash script can be fine :)
Gullit Miranda
@gullitmiranda
Nov 13 2015 22:51
What you do not persist for the provisioning will be lost.
The two best ways to do this are:
  1. Mounts
  2. use Dockerfile instead of image
Patrik Patie Gmitter
@patie
Nov 13 2015 22:52
yes i understand but enable apache moduleon start is enought
htaccess will be mounted locally
Gullit Miranda
@gullitmiranda
Nov 13 2015 22:53
ow, very nice
then you can change the command attribute in your Azkfile.
ex:
command: "a2enmod module_name; start command”
But I seriously recommend you change that to a Dockerfile. It is not a good idea at all start doing this.
what docker image are you using in your Azkfile?
Patrik Patie Gmitter
@patie
Nov 13 2015 22:57
azukiapp/php-fpm:5.6
/bin/bash: a2enmod: command not found
Gullit Miranda
@gullitmiranda
Nov 13 2015 22:59
this image use nginx instead of apache.
Patrik Patie Gmitter
@patie
Nov 13 2015 23:00
aaa
ok no problem
Gullit Miranda
@gullitmiranda
Nov 13 2015 23:00
Patrik Patie Gmitter
@patie
Nov 13 2015 23:01
yep i see, thank you
Gullit Miranda
@gullitmiranda
Nov 13 2015 23:03
you’re welcome