-
Notifications
You must be signed in to change notification settings - Fork 91
Internal Server Error with master and release 0.3.6 #1637
Comments
Upon investigation into the apache2 logs, it seems the peer service is failing as the "initial_peers.txt" file is missing:
In the afirth/ga4gh-server docker build, peer service was not found in the frontend.py script. |
The afirth/ga4gh-server is not the latest ga4gh-server docker image. See the docs here for more information: You can add your own initial_peers.txt file (just point it at 1kgemomes.ga4gh.org). You can find some more information about configuration here: Were you specifically interested in using the peer service, or just trying to set up a GA4GH reference server? |
Thanks for the followup. I wasn't interested in the peer service at the moment, only in getting the reference server working. The initial_peers.txt file exists on the server and seems to be in the right location with the inclusion of 1kgenomes.ga4gh.org, however the script throws the error that the file doesn't exist. The build was done on a fresh clone of the master repo. I also built release 0.3.6 to see if there was a rogue check-in that may have caused issues. |
I wonder if there might be a permissions issue on the file or the parent folder. make sure that the parent folder is owned by www-data. Sorry that I don't have time to set it up and debug from right now. |
@rdeborj, The dockers I build for the servers generally just create the dummy file eg https://github.com/ljdursi/profyle_ingest_docker/blob/master/scripts/wrapper.sh#L33 , sorry, I should be putting those in the CanDIG organization |
Doesn't seem to be a permissions issue. Through the docker container, everything is owned and run by root. |
As a follow up, one of our students removed the line (309): |
After some clues from @ljdursi, I hardcoded the fully qualified path to the initial_peers.txt file in the frontend.py file and everything worked. I've been investigating the serverconfig.py and the frontend.py files to determine how the root directory is fetched and why it isn't being used correctly. |
I think to close this properly the initial peers text should be added to the setup.py package data. |
I've downloaded and built the docker image for both the master branch and the latest tagged version 0.3.6. After successfully building the docker images (e.g. docker build -t ga4gh_server_0_3_6 .) and running it (e.g. docker run -d -p 8222:80 --name ga4gh_server_test ga4gh_server_0_3_6), I attempt to load the default page however an "Internal Server Error" appears. The same occurs for the master branch. I have done a pull on the latest version in docker hub (i.e. afirth/ga4gh-server) and this successfully shows the demo landing page. Any suggestions on building the docker image so that it successfully runs?
The text was updated successfully, but these errors were encountered: