-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Y24-410 - [BUG] Unable to update/send EGA sample metadata #4432
Comments
I have investigated the errors. The followings are the steps for investigations:
Outcomes from the investigations: The code break at app/models/accession_service.rb inside and redirect back to sample page At this point, some of the variables values are: {"SAMPLE"=>#AccessionService::AccessionedFile:/var/folders/gp/t2pcm07d3tq0yrymvqnj20xm0000gq/T/sample_file20241113-71882-cdpmls, "SUBMISSION"=>#AccessionService::AccessionedFile:/var/folders/gp/t2pcm07d3tq0yrymvqnj20xm0000gq/T/submission_file20241113-71882-q6k2yq} The file /var/folders/gp/t2pcm07d3tq0yrymvqnj20xm0000gq/T/sample_file20241113-71882-cdpmls : <TITLE>2405STDY8433361</TITLE>human9606strainsample_descriptiongenderunknownphenotypeUnknownsubject_id2405STDY8433361geographic_location_(country_and/or_sea)missing: human-identifiablecollection_date2024The file /var/folders/gp/t2pcm07d3tq0yrymvqnj20xm0000gq/T/submission_file20241113-71882-q6k2yq : restclient: @block=nil, response: |
However in UAT, clicking 'https://uat.sequencescape.psd.sanger.ac.uk/samples/6970962' 'Update EBI Sample data', got the response: Could not get accession number. Error in submitted data: ["\n - In sample, accession: "EGAN00004611033". The current submission account EGAB00000000006 does not own the object being updated ERS21332394."]. |
As we are investigating this bug using UAT, and https://wwwdev.ebi.ac.uk/ena/submit/drop-box/submit. There may be difference from the production DB. However, we couldn't use the real examples to test. Regarding the different responses we got back, I found the one 'The current submission account EGAB00000000006 does not own the object being updated ...' is because the sample has been removed from EBI test database, (the test DB update every 24 hours). So we can ignore this response. When the sample is still in EBI test database, and we try to update the sample, the error we got back is 'Could not get accession number. EBI may be down or invalid data submitted: 500 Internal Server Error'. Details of the response looks like the following:
|
The following URL was also used to send the request directly and can see the details of the response. https://wwwdev.ebi.ac.uk/ena/submit/drop-box/swagger-ui/index.html |
Describe the bug
Creating accession identifiers for samples works fine however should a user need to update a sample's metadata when this is sent to the EGA webin submit service and error is displayed and the data is not updated in SS (this only applies to EGA accessioning service NOT the ENA). In summary creation is fine but the update is not working.
To Reproduce
Steps to reproduce the behaviour:
In a Sequencescape console:
On UAT sample page select 'Generate Accession Number'
Next select 'Update EBI Sample data
Expected behaviour
Additional context
The error message "Could not get accession number. EBI may be down or invalid data submitted: 500 Internal Server Error" is also returned when attempting to update sample accession metadata within the application script console
The text was updated successfully, but these errors were encountered: