Skip to content

Using external data store in windows fails #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chavolla opened this issue Feb 26, 2016 · 3 comments
Closed

Using external data store in windows fails #54

chavolla opened this issue Feb 26, 2016 · 3 comments

Comments

@chavolla
Copy link

When using the option to mount a volume for data storage, cassandra is not able to wite logs and stops. The instruction used is

docker run --name myCass2 --rm -v //c/cassandra_storage:/var/lib/cassandra -it cassandra:2.2

and the error:

ERROR 23:05:11 Exiting due to error while processing commit log during initialization. org.apache.cassandra.io.FSWriteError: java.io.IOException: Invalid argument

I tried with Cassandra 2.2 and 3.3 and it is the same. Using store inside the image woks perfectly

@yosifkit
Copy link
Member

I think with the most recent change we need to chown/chmod the logs folder in the Dockerfile. Also the default with docker-machine is to only share the Users/ directory, so the bind mount will have to use that and will probably need --user similar to #48 (comment)

@chavolla
Copy link
Author

chavolla commented Mar 4, 2016

got the latest version and just tried as indicated in the link, but no luck so far. Tried
docker run --name myCass2 --rm -v //c/cassandra_storage:/var/lib/cassandra --user 1000:50 -it cassandra:latest
The error remains, not sure if I should try a different user or different mounting path

@tianon
Copy link
Member

tianon commented Aug 29, 2016

We do chown and chmod in the Dockerfile (as of #48), so if this isn't fixed now, I don't think there's actually anything we can realistically do about it. It might be that Cassandra doesn't support the kind of filesystem access vboxsf provides. It might be possible using Docker for Windows (given that it uses an alternate file-sharing implementation that's more forgiving about permissions issues), but it's hard to say for sure without testing it. Sorry!

@tianon tianon closed this as completed Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants