Closed m-mohr closed 4 years ago
Sounds like something major is wrong in the database. ~Can you run the drop script on the server and then crawl again and report whether the problem persists?~
I tracked down the error: The collection "COPERNICUS/S2_SR" is listed twice in http://earthengine.openeo.org/v1.0/collections (index 19 and again 49).
After the actual crawling, the data is processed (the crawl script logs "Processing data..."). Among other things, the collections and processes are extracted from the raw data and saved into dedicated database tables*. But these tables have a unique key on service + api_version + ID
... So inserting the result of the extraction pipeline into the collection table fails.
-> autocomplete list for collections is empty (because it is derived from this table)
The initial preview of collections is derived from the backends
table, but when expanding, the dedicated collections
table is used
-> weird behaviour happens (because the former is filled but the latter is empty).
In the post-crawl processing, the processes are handled after the collections, so their pipeline didn't get to run because the collections already failed earlier. -> autocomplete list for processes is empty
I don't understand why the search doesn't work though.
Looks like I have to make this processing more robust...
* Note: The Hub uses a MongoDB, so technically it's not a "table" but a "collection", but I find this terminology confusing when also talking about openEO collections in the same context.
I now included additional pipeline stages into the DB queries which ensure that collection and process IDs are unique.
@m-mohr In principal you could deploy the current state of the dev branch, I'm just not yet saying "DO IT!" because of my confusion regarding the vue-components dependency.
Alternatively cherry-pick the above commit for a hotfix?
Deployed, seems to work fine.
There's also an issue with the Functionalities Chooser: see #77
Today, I had to search for all back-ends implementing sum, count, divide, neq and if and encountered some issues on the Hub: