TechnologySeptember 13, 2013

A short troubleshooting guide to OpsCenter

Erin Moy
Erin Moy
A short troubleshooting guide to OpsCenter

Hi my name is Erin and I’m a QA engineer. I’ve been on the OpsCenter team for the last 6 months or so and these are some problems I’ve encountered and their possible solutions.

General Checks

The following are things to check if you are not able to load OpsCenter in your browser, are not able to connect to your cluster, or notice other problems in OpsCenter.

  1. Make sure the opscenterd process is up and running. To check, run the following on the command line. ps -ef | grep opscenter
  2. Which browser are you using? Our supported browsers are Chrome, Firefox, and Safari.
  3. Are OpsCenter and the agents running? You might need to restart the agents after your cluster or OpsCenter was upgraded. Here are directions for restarting the agents.
  4. Is your firewall up? I’m guilty of this one. I sometimes forget to run “sudo service iptables stop” on my cluster that uses Red Hat. And remember to restart after disabling the firewall. Which port numbers are opened? This gave me problems when I was setting up my Amazon EC2 account. The solution was to make the ports as open as possible. In EC2, this would be your security groups. Important ports for OpsCenter can be found here.
  5. Is SSL mismatched? For example, your agents has SSL enabled and OpsCenter does not or vice versa.OpsCenter SSL documentation

What functionality is limited to the enterprise edition?

  1. You can provision DataStax Enterprise clusters.
  2. You can manage multiple clusters.
  3. Alerts
  4. Data backups
  5. Cluster report
  6. Diagnostics tarball
  7. Email notifications

Permissions and Backups

This is pertinent to people using OpsCenter and their DSE/Cassandra cluster was installed from a tarball. If you have this setup and try to run a backup, you will see something like below.

BackupError

You will need to make sure the user running the agent has read/write permissions on the Cassandra data directory. Choose one of the following solutions:

  1. Add the user to the group that owns the directory.
  2. Run the opscenter-agent as root. Once opscenterd, Cassandra, and the agent are installed and running (but before trying to backup / restore anything), edit /etc/init.d/opscenter-agent on your cluster, replacing the USER= line with USER="root". Then sudo service opscenter-agent restart.

You should be able to run a backup and restore successfully now.

Resources and Documentation

Good online resources and documentation sure come in handy, especially when you have forgotten something. Here’s a list of some of most useful resources I know of.

Official DataStax Documentation

Getting Started with Apache Cassandra

DataStax Enterprise questions on StackOverflow

OpsCenter 3.2 Troubleshooting

When in doubt, do not be afraid to ask questions.

Discover more
OpsCenter
Share

One-stop Data API for Production GenAI

Astra DB gives JavaScript developers a complete data API and out-of-the-box integrations that make it easier to build production RAG apps with high relevancy and low latency.