Articles in this section

Where are the Node.js logs located?

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

Where are the Node.js logs located?

Answer

Since Node.js extension version 2.1, all records are stored in the following file:

CONFIG_TEXT: /var/log/passenger/passenger.log

For earlier Node.js extension versions:

  • Global log
    • /var/log/apache2/error_log​ for Apache+nginx as a reverse-proxy on Debian/Ubuntu
    • /var/log/httpd/error_log​ for 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.

Additional information

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).

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.