Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13085

Cassandra fails to start because WindowsFailedSnapshotTracker can not write to CASSANDRA_HOME

    XMLWordPrintableJSON

    Details

    • Severity:
      Normal
    • Since Version:
      3.9

      Description

      We are currently trying to package Cassandra with our application.

      In windows our server does not want to start because it want to write to CASSANDRA_HOME\.toDelete, since we install to 'C:\program files\...' this is not possible when started under a non privileged user. We were hoping that setting pointers for the data and log dir to a writable location (somewhere under user home) would be enough to start cassandra but this component wants to write to a path that we cannot modify.

      For us there are a couple of solutions:
      1) the location can be specified using a system property like data and log dirs
      2) this file is written to the data location

      Our current work arround would be to patch this class file but that is hard to maintain.

      Exception (java.lang.RuntimeException) encountered during startup: Failed to cre
      ate failed snapshot tracking file [.toDelete]. Aborting
      java.lang.RuntimeException: Failed to create failed snapshot tracking file [.toDelete]. Aborting 
              at org.apache.cassandra.db.WindowsFailedSnapshotTracker.deleteOldSnapshots(WindowsFailedSnapshotTracker.java:98)
              at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:186)
              at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:601)
              at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:730)
              at com.id.cassandra.wrapper.Main.main(Unknown Source)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pjpinten Pieter-Jan Pintens
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: