-
Notifications
You must be signed in to change notification settings - Fork 91
Fail to test Apache deployment with demo dataset #1563
Comments
Hi @Welliton309 The problem here is the download_example_data script generates relative paths, while when you're running in apache the relative path you're running from is not your source folder. One thing you can do is edit the registry to have the absolute path for those variant sets. Another option would be to edit Best option would be to regenerate the registry using the repo CLI. I think we ought to enforce that absolute paths are always used in the registry, but the example data is a special case where we want it to be portable. Maybe there is a better way to handle both cases? #1442 |
Thank you @david4096 for the response. In production environment I always use absolute path to create the repository. However, it would be useful if we have a example data to test server deployment configurations before exposing real data. I think the idea of packing example data would be a good solution. |
I am testing the new release of the server (0.3.6) and the error related to example data was changed. Now it says that the ga4gh_repo verify ga4gh-example-data/registry.db
I guess this file is outdated. Is there a new version of example data to test? |
Yes, we'll need to update the example data! |
This issue will close when we've solved how to demonstrate properly with example data when running behind Apache and documenting it. The problem is that the Apache process needs to get the same base path as the code. I think that if you change the WSGIDaemonProcess home path it might work:
From https://code.google.com/archive/p/modwsgi/wikis/ConfigurationDirectives.wiki#WSGIPythonPath
An alternative might be to switch to gunicorn #1607, which will allow the documentation to be simpler. |
I am trying to deploy and test GA4GH server at a fresh installation of Ubuntu 16.04. I did everything in Deployment on Apache documentation. When I tried to search for variants,
I got this error:
The server-side log (
/var/log/apache2/error.log
):It seems that server cannot find VCF file defined as relative path. Did I do something wrong?
The text was updated successfully, but these errors were encountered: