lunger Posted March 12, 2021 Share Posted March 12, 2021 I've had this error more than once when upgrading. It doesn't happen every time, but frequently. Error message: The following error occurred during preparing for an upgrade - The directory is not empty. - Method = DeleteFilesInFolder Does this mean there are old files left in place that should be deleted manually? I'm also (mildly) concerned that there could be malicious files in place that remain after the upgrade. UpgradeLog: 3/12/2021 10:26:18 AM - Passwordstate upgrade started. 3/12/2021 11:08:42 AM - Passwordstate upgrade started. 3/12/2021 11:08:48 AM - Stopping of the Passwordstate Windows Service started. 3/12/2021 11:08:49 AM - Stopping of the Passwordstate Windows Service completed. 3/12/2021 11:08:49 AM - Compressing and backing up of web files started. 3/12/2021 11:09:47 AM - Compressing and backing up of web files completed. 3/12/2021 11:09:47 AM - Backing up of database started. 3/12/2021 11:09:48 AM - Backing up of database completed. 3/12/2021 11:09:48 AM - Removing old backups started. 3/12/2021 11:09:48 AM - Removing old backups completed. 3/12/2021 11:09:48 AM - Downloading of file passwordstate_upgrade.zip started. 3/12/2021 11:11:36 AM - Downloading of file passwordstate_upgrade.zip completed. 3/12/2021 11:11:36 AM - Extracting of files in file passwordstate_upgrade.zip started. 3/12/2021 11:12:11 AM - Extracting of files in file passwordstate_upgrade.zip completed. 3/12/2021 11:12:11 AM - Copying of new files started. 3/12/2021 11:13:08 AM - Finished copying of new files. 3/12/2021 11:13:08 AM - Starting of the Passwordstate Windows Service started. 3/12/2021 11:13:12 AM - Starting of the Passwordstate Windows Service completed. 3/12/2021 11:13:12 AM - Finished starting the Passwordstate Windows Service. 3/12/2021 11:13:12 AM - Finished deleting the Passwordstate_Upgrade.zip file. 3/12/2021 11:14:13 AM - The following error occurred during preparing for an upgrade - The directory is not empty. - Method = DeleteFilesInFolder 3/12/2021 11:14:13 AM - Finished deleting all temp files in the folder /upgrades/passwordstate. 3/12/2021 11:17:57 AM - Build 8995 Upgrade Started. 3/12/2021 11:17:57 AM - Build 8995 completed successfully. Link to comment Share on other sites More sharing options...
support Posted March 13, 2021 Share Posted March 13, 2021 Hi Lunger, Thanks for reporting it, and we'll do some testing to see if we can replicate the issue - and then fix it. Regards Click Studios Link to comment Share on other sites More sharing options...
support Posted March 16, 2021 Share Posted March 16, 2021 Hello Lunger, We've investigated this, and cannot reproduce it unfortunately. Can you please have a look in the folder C:\inetpub\Passwordstate\upgrades\passwordstate and see if there are any files in there left around? Possibly there is a permission issues deleting some files. Also check for hidden files in Windows as well, just to be sure. Regards Click Studios Link to comment Share on other sites More sharing options...
lunger Posted March 16, 2021 Author Share Posted March 16, 2021 There are lots of subfolders with files in the C:\inetpub\Passwordstate\upgrades\passwordstate folder. Should this folder be completely empty? Directory of C:\inetpub\Passwordstate\upgrades\passwordstate 03/12/2021 12:14 PM <DIR> . 03/12/2021 12:14 PM <DIR> .. 03/12/2021 12:14 PM <DIR> mobile 03/12/2021 12:12 PM <DIR> navigation 03/12/2021 12:12 PM <DIR> passwords 03/12/2021 12:12 PM <DIR> preferences 03/12/2021 12:12 PM <DIR> remotesessionlauncher 03/12/2021 12:12 PM <DIR> reports 03/12/2021 12:12 PM <DIR> securid 03/12/2021 12:12 PM <DIR> selfdestruct 03/12/2021 12:12 PM <DIR> selfdestructcreate 03/12/2021 12:12 PM <DIR> setup 03/12/2021 12:12 PM <DIR> upgrades 03/12/2021 12:12 PM <DIR> upload 03/12/2021 12:12 PM <DIR> WinAPI In total, there are 747 Files, 78 Folders, 52.3MB. Link to comment Share on other sites More sharing options...
support Posted March 16, 2021 Share Posted March 16, 2021 Yes, this should be deleted after every upgrade. Please manually delete them all, and then check your entire Passwordstate folder has Modify NTFS Permissions for the NETWORK SERVICE Account. This is the default account used on the Application Pools in IIS, so if you have changed this account to instead use a gMSA Account, please make sure there is permissions for that account. Regards Click Studios Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now