You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Marco Matarazzo <ma...@hexkeep.com> on 2013/03/11 16:57:00 UTC

C* 1.2.2 , startup error

I'm seeing this error on cassandra 1.2.2 on startup: 

ERROR [COMMIT-LOG-ALLOCATOR] 2013-03-11 16:51:22,076 CassandraDaemon.java (line 132) Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main]
FSWriteError in /var/lib/cassandra/commitlog/CommitLog-2-1363017061553.log
	at org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:132)
	at org.apache.cassandra.db.commitlog.CommitLogAllocator$3.run(CommitLogAllocator.java:196)
	at org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLogAllocator.java:94)
	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
	at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.FileNotFoundException: /var/lib/cassandra/commitlog/CommitLog-2-1363017061553.log (Permission denied)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
	at org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:116)
	... 4 more

Clues about what can cause it ?

--
Marco Matarazzo
== Hex Keep ==

W: http://www.hexkeep.com
M: +39 347 8798528
E: marco.matarazzo@hexkeep.com

"You can learn more about a man
  in one hour of play
  than in one year of conversation.” - Plato





Re: C* 1.2.2 , startup error

Posted by Edward Capriolo <ed...@gmail.com>.
Caused by: java.io.FileNotFoundException: /var/lib/cassandra/commitlog/
CommitLog-2-1363017061553.log (Permission denied)

^ It seems like your running cassandra as a user thatdoes not have access
to this directory. Possibly you can something as "root" and now the files
are root owned at one point in time. Now you are trying to run as
"cassandra" and it is not working.


On Mon, Mar 11, 2013 at 11:57 AM, Marco Matarazzo <
marco.matarazzo@hexkeep.com> wrote:

> I'm seeing this error on cassandra 1.2.2 on startup:
>
> ERROR [COMMIT-LOG-ALLOCATOR] 2013-03-11 16:51:22,076 CassandraDaemon.java
> (line 132) Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main]
> FSWriteError in /var/lib/cassandra/commitlog/CommitLog-2-1363017061553.log
>         at
> org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:132)
>         at
> org.apache.cassandra.db.commitlog.CommitLogAllocator$3.run(CommitLogAllocator.java:196)
>         at
> org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLogAllocator.java:94)
>         at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>         at java.lang.Thread.run(Thread.java:679)
> Caused by: java.io.FileNotFoundException:
> /var/lib/cassandra/commitlog/CommitLog-2-1363017061553.log (Permission
> denied)
>         at java.io.RandomAccessFile.open(Native Method)
>         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
>         at
> org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:116)
>         ... 4 more
>
> Clues about what can cause it ?
>
> --
> Marco Matarazzo
> == Hex Keep ==
>
> W: http://www.hexkeep.com
> M: +39 347 8798528
> E: marco.matarazzo@hexkeep.com
>
> "You can learn more about a man
>   in one hour of play
>   than in one year of conversation.” - Plato
>
>
>
>
>

Re: C* 1.2.2 , startup error

Posted by "Hiller, Dean" <De...@nrel.gov>.
Always make sure root does not have "java" in his path so you don't make
that mistake.  At least that is how we handle it so root never runs
cassandra as we end up with java not found.

Later,
Dean

On 3/11/13 9:57 AM, "Marco Matarazzo" <ma...@hexkeep.com> wrote:

>I'm seeing this error on cassandra 1.2.2 on startup:
>
>ERROR [COMMIT-LOG-ALLOCATOR] 2013-03-11 16:51:22,076 CassandraDaemon.java
>(line 132) Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main]
>FSWriteError in /var/lib/cassandra/commitlog/CommitLog-2-1363017061553.log
>	at 
>org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment
>.java:132)
>	at 
>org.apache.cassandra.db.commitlog.CommitLogAllocator$3.run(CommitLogAlloca
>tor.java:196)
>	at 
>org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitL
>ogAllocator.java:94)
>	at 
>org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>	at java.lang.Thread.run(Thread.java:679)
>Caused by: java.io.FileNotFoundException:
>/var/lib/cassandra/commitlog/CommitLog-2-1363017061553.log (Permission
>denied)
>	at java.io.RandomAccessFile.open(Native Method)
>	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
>	at 
>org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment
>.java:116)
>	... 4 more
>
>Clues about what can cause it ?
>
>--
>Marco Matarazzo
>== Hex Keep ==
>
>W: http://www.hexkeep.com
>M: +39 347 8798528
>E: marco.matarazzo@hexkeep.com
>
>"You can learn more about a man
>  in one hour of play
>  than in one year of conversation.² - Plato
>
>
>
>