This is what we get if we try to update the config before the version is set:
easy-cass-lab uc
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Uploading cassandra.patch.yaml to Host(public=54.201.93.3, private=172.31.46.251, alias=cassandra0, availabilityZone=us-west-2a)
Patching Host(public=54.201.93.3, private=172.31.46.251, alias=cassandra0, availabilityZone=us-west-2a)
Connecting to 54.201.93.3
Executing remote command: /usr/local/bin/patch-config cassandra.patch.yaml
Exception in thread "main" java.rmi.RemoteException: Error reported from remote command=/usr/local/bin/patch-config cassandra.patch.yaml; nested exception is:
java.rmi.ServerException: Error: open /usr/local/cassandra/current/conf/cassandra.orig.yaml: no such file or directory
mv: cannot move '/tmp/cassandra.yaml' to '/usr/local/cassandra/current/conf/cassandra.yaml': No such file or directory
chown: cannot access '/usr/local/cassandra/current/conf/cassandra.yaml': No such file or directory
at org.apache.sshd.client.session.ClientSession.executeRemoteCommand(ClientSession.java:247)
at com.rustyrazorblade.easycasslab.Context.executeRemotely(Context.kt:127)
at com.rustyrazorblade.easycasslab.commands.UpdateConfig.execute(UpdateConfig.kt:48)
at com.rustyrazorblade.easycasslab.MainKt.main(Main.kt:57)
Caused by: java.rmi.ServerException: Error: open /usr/local/cassandra/current/conf/cassandra.orig.yaml: no such file or directory
mv: cannot move '/tmp/cassandra.yaml' to '/usr/local/cassandra/current/conf/cassandra.yaml': No such file or directory
chown: cannot access '/usr/local/cassandra/current/conf/cassandra.yaml': No such file or directory
... 4 more
This is what we get if we try to update the config before the version is set:
Very confusing.