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

brew services start cassandra can't start cassandra 5.0.2 #199195

Open
4 tasks done
flodetan opened this issue Nov 27, 2024 · 4 comments
Open
4 tasks done

brew services start cassandra can't start cassandra 5.0.2 #199195

flodetan opened this issue Nov 27, 2024 · 4 comments
Labels
bug Reproducible Homebrew/homebrew-core bug stale No recent activity

Comments

@flodetan
Copy link

flodetan commented Nov 27, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

$ brew gist-logs cassandra
Error: A newer Command Line Tools release is available.
Update them from Software Update in System Settings.

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 15.4.
$ brew config
HOMEBREW_VERSION: 4.4.8-22-g8f074ac
ORIGIN: https://github.com/Homebrew/brew
HEAD: 8f074ac67243320cff40d751511f07489cb31e58
Last commit: 3 hours ago
Branch: master
Core tap HEAD: 6a1143735589fe0d7029fd75db0ec2360d5dd473
Core tap last commit: 27 minutes ago
Core tap JSON: 27 Nov 04:32 UTC
Core cask tap JSON: 27 Nov 04:32 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_REPOSITORY: /opt/homebrew/Homebrew
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.6 => /opt/homebrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.3-arm64
CLT: 15.0.0.0.1.1694021235
Xcode: N/A
Rosetta 2: false

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

brew services start cassandra

What happened (include all command output)?

$ brew services restart cassandra
Stopping `cassandra`... (might take a while)
==> Successfully stopped `cassandra` (label: homebrew.mxcl.cassandra)
==> Successfully started `cassandra` (label: homebrew.mxcl.cassandra)
$ ps -ef |grep  -i cassandra
  503 61069  1913   0  1:36PM ttys000    0:00.00 grep -i cassandra

$ lsof -i :9042

What did you expect to happen?

cassandra process should start

Step-by-step reproduction instructions (by running brew commands)

shell
Then I try to start cassandra manually, it said jamm-0.3.2.jar file is missing

$ JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home /opt/homebrew/opt/cassandra/bin/cassandra -f
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error opening zip file or JAR manifest missing : /opt/homebrew/Cellar/cassandra/5.0.2/libexec/jamm-0.3.2.jar
Error occurred during initialization of VM
agent library failed to init: instrument
@flodetan flodetan added the bug Reproducible Homebrew/homebrew-core bug label Nov 27, 2024
@cho-m
Copy link
Member

cho-m commented Nov 27, 2024

Cassandra 5 should be using jamm-0.4.0.jar.

One possibility is some stale paths within /opt/homebrew/etc/cassandra/ files due to upgrading from Cassandra 4 to 5.

Files in the etc path are not automatically modified by brew as they are often user-modifiable configuration files.

If you see any .default files there, then those are the newest copies of the non-.default files. Can diff them to see changes and overwrite old files.


Someone may need to check if files like cassandra-env.sh should be user-modifiable or if they should be overridden on upgrade.

@tigerzhang
Copy link

Same issue here.

Quick workaround, create a symbol link named jam-0.3.2.jar:

cd /opt/homebrew/Cellar/cassandra/5.0.2/libexec/
ln -s jamm-0.4.0.jar jamm-0.3.2.jar

@flyoasis
Copy link

flyoasis commented Dec 5, 2024

Seeing same issue here. Tried to create the symbol link to jamm-0.3.2.jar, cassandra service can be started, but still not able to access db.

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug stale No recent activity
Projects
None yet
Development

No branches or pull requests

4 participants