java.lang.RuntimeException: java.nio.file.AccessDeniedException: /home/larisau/dev/scylla-tools-java/data/data/system/local-7ad54392bcdd35a684174e047860b377/mc_txn_flush_298c1900-1943-11e7-889a-8d0c97517e62.log


Solutions on the web1

Solution icon of github
java.nio.file.AccessDeniedException: /home/larisau/dev/scylla-tools-java/data/data/system/local-7ad54392bcdd35a684174e047860b377/mc_txn_flush_298c1900-1943-11e7-889a-8d0c97517e62.log

Stack trace

java.lang.RuntimeException: java.nio.file.AccessDeniedException: /home/larisau/dev/scylla-tools-java/data/data/system/local-7ad54392bcdd35a684174e047860b377/mc_txn_flush_298c1900-1943-11e7-889a-8d0c97517e62.log
	at org.apache.cassandra.io.util.FileUtils.write(FileUtils.java:557)[main/:na]
	at org.apache.cassandra.io.util.FileUtils.appendAndSync(FileUtils.java:538)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogReplica.append(LogReplica.java:66)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogReplicaSet.lambda$null$2(LogReplicaSet.java:186)[main/:na]
	at org.apache.cassandra.utils.Throwables.perform(Throwables.java:113)[main/:na]
	at org.apache.cassandra.utils.Throwables.perform(Throwables.java:103)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogReplicaSet.append(LogReplicaSet.java:186)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogFile.addRecord(LogFile.java:301)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogFile.abort(LogFile.java:255)[main/:na]
	at org.apache.cassandra.utils.Throwables.perform(Throwables.java:113)[main/:na]
	at org.apache.cassandra.utils.Throwables.perform(Throwables.java:103)[main/:na]
	at org.apache.cassandra.utils.Throwables.perform(Throwables.java:98)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogTransaction$TransactionTidier.run(LogTransaction.java:247)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogTransaction$TransactionTidier.tidy(LogTransaction.java:231)[main/:na]
	at org.apache.cassandra.utils.concurrent.Ref$GlobalState.release(Ref.java:320)[main/:na]
	at org.apache.cassandra.utils.concurrent.Ref$State.ensureReleased(Ref.java:198)[main/:na]
	at org.apache.cassandra.utils.concurrent.Ref.ensureReleased(Ref.java:118)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogTransaction.complete(LogTransaction.java:359)[main/:na]
	at org.apache.cassandra.db.lifecycle.LogTransaction.doAbort(LogTransaction.java:376)[main/:na]
	at org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional.abort(Transactional.java:144)[main/:na]
	at org.apache.cassandra.db.lifecycle.LifecycleTransaction.doAbort(LifecycleTransaction.java:234)[main/:na]
	at org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional.abort(Transactional.java:144)[main/:na]
	at org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional.abort(Transactional.java:193)[main/:na]
	at org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional.close(Transactional.java:158)[main/:na]
	at org.apache.cassandra.db.Memtable.createFlushWriter(Memtable.java:449)[main/:na]
	at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:371)[main/:na]
	at org.apache.cassandra.db.Memtable.flush(Memtable.java:332)[main/:na]
	at org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1063)[main/:na]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_121]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_121]
	at java.lang.Thread.run(Thread.java:745)[na:1.8.0_121]
Caused by: java.nio.file.AccessDeniedException: /home/larisau/dev/scylla-tools-java/data/data/system/local-7ad54392bcdd35a684174e047860b377/mc_txn_flush_298c1900-1943-11e7-889a-8d0c97517e62.log
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)[na:1.8.0_121]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)[na:1.8.0_121]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)[na:1.8.0_121]
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)[na:1.8.0_121]
	at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)[na:1.8.0_121]
	at java.nio.file.Files.newOutputStream(Files.java:216)[na:1.8.0_121]
	at java.nio.file.Files.write(Files.java:3351)[na:1.8.0_121]
	at org.apache.cassandra.io.util.FileUtils.write(FileUtils.java:550)[main/:na]
	... 30 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
5 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
14 more bugmates