• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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