You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Joaquin Casares (JIRA)" <ji...@apache.org> on 2011/02/18 04:11:12 UTC

[jira] Created: (CASSANDRA-2190) Service fails to starts since mkdir /var/lib/cassandra fails

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
            Priority: Minor
             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

        

[jira] Assigned: (CASSANDRA-2190) Service fails to starts since mkdir /var/lib/cassandra fails

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis reassigned CASSANDRA-2190:
-----------------------------------------

    Assignee: Eric Evans

> 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
>             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

        

[jira] Resolved: (CASSANDRA-2190) Service fails to starts since mkdir /var/lib/cassandra fails

Posted by "Joaquin Casares (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joaquin Casares resolved CASSANDRA-2190.
----------------------------------------

    Resolution: Not A Problem

Conflicts with another script caused this problem.

> 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

        

[jira] Commented: (CASSANDRA-2190) Service fails to starts since mkdir /var/lib/cassandra fails

Posted by "Joaquin Casares (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997939#comment-12997939 ] 

Joaquin Casares commented on CASSANDRA-2190:
--------------------------------------------

It was my fault, sorry. I had a line in the script bundled from before I started using the debian package that killed /var/lib/cassandra to make sure it was a fresh start.

I told others of my mistake, but forgot about this JIRA ticket. Resolving this now.

> 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

        

[jira] Commented: (CASSANDRA-2190) Service fails to starts since mkdir /var/lib/cassandra fails

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
    [ 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