Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 30465200B91 for ; Wed, 24 Aug 2016 21:59:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2AD2A160AC2; Wed, 24 Aug 2016 19:59:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7353B160A91 for ; Wed, 24 Aug 2016 21:59:26 +0200 (CEST) Received: (qmail 57629 invoked by uid 500); 24 Aug 2016 19:59:20 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 57546 invoked by uid 99); 24 Aug 2016 19:59:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2016 19:59:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 749952C0151 for ; Wed, 24 Aug 2016 19:59:20 +0000 (UTC) Date: Wed, 24 Aug 2016 19:59:20 +0000 (UTC) From: "Yuki Morishita (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-12534) sstableverify tries to access commitlog directory and fails when running from a non-root/non-cassandra user MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 24 Aug 2016 19:59:42 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15435556#comment-15435556 ] Yuki Morishita commented on CASSANDRA-12534: -------------------------------------------- For the record, the root cause of this is often times offline SSTable tools need to load schema that currently causes to create pseudo online environment (commit log, memtable etc). > sstableverify tries to access commitlog directory and fails when running from a non-root/non-cassandra user > ----------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-12534 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12534 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Wei Deng > > Reproduced this against C* 3.0.8 code. See the following output (the {{automaton}} user running this command is not the user that runs the cassandra JVM process, so it cannot have access to the commit log directory): > {noformat} > automaton@0ce59d338-1:~$ sstableverify keyspace1 standard1 > ERROR 19:38:37,674 Exiting due to error while processing commit log during initialization. > org.apache.cassandra.io.FSWriteError: java.nio.file.AccessDeniedException: /var/lib/cassandra/commitlog/CommitLog-6-1472067517651.log > at org.apache.cassandra.db.commitlog.CommitLogSegment.(CommitLogSegment.java:163) ~[cassandra-all-3.0.8.1293.jar:3.0.8.1293] > at org.apache.cassandra.db.commitlog.MemoryMappedSegment.(MemoryMappedSegment.java:47) ~[cassandra-all-3.0.8.1293.jar:3.0.8.1293] > at org.apache.cassandra.db.commitlog.CommitLogSegment.createSegment(CommitLogSegment.java:124) ~[cassandra-all-3.0.8.1293.jar:3.0.8.1293] > at org.apache.cassandra.db.commitlog.CommitLogSegmentManager$1.runMayThrow(CommitLogSegmentManager.java:122) ~[cassandra-all-3.0.8.1293.jar:3.0.8.1293] > at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) [cassandra-all-3.0.8.1293.jar:3.0.8.1293] > at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66] > Caused by: java.nio.file.AccessDeniedException: /var/lib/cassandra/commitlog/CommitLog-6-1472067517651.log > at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[na:1.8.0_66] > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[na:1.8.0_66] > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[na:1.8.0_66] > at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177) ~[na:1.8.0_66] > at java.nio.channels.FileChannel.open(FileChannel.java:287) ~[na:1.8.0_66] > at java.nio.channels.FileChannel.open(FileChannel.java:335) ~[na:1.8.0_66] > at org.apache.cassandra.db.commitlog.CommitLogSegment.(CommitLogSegment.java:158) ~[cassandra-all-3.0.8.1293.jar:3.0.8.1293] > ... 5 common frames omitted > {noformat} > This is the same issue that should be helped by CASSANDRA-9054. -- This message was sent by Atlassian JIRA (v6.3.4#6332)