# Cassandra not starting even after restart of services and server

**URL:** <https://community.dynatrace.com/t/cassandra-not-starting-even-after-restart-of-services-and-server/13154>\
**Category:** Open Q&A\
**Tags:** cassandra\
**Created:** [June 28, 2018, 7:43am UTC](https://community.dynatrace.com/t/cassandra-not-starting-even-after-restart-of-services-and-server/13154 "2018-06-28T07:43:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsharma374](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rsharma374](https://community.dynatrace.com/u/rsharma374)\
**Post date:** [June 28, 2018, 7:43am UTC](https://community.dynatrace.com/t/cassandra-not-starting-even-after-restart-of-services-and-server/13154/1 "2018-06-28T07:43:47Z")

</div>

Cassandra not starting even after restart of services and server, getting error: # ./cassandra-nodetool.sh status nodetool: Failed to connect to ‘127.0.0.1:7199’ - ConnectException: ‘Connection refused (Connection refused)’ . Need to know if someone faced a similar issue and had a resolution ?

---

<div class="post-metadata">

**Author:** ![alexander\_schub](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@alexander\_schub](https://community.dynatrace.com/u/alexander_schub)\
**Post date:** [September 17, 2018, 2:50am UTC](https://community.dynatrace.com/t/cassandra-not-starting-even-after-restart-of-services-and-server/13154/2 "2018-09-17T02:50:18Z")

</div>

Hi

I had the same issue and found the solution.

Edit \<cassandra\_home\>/conf/cassandra-env.sh

Before editing:  
# jmx: metrics and administration interface  
#  
# add this if you’re having trouble connecting:  
# JVM\_OPTS=”$JVM\_OPTS -Djava.rmi.server.hostname=”

After Editing:  
JVM\_OPTS=”$JVM\_OPTS -Djava.rmi.server.hostname=yourhostname″

Regards

Alex
