You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jacob Fenwick (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/03/17 01:12:37 UTC

[jira] [Issue Comment Edited] (CASSANDRA-4058) Debian package does not create /var/lib/cassandra/data

    [ https://issues.apache.org/jira/browse/CASSANDRA-4058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231747#comment-13231747 ] 

Jacob Fenwick edited comment on CASSANDRA-4058 at 3/17/12 12:11 AM:
--------------------------------------------------------------------

Ok, admittedly, I think I may have already created those directories the first time I ran the package.
I tried installing the package on a different computer and it worked, setting the directories to the correct permissions.
However... I removed the package using apt-get remove, checked to see that /var/lib/cassandra was gone (which it was), removed /var/lib/cassandra (because it was still there), then reinstalled the package.
This time the directories had root as the owner.
How could the behavior change like that between two installs of the package?
                
      was (Author: jfenwick):
    Ok, admittedly, I think I may have already created those directories the first time I ran the package.
I tried installing the package on a different computer and it worked, setting the directories to the correct permissions.
However... I removed the package using apt-get remove, checked to see that /var/lib/cassandra was gone (which it was), removed /var/lib/cassandra (because it was still there), then reinstalled the package.
This time the packages had root as the owner.
How could the behavior change like that between two installs of the package?
                  
> Debian package does not create /var/lib/cassandra/data
> ------------------------------------------------------
>
>                 Key: CASSANDRA-4058
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4058
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>         Environment: Ubuntu 11.10
>            Reporter: Jacob Fenwick
>
> I installed Cassandra using the Debian packages as described here: http://wiki.apache.org/cassandra/DebianPackaging
> When trying to start Cassandra using /etc/init.d/cassandra start I get this error: java.io.IOError: java.io.IOException: unable to mkdirs /var/lib/cassandra/data
> The directory /var/lib/cassandra exists, but the directory /var/lib/cassandra/data does not.
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira