Comments (7)
My pleasure. Regarding the volumes – this is something I wanted to do myself for awhile, but been occasionally hitting this issue, which seemed like a show stopper.
Just tried doing what you did without much success either. The biggest bet was on copying /var/lib/riak
from fresh container to host and then mounting that as a volume after. That didn't work, probably due to file permissions, but I haven't figured this out yet. I'll look further into this tonight.
from docker-riak-cs.
It looks like there might be a problem with LevelDB. As far as I understood everything must just work with empty /var/lib/riak
folder, given it has the right permissions and ownership. But… I'm always getting IO error: /var/lib/riak/cluster_meta/trees/MANIFEST-000001: Invalid argument
, which also described in Level/levelup#222.
Some comments state that a workaround is to use NFS mounts over standard shared folders. You can easily give that a go with adlogix/docker-machine-nfs. One piece of advice – test it with another vm first, I had great issues with it at first because of my firewall.
I will update the built image in the next hour to ensure the right permissions are set on the data dirs in entrypoint. Let me know if you how if it worked.
from docker-riak-cs.
I use linux and yours linked issues are probably (docker-non-native-platforms) related. I do not prefer nfs to be involved (at least on linux).
I am already able to run riak with monted folder, but I need to set chmod a+rwx $MOUNTED_HOST_FOLDER
. Then I can start docker container by: sudo docker run -dP -e 'RIAK_CS_BUCKETS=foo,bar,baz' --name 'riak-cs' -p '8080:8080' -v $MOUNTED_HOST_FOLDER:/var/lib/riak ianbytchek/riak-cs
. Which means that ensuring right permissions in for /var/lib/riak
folder in configure_application.sh
script helps.
There is one more issue. When I start the docker container again and see docker logs
I get:
Starting Riak… OK!
Starting Stanchion… OK!
Starting Riak CS… OK!
Could not create admin user and retrieve credentiels…
Is this problem of early timeout?
Btw, how do you debug the image? Becase of entrypoint.sh
has only if [ "$1" = 'riak' ]; then
branch, I cannot start docker container with -i -t ianbytchek/riak-cs /bin/bash
.
from docker-riak-cs.
Good to know that it actually works. With regards to Could not create admin user and retrieve credentials…
. There was an issue with timeouts that was fixed with --connect-timeout 5 --retry 10 --retry-delay 5
on curl. I added more information to output when credentials setup fails, run it again and post what it outputs.
Debugging part wasn't very obvious, you'd have to overwrite entrypoint and run it with … --entrypoint bash ianbytchek/riak-cs -s
. I just updated the image (make sure to pull the latest), making this as easy as just passing bash
command:
docker -ti ianbytchek/riak-cs bash
The best way to debug is to clone the repo and mount /src/script/configure_application.sh:/entrypoint/script/configure_application.sh
or any other file in that manner. Files that go into /entrypoint
can be found in /src/script/build.sh
. Then you launch the container and see what happens, update the configure_application.sh
and do it again 😴
from docker-riak-cs.
Thanks, that is great progress. Unfortunately there is still one issue when I stop and start docker again:
lukas@luksrock:~/tmp$ sudo docker logs riak-cs
Update data permissions in case they are mounted as volumes… OK!
Starting Riak… OK!
Starting Stanchion… OK!
Starting Riak CS… OK!
Could not create admin user and retrieve credentials. Curl got response:
{}
That is because of riak_cs_create_admin function. When I manually set key
and secret
in /etc/riak-cs/advanced.config
everything works perfectly. Should be nice to extended this function set directly key
and secret
from environment variables.
btw, thanks for debugging tips (I didn't know --entrypoint
option).
from docker-riak-cs.
Check out the latest option. I'm a little short on time to properly test it, but it should work. See updated readme for environment vars.
from docker-riak-cs.
Works perfectly!
Thanks.
from docker-riak-cs.
Related Issues (12)
- Container get's configured every time it launches
- License HOT 1
- S3cmd ls gives Problem: BadStatusLine: '' HOT 3
- Buckets Cannot Be Created - Using docker-compose.yml HOT 5
- Takes very long to start HOT 1
- Unable to connect
- New configuration not applied after creating admin user HOT 2
- How do you use it? HOT 8
- Container is failing to start HOT 17
- output credentials in a folder/file that can be mounted by other containers HOT 3
- Expose Riak control UI ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-riak-cs.