Production environment and Apache's sendfile
Hi everyone. I've set up a galaxy production environment and it seems to be working. I've identified a couple of issues though: If I enable apache_xsendfile, the little "eye" icon ("Display data in browser") on each dataset stops working. I get the following instead: The requested URL /datasets/7e93e3cf926fb2b3/display/ was not found on this server My document root is not the same as the galaxy root (as suggested). Everything else seems to work. Is this a bug? Second question: I want to rotate the galaxy log file (as specified with paster.py serve --log-file. I can't find a way to reopen the logfile in galaxy without taking down the whole service, or a way to redirect the log to a pipe together while using --daemon. I cannot let the file grow forever. Any suggestions? Right now I've setup logrotate to "copytruncate" the log (the log is opened in append anyway), but it's not a very nice solution. Does "paster" support some standard signal such as SIGUSR1 to re-open log files? Thanks.
On Mar 9, 2012, at 4:12 AM, Yuri D'Elia wrote:
Hi everyone. I've set up a galaxy production environment and it seems to be working. I've identified a couple of issues though:
If I enable apache_xsendfile, the little "eye" icon ("Display data in browser") on each dataset stops working. I get the following instead:
The requested URL /datasets/7e93e3cf926fb2b3/display/ was not found on this server
My document root is not the same as the galaxy root (as suggested). Everything else seems to work. Is this a bug?
Hi Yuri, Could you check your Apache error log to see if there's anything relevant there?
Second question:
I want to rotate the galaxy log file (as specified with paster.py serve --log-file. I can't find a way to reopen the logfile in galaxy without taking down the whole service, or a way to redirect the log to a pipe together while using --daemon.
I cannot let the file grow forever. Any suggestions?
Unfortunately, there's no way to reopen the log without restarting the process. This is the way we handle our servers. Thanks, --nate
Right now I've setup logrotate to "copytruncate" the log (the log is opened in append anyway), but it's not a very nice solution. Does "paster" support some standard signal such as SIGUSR1 to re-open log files?
Thanks.
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at:
On Tue, 3 Apr 2012 15:06:05 -0600 Nate Coraor <nate@bx.psu.edu> wrote:
If I enable apache_xsendfile, the little "eye" icon ("Display data in browser") on each dataset stops working. I get the following instead:
The requested URL /datasets/7e93e3cf926fb2b3/display/ was not found on this server
My document root is not the same as the galaxy root (as suggested). Everything else seems to work. Is this a bug?
Hi Yuri,
Could you check your Apache error log to see if there's anything relevant there?
Nothing relevant. It seems to be that the sendfile path sent by galaxy to apache is simply broken.
participants (2)
-
Nate Coraor
-
Yuri D'Elia