Where are the Node.js logs located?
Since Node.js extension version 2.1, all records are stored in the following file:
For earlier Node.js extension versions:
- Global log
/var/log/apache2/error_logfor Apache+nginx as a reverse-proxy on Debian/Ubuntu
/var/log/httpd/error_logfor Apache+nginx as a reverse-proxy on CentOS/RHEL/CloudLinux/AlmaLinux/RockyLinux
/var/log/nginx/error.log for nginx-only hosting on any OS
- Domain-level log
Use the domain log browser to check Node.js logs per domain via Domains > example.com > Logs menu
Note: Node.js can also records logs directly into
/var/www/vhosts/system/example.com/logs/directory, but this functionality is a part of Passenger Enterprise which is not included into the free edition that is provided by Plesk.
It is also possible to troubleshoot the application using the Debugging Guide. However, this isn't supported by Plesk and has to run only from CLI (stopping the web server beforehand).