Reputation: 9251
I am uploading very large files to my rails app using apache which is causing my /tmp
directory to run out of space because it is using tmpfs. I found the documentation that tells me I can set the PassengerUploadBufferDir to have uploads go somewhere else.
I have added this to my /etc/httpd/conf.d/passenger.conf:
PassengerUploadBufferDir /var/tmp/
Even after changing my config file and restarting apache, I am still getting the following error:
*** Exception Errno::ENOSPC in Rack application object (No space left on device @ io_write - /tmp/PassengerTeeInput-1adfdu9
I also tried to set PassengerTempDir /var/tmp/
instead, but that gives me this error:
An error occurred while starting the web application. It reported a non-absolute socket filename: "/var/tmp//passenger.1.0.778/generation-1/backends/ruby.xQ04mujCtwlJbJBtug08XPh6t9hYXULOc1bCGDMfh7y"
How do I change upload directory? I am using passenger-4.0.46.
Upvotes: 1
Views: 1109
Reputation: 26
removing the trailing slash from PassengerTempDir /var/tmp
solved the problem for me!
Regards,
kaese
Upvotes: 1
Reputation: 9251
For anyone with the same problem, I never actually found a solution to this. I ended up having to turn off tmpfs
and not changing my upload directory.
Unfortunately, turning off tmpfs
varies greatly from distro to distro and in many cases across releases. You will need to find instructions for your specific setup :(
Upvotes: 0