Description | This article provides detailed troubleshooting steps to resolve issues related to the Node.js-jsreport process. |
Scope | FortiSIEM. |
Solution |
If the jsreport process is down, stuck, or facing issues after an upgrade, follow the steps below to safely restart and ensure the process operates correctly.
Before following the steps below, ensure that a minimum of 24GB of memory is allocated to the FortiSIEM VM node. Refer to the FortiSIEM sizing guide for minimum resource requirements.
Ensure that the disk usage of /opt is below 80%. High disk usage can prevent the jsreport process from starting correctly.
df -h /opt
If the usage exceeds 80%, free up space on the disk by deleting unnecessary files or expanding the disk.
ps -aux | grep jsreport
This will display a list of running processes. Look for a process related to /opt/jsreport/server.js or similar.
admin 2462 0.3 0.4 1399680 108568 ? Sl Oct01 131:22 /usr/local/bin/node /opt/jsreport/server.js
In this case, 2462 is the PID of the jsreport process.
kill -9 2462
Note: Allow some time for the process to stop. It might take a few moments to exit gracefully.
ps -aux | grep jsreport
If the process has stopped successfully, the previous PID will not appear, and it will only see the grep command itself.
Example:
root 3030205 0.0 0.0 12216 1192 pts/0 s+ 07:44 0:00 grep --color=auto jsreport
ls -ld /tmp/jsreport
If the ownership is incorrect, change it by running the following command:
chown -R admin:admin /tmp/jsreport
Error: EACCES: permission denied, mkdir '/tmp/jsreport/autocleanup'
Correcting the directory ownership (as in step 7) should resolve this issue.
su admin
nohup /usr/local/bin/node /opt/jsreport/server.js >> /opt/exporter/export.log &
tail -f /opt/exporter/export.log
Look for log entries similar to:
2024-12-26T09:34:26.892Z - info: Creating default express app.
netstat -tulpn | grep :5488
The output should indicate that the service is bound to port 5488, confirming the jsreporter process is active.
su - admin /usr/local/bin/node /opt/jsreport/server.js
Output:
Fatal process out of memory: Failed to reserve virtual memory for CodeRange
The error indicates that memory allocated to the FortiSIEM VM node is not sufficient. Ensure that a minimum of 24GB of memory is allocated to the FortiSIEM VM node. Refer to the FortiSIEM sizing guide for minimum resource requirements. |
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 2025 Fortinet, Inc. All Rights Reserved.