Details
-
Type:
Bug
-
Status: Done (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: plugin-site
-
Labels:None
-
Similar Issues:
Description
I am currently testing plugins.jenkins deployment on infra.
But I recently got systematically 500 errors each time I do another request than <api>/info.
I am using docker image: jenkinsciinfra/plugin-site:47-df13c8
with following informations
REST_API_URL=<set to an api url other than localhost>
DATA_FILE_URL= "https://ci.jenkins.io/job/Infra/job/plugin-site-api/job/generate-data/lastSuccessfulBuild/artifact/plugins.json.gzip"
Logs output -> https://gist.github.com/olblak/9a452e0a24fe1875e4dc57345186a2fd
Line 61 is the flag here. The API is unable to ingest the file from DATA_FILE_URL because that image has a different version of the plugins.json. This is part of the checks in link ElasticsearchPrepareDatastoreService. The intention is to protected the running API from attempting to ingest files it cannot. Almost exclusively this will be because the mappings have changed.
The real fix for this is to either