cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Fenwick (Reopened) (JIRA)" <>
Subject [jira] [Reopened] (CASSANDRA-4058) Debian package does not create /var/lib/cassandra/data
Date Fri, 16 Mar 2012 19:05:39 GMT


Jacob Fenwick reopened CASSANDRA-4058:

I found a fix that works.
If you change the ownership of the directory /var/lib/cassandra to cassandra:

sudo chown -R cassandra:cassandra /var/lib/cassandra

Then Cassandra will be able to create the directories.

When installed from the Debian package, by default, /var/lib/cassandra has these permissions:
drwxr-xr-x  5 root     root 

So either the directory has to be set so users besides the owner can read and execute in the
directory, or the user that cassandra uses needs to own the directory.

/var/log/cassandra also has this issue as the output.log complains that system.log can't be
That issue can be fixed by running:

sudo chown -R cassandra:cassandra /var/log/cassandra

Seems like it should be an easy fix in the Debian package. If you think this is the right
fix and is worth fixing I can probably look at it.
> Debian package does not create /var/lib/cassandra/data
> ------------------------------------------------------
>                 Key: CASSANDRA-4058
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>         Environment: Ubuntu 11.10
>            Reporter: Jacob Fenwick
> I installed Cassandra using the Debian packages as described here:
> When trying to start Cassandra using /etc/init.d/cassandra start I get this error: unable to mkdirs /var/lib/cassandra/data
> The directory /var/lib/cassandra exists, but the directory /var/lib/cassandra/data does
> I would assume the data directory should have been created with the correct permissions,
but it was not.
> However, I tried creating /var/lib/cassandra/data and setting it the permissions to 666
and setting the user/group to cassandra/cassandra, and now I get this error:
> java.lang.AssertionError: Directory /var/lib/cassandra/data is not accessible.
> So what could possibly be the problem here?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message