ipm icon indicating copy to clipboard operation
ipm copied to clipboard

uninstall -f -all uininstalls zpm and encounters an error

Open SCanzano-ready opened this issue 11 months ago • 1 comments

Because of issues we have with module dependencies when we bump versions from say 1.5.0 to 1.6.0 in our registry we find we have to uninstall all of the modules. In the past we used to ro

uninstall -f -all oneOfOurModules

and this would work fine.

Now with the latest ZPM install when we do uninstall -f -all oneOfOurModules

we get the following error

`zpm:HSCUSTOM>uninstall -f -all rclib-rcipm

Uninstalling rclib-system [HSCUSTOM|rclib-system] Clean START [HSCUSTOM|rclib-system] Unconfigure START [HSCUSTOM|rclib-system] Unconfigure SUCCESS WARNING: Skipping mapped resource RC.JSON.Provider.CLS WARNING: Skipping mapped resource RC.SYS.Webserver.CLS Deleting class RC.System.Address Deleting class RC.System.AddressLookup....

Deleting class RC.REST.WebApplication [HSCUSTOM|rclib-system] Clean SUCCESS Uninstalling rclib-unittest [HSCUSTOM|rclib-unittest] Clean START [HSCUSTOM|rclib-unittest] Unconfigure START [HSCUSTOM|rclib-unittest] Unconfigure SUCCESS WARNING: Skipping mapped resource RC.UnitTest.AbstractTestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.DTLTestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.Generator.DTLTest.CLS WARNING: Skipping mapped resource RC.UnitTest.HL7TestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.IPM.CLS WARNING: Skipping mapped resource RC.UnitTest.Manager.CLS WARNING: Skipping mapped resource RC.UnitTest.Report.CLS WARNING: Skipping mapped resource RC.UnitTest.RestAPITestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.StreamTestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.Studio.DTLTestWizard.CLS Deleting class RC.UnitTest.AbstractTestCase.... Deleting class RC.UnitTest.StreamTestCase Deleting class RC.UnitTest.Studio.DTLTestWizard [HSCUSTOM|rclib-unittest] Clean SUCCESS Uninstalling zpm [HSCUSTOM|ZPM] Clean START [HSCUSTOM|ZPM] Unconfigure START [HSCUSTOM|ZPM] Unconfigure SUCCESS [ZPM] Clean FAILURE *Error uninstalling zpm: ERROR #5002: ObjectScript error: <CLASS DOES NOT EXIST>%Clean+141^%IPM.Lifecycle.Base.1 %IPM.StudioDocument.Module Uninstalling rclib-rdm

*<CLASS DOES NOT EXIST>zDisplayError+2^%IPM.Main.1 %IPM.Repo.UniversalSettings HSCUSTOM 6d1>q `

  1. Is there a way to uninstall all of the application modules but not the newly implemented zpm module
  2. Is the uninstalling done in a logical way so it does it in reverse module dependncy order?

SCanzano-ready avatar Jan 07 '25 14:01 SCanzano-ready

There should also be a separate command specifically for uninstall IPM itself as suggested by HSIEO-6864.

isc-shuliu avatar Jan 21 '25 15:01 isc-shuliu

Re: "Because of issues we have with module dependencies when we bump versions from say 1.5.0 to 1.6.0 in our registry" - I spent some time trying to reproduce a similar case as unit test we can fix, but no luck - intermediate results (possibly still useful) are in https://github.com/intersystems/ipm/tree/ready-upgrade-issue

isc-tleavitt avatar Jun 12 '25 18:06 isc-tleavitt

(it shouldn't be necessary to uninstall everything before upgrading.)

isc-tleavitt avatar Jun 12 '25 18:06 isc-tleavitt

This issue will be scoped to just not uninstalling IPM itself when "uninstall -f -all" is called.

For the uninstalling in a smarter order, see issue #584

isc-dchui avatar Aug 26 '25 14:08 isc-dchui