File not in tmp when using mod_porter #12

Open
efalcao opened this Issue Oct 24, 2009 · 5 comments

Comments

Projects
None yet
4 participants
@efalcao

efalcao commented Oct 24, 2009

A note about my system: i'm running snow leopard.

When mod_porter is off, my rails app receives RackMultiPart just fine.

When enabling mod_porter (and the rails plugin). I get an object that looks like this in my params hash:

<ModPorter::UploadedFile:0x10407c3a8 @content_type="application/octet-stream", @original_filename="Argentina.gif", @path="/tmp/apreqxlq8oj">

which all seems great- except there is no file in /tmp named apreqxlq8oj

any ideas/advice? /tmp is definitely chmod 777

thanks!

@efalcao

This comment has been minimized.

Show comment Hide comment
@efalcao

efalcao Oct 29, 2009

bump!

efalcao commented Oct 29, 2009

bump!

@pkmiec

This comment has been minimized.

Show comment Hide comment
@pkmiec

pkmiec Oct 30, 2009

Contributor

I had the same problem. In my case, the apache is on different machine than the mongrels and the /tmp directory is not shared between the two machines. I forked mod_porter and added optional PorterDir parameter to solve my problem. See here.

So that probably doesn't help you much with snow leopard, but I thought I'd mention it.

Contributor

pkmiec commented Oct 30, 2009

I had the same problem. In my case, the apache is on different machine than the mongrels and the /tmp directory is not shared between the two machines. I forked mod_porter and added optional PorterDir parameter to solve my problem. See here.

So that probably doesn't help you much with snow leopard, but I thought I'd mention it.

@jcn

This comment has been minimized.

Show comment Hide comment
@jcn

jcn Apr 7, 2010

I see that PorterDir patch has been merged into the main project, but I can't seem to get it working properly. Running on Ubuntu, I followed the installations on the main modporter page and the module works great other than not being able to use PorterDir. Files continue to get streamed into /tmp . Are there any restrictions on PorterDir (owner, path, etc)?

jcn commented Apr 7, 2010

I see that PorterDir patch has been merged into the main project, but I can't seem to get it working properly. Running on Ubuntu, I followed the installations on the main modporter page and the module works great other than not being able to use PorterDir. Files continue to get streamed into /tmp . Are there any restrictions on PorterDir (owner, path, etc)?

@bengreenberg

This comment has been minimized.

Show comment Hide comment
@bengreenberg

bengreenberg May 26, 2010

jcn, did you get this figured out? I'm having the same problem on Leopard.

jcn, did you get this figured out? I'm having the same problem on Leopard.

@jcn

This comment has been minimized.

Show comment Hide comment
@jcn

jcn May 26, 2010

Never got it figured out. We were in the middle of migrating to nginx anyway, so we just finished and used the nginx upload module.

jcn commented May 26, 2010

Never got it figured out. We were in the middle of migrating to nginx anyway, so we just finished and used the nginx upload module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment