phusion / passenger

A fast and robust web server and application server for Ruby, Python and Node.js
https://www.phusionpassenger.com/
MIT License
5k stars 547 forks source link

TmpIO doesn't respect PassengerDataBufferDir #2555

Open jcoyne opened 2 months ago

jcoyne commented 2 months ago

Issue report

Fill in as much as possible so that we can understand, find and fix the problem.

Are you sure this is a bug in Passenger? Yes Please try with the newest version of Passenger to avoid issues that have already been fixed

Question 1: What is the problem?

When we try to upload a file that is larger than /tmp we see this error in the log:

App 1019421 output: [7dfd293d-9322-451f-804c-90eba118759d] Errno::ENOSPC (No space left on device @ io_write - /tmp/PassengerTeeInput-1tfvyic):

Your answer:

Question 2: Passenger version and integration mode:

Your answer:

Question 3: OS or Linux distro, platform (including version):

Your answer: Ubuntu 20.04.4 LTS

Question 4: Passenger installation method:

Your answer: [ ] RubyGems + Gemfile [ ] RubyGems, no Gemfile [x] Phusion APT repo [ ] Phusion YUM repo [ ] OS X Homebrew [ ] source tarball [ ] Other, please specify:

Question 5: Your app's programming language (including any version managers) and framework (including versions): Your answer: Ruby 3.3.3, RVM, Rails 7.1.3.4

Question 6: Are you using a PaaS and/or containerization? If so which one?

Your answer: no

Question 7: Anything else about your setup that we should know?

Your answer: none