Stream: IG creation
Topic: IG Publisher Crash
Sarah Gaunt (Nov 30 2020 at 10:47):
I'm getting the following crash (http://build.fhir.org/ig/HL7/case-reporting/branches/master/failure/build.log):
2020-11-30 10:19:11.920 [main] INFO o.h.f.u.npm.BasePackageCacheManager [BasePackageCacheManager.java:79] Failed to resolve package hl7.fhir.r4.core#4.0.0 from server: http://packages.fhir.org
2020-11-30 10:19:12.068 [main] INFO o.h.f.u.npm.BasePackageCacheManager [BasePackageCacheManager.java:79] Failed to resolve package hl7.fhir.r4.core#4.0.0 from server: http://packages2.fhir.org/packages
Publishing Content Failed: Unable to resolve package id hl7.fhir.r4.core#4.0.0 (00:21.0626)
(00:21.0626)
Use -? to get command line help (00:21.0626)
(00:21.0626)
Stack Dump (for debugging): (00:21.0626)
org.hl7.fhir.exceptions.FHIRException: Unable to resolve package id hl7.fhir.r4.core#4.0.0
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.fetchTheOldWay(FilesystemPackageCacheManager.java:688)
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.loadFromPackageServer(FilesystemPackageCacheManager.java:225)
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.loadPackage(FilesystemPackageCacheManager.java:498)
at org.hl7.fhir.utilities.npm.BasePackageCacheManager.loadPackage(BasePackageCacheManager.java:166)
at org.hl7.fhir.igtools.publisher.Publisher.loadFromPackage(Publisher.java:2827)
at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:2784)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1893)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1450)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:722)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8397)
I can't see any other IGs failing like this. But I can't find any references to 4.0.0 in my code.
If I run using 1.1.42 it doesn't crash. (Didn't try 1.1.43 as it sounded like there were problems with it).
BUT, it does come up with this message FHIR Version mismatch in package hl7.fhir.us.odh#1.0.0: version is 4.0.0 but must be 4.0.1 (path: hl7.fhir.us.ecr#1.0.0)
. But I look at the ODH (http://hl7.org/fhir/us/odh/) I'm pointing to and it says: " Package hl7.fhir.us.odh#1.0.0 based on FHIR 4.0.1".
Sarah Gaunt (Nov 30 2020 at 12:16):
Digging some, I'm thinking it might have something to do with this: https://simplifier.net/packages/hl7.fhir.us.odh/1.0.0/files/113234
"dependencies": {
"hl7.fhir.r4.core": "4.0.0",
And could be a similar issue to this: https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/Broken.20Package.20Dependency.20in.20PDEX.20Package
Sarah Gaunt (Nov 30 2020 at 19:01):
Is the certificate issue why this is crashing or is it something else? I am a bit stuck here.
Lloyd McKenzie (Nov 30 2020 at 19:04):
The 4.0.0 is likely a problem regardless. What fhirVersion is referenced in your ImplementationGuide instance? It should be 4.0.1.
Sarah Gaunt (Nov 30 2020 at 19:16):
There isn't a single instance of 4.0.0 in the IG. The only related 4.0.0 I can find is linked above in the ODH package on which the eCR IG is dependent.
Sarah Gaunt (Nov 30 2020 at 20:56):
So @Lloyd McKenzie when I remove the dependency to ODH, I don't get that crash any more. (I do get a crash - I presume because of the certificate issue - but it passes where it made it to before: http://build.fhir.org/ig/HL7/case-reporting/branches/master/failure/build.log)
And of course, if I could get it to run to completion, I will now have multiple errors on the ODH profiles because I removed the dependency to ODH...
So a bit of a catch-22. Any suggestions?
(This was working a few days ago, something must have changed.)
Lloyd McKenzie (Nov 30 2020 at 21:21):
I'm afraid this is @Grahame Grieve territory :(
Sarah Gaunt (Nov 30 2020 at 21:21):
Here are the dependencies (and I see that I should probably point to US Core 3.1.1 in the Common Profiles Library), but it's the boxed version that I think is causing the problem:
image.png
Grahame Grieve (Dec 01 2020 at 00:31):
so the case-reporting IG runs fine for me from the master branch?
Sarah Gaunt (Dec 01 2020 at 00:33):
Maybe because I have commented out the dependency on ODH... Are there tons of errors around the ODH profiles?
Sarah Gaunt (Dec 01 2020 at 00:33):
It crashes if the dependency exists. (On the CI build and ToF anyway).
Sarah Gaunt (Dec 01 2020 at 00:34):
Add this back in and try it:
<dependsOn>
<uri value="http://hl7.org/fhir/us/odh/ImplementationGuide/hl7.fhir.us.odh"/>
<packageId value="hl7.fhir.us.odh"/>
<version value="1.0.0"/>
</dependsOn>
Sarah Gaunt (Dec 01 2020 at 00:35):
I feel like this package: http://packages2.fhir.org/packages/hl7.fhir.us.odh/1.0.0 just needs updating to 4.0.1 (rather than 4.0.0).
Grahame Grieve (Dec 01 2020 at 00:37):
we can't update packages.
Sarah Gaunt (Dec 01 2020 at 00:37):
It used to work. Like 3 days ago.
Grahame Grieve (Dec 01 2020 at 00:38):
I have no idea what changed
Grahame Grieve (Dec 01 2020 at 00:39):
it'll start working from the next release
Grahame Grieve (Dec 01 2020 at 00:39):
hopefully this afternoon sometime
Sarah Gaunt (Dec 01 2020 at 00:41):
Ok thanks. Will keep the dependency out for now and try to ignore the billion errors! :smile:
Sarah Gaunt (Dec 01 2020 at 20:47):
Does the latest IG publisher release fix this issue also @Grahame Grieve ?
Grahame Grieve (Dec 01 2020 at 21:52):
yes
Last updated: Apr 12 2022 at 19:14 UTC