OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

OEO does not load in protege (HTTP 500) #1691

Open MGlauer opened 4 weeks ago

MGlauer commented 4 weeks ago

Description of the issue

Using the OEP IRI of the OEO yields a HTTP 500 response (Server error).

Steps to Reproduce

  1. Open Protege
  2. File -> Open From URL
  3. Enter "https://openenergyplatform.org/ontology/oeo/"
  4. Click "Ok"

Context and Environment

Workflow checklist

jh-RLI commented 4 weeks ago

What is the main file that is expected here? I assume the full-oeo.owl from the oeo release? Or are all the files from the release are required (it's been a while since I used Protege ... but will use it again soon). @l-emele @adelmemariani

l-emele commented 4 weeks ago

I don't get a HTTP 500 error, but a 503 error when trying to open https://openenergyplatform.org/ontology/oeo/ in Protégé.

I also get a 503 error when trying to open https://openenergyplatform.org/ontology/oeo/releases/oeo-full.owl

And I also get a 503 error, when opening https://openenergyplatform.org/ontology/oeo/ in the browser.

Related to: https://github.com/OpenEnergyPlatform/ontology/issues/1847

jh-RLI commented 4 weeks ago

And I also get a 503 error, when opening https://openenergyplatform.org/ontology/oeo/ in the browser.

It seems like the OEP stopped working a few minutes ago! Looking into it.

han-f commented 4 weeks ago

just posted this from another viewpoint: #1692

jh-RLI commented 4 weeks ago

At the moment the Oep is down ... I'm waiting for someone with more permissions to restart the server.

There is an unexpected error.

wingechr commented 4 weeks ago

This is my fault. I am currently running some database intensive tasks in preparation for the migration. I had hoped to finish it over the weekend but hopefully will do so tonight. The platform is running again but might be a bit slow today. Sorry for the inconvenience

jh-RLI commented 4 weeks ago

@MGlauer Is it working again? At first I thought the problem was related to https://openenergyplatform.org/ontology/oeo/ not providing the files. Now I'm not sure if it's just because the oep was down yesterday.

The oeo-full.owl is currently returned via this URL: https://openenergyplatform.org/ontology/oeo/releases/oeo-full.owl

We're planning to rework the oeo pages a bit more before the end of SIROP, so I'm open to a few new feature requests or ideas for restructuring what we currently have. In particular, the URLs that provide the files should follow a common pattern and currently I don't have a good overview of how others are doing this.

l-emele commented 4 weeks ago

I can confirm that the original problem still exists. Instead of the 503 error, I now get a 500 error when trying to open OEO in Protégé via the URL.

Server returned HTTP response code: 500 for URL: https://openenergyplatform.org/ontology/oeo/

wingechr commented 4 weeks ago

Then it has nothing to do with my backup job. The error logs on the oep show something like:

ValueError: The view ontology.views.OntologyOverview didn't return an HttpResponse object. It returned None instead.
jh-RLI commented 4 weeks ago

Yes, the views for the overview page are still a bit of a mess. I've started to restructure them and possibly remove the code that returns the files. Now I understand why the page was returning it like this (It shouldn't return an http 500, but rather a 415 the way it is implemented ATM).

In the future /ontology/oeo/ will only return the file and no more html content as the html content will be added to /ontology/ instead of /ontology/oeo/. Nevertheless, there is a lot of code that provides the same functionality, e.g. /ontology/oeo/releases/oeo-full.owl also provides the owl file.