Articles in this section

Node.js menu in Plesk shows error: The file does not exist

Plesk for Windows Plesk for Linux kb: technical ext: nodejs ABT: Group B

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Symptoms

  • The following error appears next to the Application Startup File in Domains > example.com > Node.js:

    The file does not exist

  • The NodeJS application doesn't work, the webbrowser shows following error on opening the website:

    We're sorry, but something went wrong.

  • The following error is shown in log /var/log/passenger/passenger.log:

    App 2286 output: Error: Cannot find module '/var/www/vhosts/example.com/sub.example.com/app.js'

Cause

Application Startup File is missing in the Application Root directory.

Resolution

  1. Log in to Plesk GUI

  2. Go to Domains > example.com > Node.js

  3. Verify that the Application Root directory is set to an existing directory

  4. Make sure that the Application Startup File exists in the Application Root directory and set the correct name by clicking on file name in Domains > example.com > Node.js next to Application Startup File and clicking OK

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.