How To Fix Python/NodeJS Apps Cannot Upload Files Cloudlinux Cpanel

Fix the issue where Python/NodeJS apps cannot upload files in CloudLinux cPanel. Step-by-step guide to resolve file upload errors and restore functionality

How To Fix Python/NodeJS Apps Cannot Upload Files Cloudlinux Cpanel

📤 Issue: Node.js Apps Unable to Upload Large Files (Only Few KB Allowed)

If you're running Node.js apps via CloudLinux + cPanel, you might face an issue where file uploads fail or hang for files larger than a few kilobytes.


⚠️ Symptoms:

  • Uploads of small files (e.g. < 10 KB) work fine

  • Larger uploads fail silently or with timeout

  • No relevant errors in the Node.js app logs

  • Happens specifically when using Phusion Passenger (via Node.js Selector)


🌐 Environment:

  • ✅ CloudLinux OS

  • ✅ Node.js Selector

  • ✅ Phusion Passenger (via ea-ruby27-mod_passenger)

  • ❌ File uploads fail for large files


✅ Solution: Update Required Passenger Packages

The issue is typically caused by outdated versions of ea-ruby27-libuv or ea-ruby27-mod_passenger.

To fix it, update both packages to the latest version.


📦 Run This Command as Root:

# yum update ea-ruby27-libuv ea-ruby27-mod_passenger 

This will install the latest bug-fixed versions that improve upload buffer handling and request parsing, especially for larger files.


🔁 Optional: Restart Apache

After updating, restart Apache to apply changes:

# systemctl restart httpd 

🧪 After the Fix:

  • Retry uploading files > 1MB from your Node.js application

  • Confirm that uploads now succeed without timeout or errors

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0