Stream: hapi
Topic: Upload Loinc & tomcat9
Patrick Werner (May 26 2020 at 12:00):
While trying to upload LOINC as an exernal CS the following exception is thrown:
May 26 13:53:15 vitu-data tomcat9[2264]: 2020-05-26 13:53:15.006 [http-nio-8080-exec-5] INFO fhirtest.access [LoggingInterceptor.java:175] Path[/fhir] Source[] Operation[metadata ] UA[HAPI-FHIR/5.0.0 (FHIR Client; FHIR 4.0.1/R4; apache)] Params[] ResponseEncoding[JSON]
May 26 13:53:21 vitu-data tomcat9[2264]: 2020-05-26 13:53:15.199 [http-nio-8080-exec-6] INFO c.u.f.j.p.TerminologyUploaderProvider [TerminologyUploaderProvider.java:337] Reading in local file: /tmp/hapi-fhir-cli4151838015365947647.zip
May 26 13:53:21 vitu-data tomcat9[2264]: 2020-05-26 13:53:15.199 [http-nio-8080-exec-6] WARN c.u.f.r.s.i.ExceptionHandlingInterceptor [ExceptionHandlingInterceptor.java:147] Failure during REST processing: ca.uhn.fhir.rest.server.exceptions.InvalidRequestException: Unknown file: hapi-fhir-cli4151838015365947647.zip
May 26 13:53:21 vitu-data tomcat9[2264]: 2020-05-26 13:53:15.199 [http-nio-8080-exec-6] INFO fhirtest.access [LoggingInterceptor.java:160] ERROR - POST http://localhost:8080/fhir/CodeSystem/$upload-external-code-system
Unknown file: hapi-fhir-cli4151838015365947647.zip
points to a zip which should be in tmp, but isn't
Patrick Werner (May 26 2020 at 12:01):
This worked in 4.2.0
Patrick Werner (May 26 2020 at 12:43):
Ok isn't working in tomcat9 with hapi 4.2.0. Probably a Tomcat9/Ubuntu Sandbox issue.
Patrick Werner (May 26 2020 at 12:57):
i now added a watcher on /tmp. The file is there, but removed after failing
Patrick Werner (May 26 2020 at 12:58):
also added:
[Service]
ReadWritePaths=/tmp /opt/hapi/hapi_luceneindex
to /etc/systemd/system/tomcat9.service.d/override.conf
To prevent sandbox issues.
Patrick Werner (May 26 2020 at 12:59):
Did anyone experience similar issues before? (Ubuntu 18.04, Tomcat9)
Patrick Werner (May 26 2020 at 13:00):
tested with hapi 5 and 4.2. Same errors
Patrick Werner (May 26 2020 at 13:09):
Tested with tomcat8: works.
Anyone experienced with tomcat9, sandbox and why ReadWritePaths=/tmp /opt/hapi/hapi_luceneindex
doesn't work?
Jens Villadsen (May 26 2020 at 21:24):
if you can show that it is a problem in alpine in docker, I'll have a look
Patrick Werner (May 27 2020 at 05:58):
will provide an example later this week
Last updated: Apr 12 2022 at 19:14 UTC