Closed vnavarro closed 8 years ago
@vnavarro, thanks for reporting.
However, a solution for that is already merged into master: https://github.com/azukiapp/azk/pull/602.
This should be available on the next release (azk v0.17.0
).
@nuxlli, glad to help :smile:
I checked the merge #602 and it is still missing the "--bind 0.0.0.0" param for redis, without the bind the demo wasn´t working :cry:
@vnavarro, I think I went ahead and told you about another problem.
In the example published in azk
docs, we're using https://hub.docker.com/_/redis.
We did some changes on azk v0.16.0
to properly handle Docker images which have an ENTRYPOINT
, but we let a case uncovered: when a property command
is declared as a String (not an Array) in your Azkfile.js, this will be incorrectly delivered to the ENTRYPOINT
script, causing "command not found" or errors in parameters.
Notice that the error message that you received was on azkdemo
system, not redis
(line 7). In the line 4, the message says azk
was waiting for redis
and then azk
was able to connect to redis
. Hence, redis
system was properly exposed.
It's more likely that another error has occurred in the azkdemo
system, causing it to fail the startup process (in the azk v0.17.0
the statup process will be more verbose -- when called with -vv
flag -- helping to debug cases like yours).
This error can be caused due to a missing dependency redis
from npm, stated in the session that you pointed: http://docs.azk.io/en/getting-started/database.html#configuring-application. Notice by this line that if all systems are started using azk start
or azk restart
and the dependency isn't installed, the application will fail when running the require
method.
Anyway, I've made some tests with the Redis image and it's ok. By default, the bind is done to all interfaces (it's the default behavior when compiling Redis from source).
If after that the error persists and it's actually a bind
issue, please send me a gist with your Azkfile.js and I'll try to reproduce it here.
@nuxlli great! I´m new to azk and docker so I´m still getting the grasp here. I´ll keep an eye in the new version and check on this issue again. Thx :smile:
@vnavarro has worked for you?
Description of the problem: Redis command is missing bind instruction to work during getting started docs, without it the sample doesn´t work.
OS
: OS X Yosemite 10.10.5azk version
: 0.16.3Environment details (VirtualBox, DigitalOcean, etc.): Virtual Box 5.0.12 r104815
Steps to Reproduce:
azk restart azkdemo
commandActual Results:
Expected Results: Service up and running
Additional info: Adding command: ["redis-server", "--bind 0.0.0.0"] to the Azkfile.js in the redis section solves the problem. We probably should add this command in the redis configurations at the docs.