When the CyOPs™ Configuration Wizard is being run, and it displays a message, such as:
One or more tasks failed. Please check the configuration log for details.
You can troubleshoot the CyOPs™ Configuration Wizard errors by checking its logs that are located at /var/log/cyops/config-vm-<timestamp>.log
The CyOPs™ Configuration Wizard log file might contain any one of the following errors, resolutions for which are mentioned in this article.
CyOPs™ Configuration Wizard log contains the following error:
Job
for rabbitmq-server.service failed because the control process exited
with error code. See "systemctl status rabbitmq-server.service" and
"journalctl -xe" for details.
fs.file-max = 100000
fs.file-max = 100000
User process started.
Error: unable to perform an operation on node 'rabbit@tester'. Please see diagnostics information and suggestions below.
The most common reasons for the RabbitMQ service errors are:
To further diagnose the issue, do the following:
RabbitMQ service errors occur when the hostname change script does not work as expected.
To resolve this issue, do the following:
sh /opt/cyops/configs/scripts/regeneratedefaultconfigs.sh -h <hostname>
hostname
command.2018-08-17T05:43:11.061+0000
I CONTROL [signalProcessingThread] shutting down with code:0
2018-08-17T05:43:15.247+0000 I CONTROL [main] ***** SERVER RESTARTED
***** 2018-08-17T05:43:15.251+0000 E NETWORK [main] cannot read
certificate file: /var/lib/mongo/ssl/server.leaf.pem1
error:02001002:system library:fopen:No such file or directory
2018-08-17T05:43:15.255+0000 F CONTROL [main] Failed global
initialization: InvalidSSLConfiguration: Can not set up PEM key file.
systemctl status mongodb
[root@bb
scripts]# systemctl status mongod mongod.service - High-performance,
schema-free document-oriented database Loaded: loaded
(/usr/lib/systemd/system/mongod.service; enabled; vendor preset:
disabled) Active: failed (Result: exit-code) since Fri 2018-08-17
05:43:15 UTC; 4s ago Docs: https://docs.mongodb.org/manual
Process: 12781 ExecStart=/usr/bin/mongod $OPTIONS (code=exited,
status=1/FAILURE) Process: 12778 ExecStartPre=/usr/bin/chmod 0755
/var/run/mongodb (code=exited, status=0/SUCCESS) Process: 12776
ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited,
status=0/SUCCESS) Process: 12773 ExecStartPre=/usr/bin/mkdir -p
/var/run/mongodb (code=exited, status=0/SUCCESS) Main PID: 19994
(code=exited, status=0/SUCCESS) Aug 17 05:43:15 bb.cybersponse.net
systemd[1]: Starting High-performance, schema-free document-oriented
database... Aug 17 05:43:15 bb.cybersponse.net mongod[12781]: about to
fork child process, waiting until server is ready for connections. Aug
17 05:43:15 bb.cybersponse.net mongod[12781]: forked process: 12784 Aug
17 05:43:15 bb.cybersponse.net mongod[12781]: ERROR: child process
failed, exited with error number 1 Aug 17 05:43:15 bb.cybersponse.net
systemd[1]: mongod.service: control process exited, code=exited status=1
Aug 17 05:43:15 bb.cybersponse.net systemd[1]: Failed to start
High-performance, schema-free document-oriented database. Aug 17
05:43:15 bb.cybersponse.net systemd[1]: Unit mongod.service entered
failed state. Aug 17 05:43:15 bb.cybersponse.net systemd[1]:
mongod.service failed.
Root cause
In case the error is due to invalid SSL certificates, ensure that a valid certificate is present at /var/lib/mongo/ssl/server.leaf.pem
.
If the error is due to an invalid SSL certificate, then do the following:
In case of a mongodb service error, take the appropriate steps based on the error mentioned in the log file.
Post-VM configuration, while executing playbooks you might observe the following error:
Unable to load API credentials from cache or DAS.’, ‘hydra:title’: ‘An error occurred’}
Invalid Appliance Key.
/opt/cyops/configs/scripts/regenerate_default_configs.sh -k
/opt/cyops/configs/scripts/services.sh restart
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.