statgen / pheweb

A tool to build a website to browse hundreds or thousands of GWAS.
MIT License
158 stars 65 forks source link

Internal Server Error when loading Pheweb pages #118

Closed dquarless10 closed 5 years ago

dquarless10 commented 5 years ago

Hi - I'm receiving an internal server error when trying to serve a pheweb page, but I cannot pin down the reason. Pheweb specifically breaks when trying to load phenotype pages and sometimes random pages.

The error: "Internal Server Error. The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."

I have ~1400 phenoetypes, ~16M markers, the node has ~200GB of memory and isnt under heavy burden. The pheweb process command completed with no errors.

Any idea what could be happenning?

pjvandehaar commented 5 years ago

No, but if you could send me the server-side error message I can probably figure it out.

If you're using wsgi, the errors will be in the apache logs. Otherwise, they will be in the output of pheweb serve. If you're not saving that output, you can log to a file using pheweb serve --accesslog myoutput.txt (and then re-trigger the error).

dquarless10 commented 5 years ago

A solution was found to this issue. For some reason, running two pheweb instances on the same node was causing this problem.

Once we shut down both instances and rebooted them, the problem was resolved and all phewas pages were able to load without an issue.