department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 203 forks source link

400 Error in F1 submission: no such file or directory @ rb_sysopen solution #95561

Open cloudmagic80 opened 1 week ago

cloudmagic80 commented 1 week ago

During the deployment of F1, around 3% of the time, we get this error "no such file or directory @ rb_sysopen" which is a 400 error. This error is caused by missing files stored under the vets-api tmp folder. To resolve this problem, we will recreate the user's pdf and json submission if the files are missing so that the S3 bucket can pick up the files. The resubmitted pdf and json will have same user's attributes except the UUID.

Acceptance criteria:

Implementation details

pshahVA commented 1 week ago

Hey, I usually don't comment on engineering details, but since @acrollet is out and as part of my silent failure work, I wanted to know if this retry would still be done while the UX is waiting for a response.

cloudmagic80 commented 1 week ago

@pshahVA The applicant will see a completed application message if the retry is successful. If the retry doesn't work, then they will see an unsuccessful message. The retry only happens once and no further retries occur, regardless of the outcome of the second attempt.

baltes commented 1 week ago

@cloudmagic80 Thanks for pursuing this but it still needs discussion around the AC and shouldn't be in progress until that's happened,

baltes commented 1 week ago

Moving this to the backlog for more refinement. Let's hit pause on fixes until we can articulate the approach and define our outcomes.

pshahVA commented 1 week ago

Thank you for the clarification @cloudmagic80

cloudmagic80 commented 1 week ago

@baltes @andrea-merrill @pshahVA I've updated the implementation details in the ticket description. Thanks

cloudmagic80 commented 3 days ago

https://github.com/department-of-veterans-affairs/vets-api/pull/19006/files