-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 404s and missing LDs in WSGI based apache2 webserver #162
Comments
Can you post the apache error log?
…On Tue, Mar 23, 2021 at 05:05 eikematthias ***@***.***> wrote:
Disclaimer: This is my first bug report and webserver.
Steps to reproduce:
pheweb v. 1.3.9
config.py:
hg_build_number=38
num_procs=4
1.
I prepared a locally running pheweb browser. All features work fine
with pheweb serve --port 500. Shut it down afterwards.
2.
Creating a wsgi token via pheweb wsgi
3.
Install apache2 and libapache2-mod-wsgi-py3 via apt install; sudo
a2enmod wsgi
4.
Modify /etc/apache2/sites-available/000-default.conf to:
<VirtualHost *:5000>
ServerName localhost
DocumentRoot /home/sukmb465
WSGIScriptAlias / /home/sukmb465/Documents/pheweb38/generated-by-pheweb/wsgi.py
WSGIDaemonProcess pheweb user=sukmb465 group=sukmb465 processes=1 threads=1
WSGIProcessGroup pheweb
<Directory />
Require all granted
</Directory>
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/pheweb_error.log
CustomLog ${APACHE_LOG_DIR}/pheweb_access.log combined
1.
make apache2 listen to port 5000 by adding in /etc/apache2/ports.conf:
Listen 5000
2.
sudo systemctl restart apache2
3.
looking into localhost:5000 -> Phenotypes -> clicking on any 'Nearest
Gene(s)' produces a Error 404.
[image: image]
<https://user-images.githubusercontent.com/71607460/112121017-0d1dc000-8bbf-11eb-8938-b7616e074b49.png>
4.
LDs dont work at all
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#162>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSPCLTGMIEGSW4HS3VJA3TFBKXBANCNFSM4ZUX76MQ>
.
|
I forgot to mention, this is on Ubuntu 20.10.
|
Oh, I see. Python in your You've got two options: Option 1: Instead of using wsgi, just run Option 2: Add these lines to your
I'd like to know if those lines work to fix your bug (so I can update https://github.com/statgen/pheweb/blob/master/pheweb/load/wsgi.py), but I recommend using |
Thank you for your help! Option 2 works, fixing both issues I had! Though a new Issue came up: The search does not find any matches except for phenotypes. Any queries will be answered with 500 Internal Server Error. My webserver-machine gives following log with:
Option1 was my bandaid-approach in the meanwhile, though the search box did not work completely, so you always had to wait for the autocompletion to be done to select the correct gene/SNP, if not and you hit impatiently enter after your search input, the clients browser starts to look at your clients localhost:5000, with, of course, no answer to be expected. |
I just released version 1.3.12 which fixes the sqlite3 threading issue (I think– I haven't tested it threaded) and uses relative URLs for the 302 redirects (so that you won't get I'm looking into why the autocomplete is so slow. |
Thanks for all the detailed descriptions. You've been really helpful, and it's great to have these issues solved. |
Autocomplete is fast in version 1.3.13. Thanks for getting me to finally fix that. 👍 You can re-open this issue if it's not actually fixed, but I'm closing it for now. |
Disclaimer: This is my first bug report and webserver.
Steps to reproduce:
pheweb v. 1.3.9
config.py:
hg_build_number=38
num_procs=4
I prepared a locally running pheweb browser. All features work fine with pheweb serve --port 5000. Shut it down afterwards.
Creating a wsgi token via pheweb wsgi
Install apache2 and libapache2-mod-wsgi-py3 via apt install; sudo a2enmod wsgi
Modify /etc/apache2/sites-available/000-default.conf to:
<VirtualHost *:5000>
ServerName localhost
DocumentRoot /home/sukmb465
make apache2 listen to port 5000 by adding in /etc/apache2/ports.conf:
Listen 5000
sudo systemctl restart apache2
looking into localhost:5000 -> Phenotypes -> clicking on any 'Nearest Gene(s)' produces a Error 404.
LDs dont work at all
Thanks!
The text was updated successfully, but these errors were encountered: