Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to uninstall DB2 from Zowe #6

Open
JTonda opened this issue Oct 9, 2018 · 2 comments
Open

Unable to uninstall DB2 from Zowe #6

JTonda opened this issue Oct 9, 2018 · 2 comments
Labels
bug Something isn't working priority-low severity-low

Comments

@JTonda
Copy link

JTonda commented Oct 9, 2018

From @AHumanFromCA on September 26, 2018 14:20

Opened this issue a while ago, I am transferring it over here since I do not see that it has been resolved yet.


I am unable to uninstall the DB2 plugin through Brightside.

The first uninstall attempt reports back that there is a locked file:

$ bright plugins uninstall @brightside/db2
npm ERR! path C:\Users\XXXXXXXX\.brightside\plugins\installed\node_modules\@brightside\db2\node_modules\ibm_db\installer\clidriver\bin\amd64.VC11.CRT
npm ERR! code EBUSY
npm ERR! errno -4082
npm ERR! syscall rmdir
npm ERR! EBUSY: resource busy or locked, rmdir 'C:\Users\XXXXXXXX\.brightside\plugins\installed\node_modules\@brightside\db2\node_modules\ibm_db\installer\clidriver\bin\amd64.VC11.CRT'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\XXXXXXXX\AppData\Roaming\npm-cache\_logs\2018-07-30T21_24_21_271Z-debug.log
Command Error:
Uninstall Failed
Error Details:
Command failed: npm uninstall "@brightside/db2" --prefix C:\Users\XXXXXXXX\.brightside\plugins\installed -g

Sometimes this will break npm cache and make DB2 uninstallable without a complete reinstall.

My theory is that the lock somehow is gathered by the bright process due to these observations.

  • It is always consistent that the first uninstall attempt fails at the ibm driver
  • Installing DB2 and manually executing the failed command npm uninstall "@brightside/db2" --prefix C:\Users\XXXXXXXX\.brightside\plugins\installed -g will uninstall the plugin's node folders every time.

That 2nd observation is why I believe that it isn't because of antivirus software.

App Version
Brightside 1.0.1
npm 6.0.0
Node 10.6.0
DB2 1.0.0

Copied from original issue: gizafoundation/zowe-cli-db2-plugin#4

@zFernand0 zFernand0 added the bug Something isn't working label Mar 6, 2023
@zFernand0
Copy link
Member

Cannot reproduce the issue with the newer versions of the package

This was referenced May 5, 2023
@t1m0thyj
Copy link
Member

I'm seeing this error again:

$ zowe plugins uninstall @zowe/db2-for-zowe-cli
npm ERR! code EBUSY
npm ERR! syscall rename
npm ERR! path C:\Users\Timothy\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\installer\clidriver\bin
npm ERR! dest C:\Users\Timothy\.zowe\plugins\installed\node_modules\@zowe\.db2-for-zowe-cli-6tqjQbu5\node_modules\ibm_db\installer\clidriver\bin
npm ERR! errno -4082
npm ERR! EBUSY: resource busy or locked, rename 'C:\Users\Timothy\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\installer\clidriver\bin' -> 'C:\Users\Timothy\.zowe\plugins\installed\node_modules\@zowe\.db2-for-zowe-cli-6tqjQbu5\node_modules\ibm_db\installer\clidriver\bin'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Timothy\AppData\Local\npm-cache\_logs\2023-06-16T14_50_20_813Z-debug-0.log
Command Error:
Uninstall Failed
Error Details:
Command failed: C:\Program Files\nodejs\npm.CMD uninstall @zowe/db2-for-zowe-cli --prefix C:\Users\Timothy\.zowe\plugins\installed -g
App Version
Zowe CLI 7.16.2
npm 9.5.1
Node 18.16.0
DB2 plug-in 5.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-low severity-low
Projects
Status: Low Priority
Development

No branches or pull requests

3 participants