Articles in this section

Next JS application fails to load: Checking whether to disconnect long-running connections for process

Plesk for Linux kb: technical

Symptoms

  • Next.js application has been installed

  • Trying to load webpage shows "Incomplete response received from application" or "Response received from application"

  • Domain logs include:

    CONFIG_TEXT: 3969388/T1 age/Cor/CoreMain.cpp:1146: Checking whether to disconnect long-running connections for process 3996609, application /var/www/vhosts/example.com/httpdocs (production)

Cause

Nginx does not automatically route requests to the Next.js application

Resolution

  1. Log into Plesk

  2. Go to Domains > example.com > Hosting & DNS > Apache & Nginx Settings

  3. Disable Proxy mode

  4. Add the following in Additional nginx directives

    CONFIG_TEXT: location / {
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $http_host;
    proxy_pass http://127.0.0.1:3000;
    }

  5. Press Apply

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.