Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

scano_183208 avatar image
scano_183208 asked ·

Why am I getting "Can not write to the CA certs directory" when restarting OpsCenter?

I am receiving the following error message when attempting to restart OPSCENTER:

[opscenterd] ERROR: Can not write to the CA certs directory: /var/lib/opscenter/ssl/lcm (MainThread)
ERROR: java.lang.Exception: Failure starting Lifecycle Manager: Can not write to the CA certs directory: /var/lib/opscenter/ssl/lcm

Any insight would be appreciate it!

-Simon

opscenter
3 comments
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

hi Simon,

login unix who are running opscenter has privilges to write on this directory ?

0 Likes 0 · ·

@dmngaya

Hi! than you for getting back to me. How do i know what user or group is running opscenter?

I was able to ix it by giving the opscenter user read and write permissions to this directory. But this was just blind luck.

I guess i would like to know who and what is runnin opscenter so that i know what i need to do if this happens again.

Thank you,

Simon

0 Likes 0 · ·

hi, on which environment are you running opscenter ? if it is on linux, you can run ps -ef | grep opscenter or ls -ltr /var/lib/opscenter/

0 Likes 0 · ·

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

@scano_183208 If you've installed OpsCenter from the RPM or Debian package, the OpsCenter daemon will run as a service as the opscenter Linux user. If for whatever reason the service was started as the root user, some of the directories that OpsCenter will lose ownership and you will need to manually reset the permissions.

In your case, we recommend that you reset the permissions on /var/lib/opscenter and all the subdirectories recursively using this command:

$ sudo chown -R opscenter:opscenter /var/lib/opscenter

Note that it is preferable to reset ownerships when OpsCenter is shutdown. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.