Brief description of the problem
I’m unable to update the SSL certificate for Rockstor through the web-ui (/home#update-certificate). After specifying a certificate name, certificate and private key, I get the error below. However, the certificate is indeed updated and you just need to manually restart nginx with systemctl restart nginx
.
Detailed step by step instructions to reproduce the problem
SSL Certificate tab under System, Update SSL Certificate and add the relevant configs.
Error Traceback provided on the Web-UI
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception
yield
File "/opt/rockstor/src/rockstor/storageadmin/views/tls_certificate.py", line 92, in post
superctl("nginx", "restart")
File "/opt/rockstor/src/rockstor/system/services.py", line 142, in superctl
out, err, rc = run_command([SUPERCTL_BIN, switch, service])
File "/opt/rockstor/src/rockstor/system/osi.py", line 227, in run_command
logger.debug("Running command: {}".format(" ".join(cmd)))
CommandException: Error running a command. cmd = /opt/rockstor/.venv/bin/supervisorctl restart nginx. rc = 1. stdout = ['nginx: ERROR (no such process)', 'nginx: ERROR (no such process)', '']. stderr = ['']