Michael Siebauer wrote:
Hi,
is there a way to run the check_galaxy script when external user authentification through apache is enabled? I get the following error:
|root@bioapp07:/home/galaxy/galaxy_dist/scripts# python check_galaxy.py 127.0.0.1:8080 ==> at http://127.0.0.1:8080/user Traceback (most recent call last): File "check_galaxy.py", line 358, in <module> if b.check_if_logged_in(): File "check_galaxy.py", line 278, in check_if_logged_in self.get("/user") File "check_galaxy.py", line 128, in get tc.code(200) File "/usr/lib/pymodules/python2.6/twill/commands.py", line 133, in code should_be)) twill.errors.TwillAssertionError: code is 403 != 200 |
Hi Michael, Thanks for letting us know. This script was initially developed for us to monitor Galaxy Main and I wasn't aware that anyone else was using it. Unfortunately, there's no simple solution to this, since it was never designed to be used with external authentication. You can set the REMOTE_USER header in the unproxied request, but that would require modifying the script. And once done, you'd also have to have the script stop attempting to access the internal authentication login page. If you feel comfortable making those sorts of changes I'd be happy to provide any information that'd assist you.
Bytheway, there is no hint in the documentation that a package "python-twill" is required to run the script ;-)
Oh, hmm, this script has been unchanged for so long that it was using an old path for eggs. I have just updated it and committed a fix in 4068:453e4edfab90. Thanks, --nate
Thx, Michael
------------------------------------------------------------------------
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev