server forget --all --force can't delete the serve...
# box-products
d
server forget --all --force can't delete the servers.
Copy code
❯ server forget --all --force
Can't delete file [E:\CommandboxHome\server\DA7F43423BCFDE8421F0B9A6A478DB2E-api\adobe-2021.0.3.329779\cf_scripts\cfclient\dnfi\ios\plugins\cordova-plugin-file\www\FileWriter.js]
Did you leave the server running?
servers are stopped.
f
windows probably has a lock on the file that hasn’t been released for some reason, I’d bet a reboot will solve it
b
Yep
There is a tool by sysinternals called processExplorer that will show you what processes have handles on any file or folder on your file system
d
Hey Pete, yeah I rebooted and immediately tried it after startup. I disabled McAfee too.
b
it will tell you why that file is locked
I use it fairly often for this sort of thing
d
thanks i'll try processExplorer
b
Java isn't capable of telling you that because it really doesn't know.
In the app, click the "find" menu if I recall and then select "find handles"
Then you can filter on a file name path
use your windows task manager to cross reference the PID
f
curious what would keep it locked after a reboot, let us know what you find 🔍 who done it
d
macompatsvc.exe
which is a mcafee service.
sorry guys. I thought disabling the extensions in mcafee would be enough.
f
don don daaaaaa 😁 - thanks helpful to know
b
wow, intersting
I wonder what McAfee was doing?
Must have been scanning js files for malicious stuff
f
yeah… must have thought that file was a bad one
Copy code
FileWriter.js
sounds perfectly safe to me
b
lol
d
our mcafee setup has all the bells and whistles. I'm in the habit of disabling extensions then doing my work. the policy will reenable everything after an hour. yesterday and today I had to disable it twice because 1 hour time ran out. and maybe I was doing the forget command while at the same the extensions were being disabled, and somehow that srv didn't shutdown completely.
idk