• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Node.js 504 Gateway Time-out

h0us3cat

New Pleskian
Using plesk i installed something with git and node.js. Installing works fine and everything works as expected for a few minutes, after a while i get "504 Gateway Time-out" in browser and in server logs "2991#0: *297 upstream timed out (110: Connection timed out) while reading response header from upstream". However if i disable node.js on this (sub)domain where i installed the thing everything works. Sometimes when node.js is enabled i get the "Error starting web application" page from phusion with this backtrace: "in 'bool Passenger::SpawningKit::HandshakePerform::checkCurrentState()' (Perform.h:257) in 'void Passenger::SpawningKit::HandshakePerform::waitUntilSpawningFinished(boost::unique_lock&)' (Perform.h:213) in 'Passenger::SpawningKit::Result Passenger::SpawningKit::HandshakePerform::execute()' (Perform.h:1752) in 'Passenger::SpawningKit::Result Passenger::SpawningKit::DirectSpawner::internalSpawn(const AppPoolOptions&, Passenger::SpawningKit::Config&, Passenger::SpawningKit::HandshakeSession&, const Passenger::Json::Value&, Passenger::SpawningKit::JourneyStep&)' (DirectSpawner.h:211) in 'virtual Passenger::SpawningKit::Result Passenger::SpawningKit::DirectSpawner::spawn(const AppPoolOptions&)' (DirectSpawner.h:261) in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (SpawningAndRestarting.cpp:95)"

So i guess it must be some communication issue between node/phusion and apache/nginx but i don't know how to fix it.
 
Last edited:
I get this. It it intermittent and not consistently repeatable.
Probably the solution is to use something other than Plesk.
 
Back
Top