Comments (3)
The information in this file is only used when displaying the cache to a user and advising when an entry in the cache was last used. There is a tool that does this, but not all tools set the usage date, so it's not reliable.
We should surround this code with a try..catch and ignore any errors from it; they simply don't matter.
from org.hl7.fhir.core.
Update: there is one other error we've seen multiple times, looks like it's related to one thread trying to read a file while another is trying to delete it. I haven't had time to try to replicate this yet but this is the log snippet.
Installing fhir.dicom#2022.4.202210062024-06-07 17:50:20.380 [ktor-jetty-3500-2] ERROR ktor.application - 1 exception(s): [org.apache.commons.io.IOIndexedException: IOException #0: Cannot delete file: /home/ktor/.fhir/packages/44eb56b7-82f4-4808-b3d8-6df033b81f72/package]
done.
Clean up package /home/ktor/.fhir/packages/fhir.dicom#2022.4.20221006 because installation failed: File /home/ktor/.fhir/packages/fhir.dicom#2022.4.20221006/package/package.json not found
java.io.IOException: File /home/ktor/.fhir/packages/fhir.dicom#2022.4.20221006/package/package.json not found
2024-06-07 17:50:20.383 [ktor-jetty-3500-3] INFO ktor.application - 500 Internal Server Error: POST - /validate
at org.hl7.fhir.utilities.TextFile.fileToString(TextFile.java:117)
at org.hl7.fhir.utilities.npm.NpmPackage.loadFiles(NpmPackage.java:401)
at org.hl7.fhir.utilities.npm.NpmPackage.fromFolder(NpmPackage.java:360)
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.loadPackageInfo(FilesystemPackageCacheManager.java:265)
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.lambda$addPackageToCache$2(FilesystemPackageCacheManager.java:546)
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheLock.doWriteWithLock(FilesystemPackageCacheLock.java:37)
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.addPackageToCache(FilesystemPackageCacheManager.java:508)
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.loadPackage(FilesystemPackageCacheManager.java:651)
at org.hl7.fhir.validation.IgLoader.loadIg(IgLoader.java:107)
at org.hl7.fhir.validation.IgLoader.loadIg(IgLoader.java:120)
at org.hl7.fhir.validation.cli.services.ValidationService.loadIgsAndExtensions(ValidationService.java:553)
at org.hl7.fhir.validation.cli.services.ValidationService.buildValidationEngine(ValidationService.java:494)
at org.hl7.fhir.validation.cli.services.ValidationService.initializeValidator(ValidationService.java:475)
at org.hl7.fhir.validation.cli.services.ValidationService.validateSources(ValidationService.java:95)
at controller.validation.ValidationControllerImpl.validateRequest(ValidationControllerImpl.kt:18)
at controller.validation.ValidationModuleKt$validationModule$1.invokeSuspend(ValidationModule.kt:43)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2024-06-07 17:50:20.393 [ktor-jetty-3500-4] ERROR ktor.application - File /home/ktor/.fhir/packages/fhir.dicom#2022.4.20221006/package/package.json not found
2024-06-07 17:50:20.394 [ktor-jetty-3500-1] INFO ktor.application - Received Validation Request. FHIR Version: 4.0.1 IGs: [hl7.fhir.us.core#5.0.1] Memory (free/max): 4921594968/8283750400
No such cached session exists for session id 008b523b-bb4c-44ae-8a0e-44ac1bcd5599, re-instantiating validator.
Load FHIR v4.0.1 from hl7.fhir.r4.core#4.0.12024-06-07 17:50:20.395 [ktor-jetty-3500-4] INFO ktor.application - 500 Internal Server Error: POST - /validate
from org.hl7.fhir.core.
Yes this is. big concurrency issue. scheduled to look at next week
from org.hl7.fhir.core.
Related Issues (20)
- Validator based on a directory does not check local file in profile based slices HOT 1
- Errors splitting canonical in URL and version HOT 11
- Request CDA namespace prefix be added to support Australian CDA transformations
- SNOWMED - oops
- Error element [path] launches straight into slicing without the slicing being set up properly first
- Error Index -1 out of bounds for length 0 in derived profiles where base profile has sliced value[x] element on type
- Cannot resolve plugin org.sonatype.plugins:nexus-staging-maven-plugin:<unknown>
- Support for fhirpath evaluation
- FHIRPath expression with date math
- Mime type checking can't handle dash character
- Boundary functions return incorrect results HOT 2
- Reopen https://github.com/hapifhir/org.hl7.fhir.core/issues/1524 HOT 2
- Validator circular dependency issue
- The `div` field is missing in `Narrative.listChildren` for some versions. HOT 4
- "-no-extensible-binding-warnings" not working properly HOT 1
- Anchors broken in validator html report
- Validator CLI - Loading of profiles via canonical URL doesn't take into account path params HOT 1
- Validator CLI - Loading of profiles via local file doesn't appear to work HOT 1
- Class too large: org/hl7/fhir/r4/formats/JsonParser HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org.hl7.fhir.core.