[ https://issues.apache.org/jira/browse/CASSANDRA-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997858#comment-12997858 ]
Eric Evans commented on CASSANDRA-2190: --------------------------------------- {quote} Caused by: java.io.IOException: unable to mkdirs /var/lib/cassandra/data. After running this workaround: sudo mkdir /var/lib/cassandra sudo chown cassandra:cassandra /var/lib/cassandra {quote} Something odd is going on here and more information will be needed. The first of those two commands shouldn't be needed because a) an empty directory is shipped in the package itself, and b) even it were not, the invocation of {{adduser}} in the postinst would create it. The only reasons I can see for the chown is that either a) the directory didn't exist (and so it wasn't chown'd in the postinst), or b) the user wasn't created (you can't make a non-existent user owner). How did you install package? Were there errors when installing the package? Did user cassandra exist prior to the install? > Service fails to starts since mkdir /var/lib/cassandra fails > ------------------------------------------------------------ > > Key: CASSANDRA-2190 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2190 > Project: Cassandra > Issue Type: Bug > Components: Packaging > Affects Versions: 0.7.2 > Reporter: Joaquin Casares > Assignee: Eric Evans > Priority: Minor > Labels: debian > Fix For: 0.7.3 > > > After installing the debian and running 'sudo service cassandra start' I see > this in the output.log: > Caused by: java.io.IOException: unable to mkdirs /var/lib/cassandra/data. > After running this workaround: > sudo mkdir /var/lib/cassandra > sudo chown cassandra:cassandra /var/lib/cassandra > The service starts. > On ami-cef405a7 in EC2. Ubuntu 10.10 (official release). -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira