perfsonar-user - [perfsonar-user] Cassandra breakage
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Brian Candler <>
- To: "" <>
- Subject: [perfsonar-user] Cassandra breakage
- Date: Thu, 10 Sep 2015 00:01:09 +0300
- Domainkey-signature: a=rsa-sha1; c=nofws; d=pobox.com; h=to:from:subject :message-id:date:mime-version:content-type; q=dns; s=sasl; b=JhA XGbJHOeQp+3k8iRosIrhrJ+bH2PMAEiu8ByIDPe1vcfIyW26/C9Q3CA0HD8mlNtM rS+uFjGyYxSpXRgtS+gabznYdltJz2F92crv9ZslDxgLc8l4ITISfzMH1ktZO+Os pPFzVzyD7EcEKm8y0MVoB8PXZsxKlw6CTmw66HiE=
FYI, I'm not sure how this happened, but the ownership of a
cassandra directory broke on one of the nodes I was working on. Symptom: psGraph.cgi was giving an infinite spinner. After rebooting the box, instead I saw: Error retrieving test data: undefined Apache error log showed: ... [Wed Sep 09 23:52:55 2015] [error] [client 127.0.0.1] File "/opt/esmond/esmond/api/perfsonar/api.py", line 41, in <module> [Wed Sep 09 23:52:55 2015] [error] [client 127.0.0.1] raise ConnectionException(error_msg) [Wed Sep 09 23:52:55 2015] [error] [client 127.0.0.1] ConnectionException: 'Unable to connect to cassandra. Please verify cassandra is running.' So I did /etc/init.d/cassandra start, but still no daemon was running. Checked cassandra logs: [root@pfsnr ~]# tail /var/log/cassandra/cassandra.log at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at org.apache.cassandra.db.ColumnFamilyStore.runWithCompactionsDisabled(ColumnFamilyStore.java:2155) at org.apache.cassandra.db.ColumnFamilyStore.truncateBlocking(ColumnFamilyStore.java:2103) at org.apache.cassandra.db.SystemKeyspace.discardCompactionsInProgress(SystemKeyspace.java:241) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:345) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:567) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:656) Caused by: java.io.IOException: Unable to create directory /var/lib/cassandra/data/system/compactions_in_progress/snapshots/1441832009319-compactions_in_progress ... 12 more Exception encountered during startup: java.io.IOException: Unable to create directory /var/lib/cassandra/data/system/compactions_in_progress/snapshots/1441832009319-compactions_in_progress Checking permissions: [root@pfsnr ~]# ls -ld /var/lib/cassandra/data/system/compactions_in_progress/snapshots/ drwxr-xr-x 3 root root 4096 Sep 9 12:46 /var/lib/cassandra/data/system/compactions_in_progress/snapshots/ [root@pfsnr ~]# chown cassandra:cassandra /var/lib/cassandra/data/system/compactions_in_progress/snapshots/ [root@pfsnr ~]# /etc/init.d/cassandra start Starting Cassandra: OK (on a different system I found this directory owned by cassandra:cassandra) And after this it was fine. But I wonder how it ended up being owned by root:root? Also, it would be nice if a more informative error were returned to the client if cassandra is not running. Regards, Brian. |
- [perfsonar-user] Cassandra breakage, Brian Candler, 09/09/2015
Archive powered by MHonArc 2.6.16.