Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NettyTlsClientAuthTest fails because cassandra script is not executable #355

Open
olim7t opened this issue Aug 18, 2023 · 1 comment
Open

Comments

@olim7t
Copy link
Contributor

olim7t commented Aug 18, 2023

(Encountered on MacOS, this might be system-dependent.)

NettyTlsClientAuthTest requires a local distribution of Cassandra, that gets downloaded and untarred by the Maven build. However, there seems to be an issue when making the startup script executable:

[INFO] --- maven-antrun-plugin:3.0.0:run (download.cassandra.bin) @ datastax-mgmtapi-server ---
[INFO] Executing tasks
[INFO]     [mkdir] Created dir: management-api-for-apache-cassandra/management-api-server/.cassandra-bin
[INFO]       [get] Getting: https://archive.apache.org/dist/cassandra/3.11.15/apache-cassandra-3.11.15-bin.tar.gz
[INFO]       [get] To: management-api-for-apache-cassandra/management-api-server/.cassandra-bin/apache-cassandra-3.11.15-bin.tar.gz
[INFO]     [untar] Expanding: management-api-for-apache-cassandra/management-api-server/.cassandra-bin/apache-cassandra-3.11.15-bin.tar.gz into management-api-for-apache-cassandra/management-api-server/.cassandra-bin
[ERROR]     [chmod] Result: 137

The offending instruction is:

<chmod file=".cassandra-bin/apache-cassandra-${cassandra3.version}/bin/cassandra" perm="777"/>

As a result, the test fails with a message saying that CASSANDRA_HOME is not set.

TODO:

  • make the POM fail if the ANT script fails (there is probably an option for that)
  • find out why the chmod is failing and fix it

An easy workaround is to fix the permissions manually:

chmod +x management-api-server/.cassandra-bin/apache-cassandra-3.11.15/bin/cassandra
@emerkle826
Copy link
Contributor

@burmanm ran into this I believe as well. I think this is a MacOS thing as it's not a problem on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants