[Mongrel] file access with mongrel running as windows service

David Vrensk david at vrensk.com
Wed Nov 7 09:48:08 EST 2007


On Nov 7, 2007 3:01 PM, gmail <neongrau at gmail.com> wrote:

> i have an archive of documents (word, excel, jpeg, png, gif...)
> residing on a network share that is accessed via send_file.
>
> when running mongrel on the command line the files are properly
> delivered.
> with mongrel running as a service they don't.


Try running "net use" inside the process to see if the network share is
mounted at all.  This sounds like the typical Windows/web problem where the
operator assumes that everybody sees the same shares that she sees in her
session.  In reality, network shares are mounted per login session.  Two
users can be logged in on the the same Windows server and have different
shares available on Z:, which is clever, but also sort of confusing.  What
is even more confusing is that you may be logged on as "user1" and have
something mapped to Z:, but the service running as user1 has nothing on Z: –
it needs to create its own mappings.

Let us know if this helps.

/David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20071107/4cedbca5/attachment-0001.html 


More information about the Mongrel-users mailing list