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

VS Deploy should clean up OTA folders and files #821

Open
doingnz opened this issue Feb 3, 2025 · 0 comments
Open

VS Deploy should clean up OTA folders and files #821

doingnz opened this issue Feb 3, 2025 · 0 comments

Comments

@doingnz
Copy link

doingnz commented Feb 3, 2025

Describe the solution you'd like
VS Deploy should clean up folders and files left over from previous OTA firmware updates. Currently the Deploy process in VS is trying to do the correct thing (see log below), but it appears it may not have the permission on the Meadow to erase some files and folders and therefore the delete fails.

Describe alternatives you've considered
Manually list files and erase them individually with meadow file list
Erase the Meadow device and re-deploy the latest firmware to "reset" to "factory state".

Additional context
Currently when doing deploy from Visual Studio, it gets a list of ALL files on the Meadow and attempts to clean-up by deleting files not part of the deploy but on the Meadow, and delete files that are different and will be replaced in the deploy. Some delete fail.

1>Connecting to Meadow on COM3
1>Deleting system/os_data.bin
1>Path name 'system/os_data.bin' is invalid
1>Deleting  c535a1e4cd5a46f980695ea8ac3f129c/ info.json
1>Error during download or delete command processing
1>Path name ' c535a1e4cd5a46f980695ea8ac3f129c/ info.json' is invalid
1>Deleting  c535a1e4cd5a46f980695ea8ac3f129c/ c535a1e4cd5a46f980695ea8ac3f129c.zip
1>Error during download or delete command processing
1>Path name ' c535a1e4cd5a46f980695ea8ac3f129c/ c535a1e4cd5a46f980695ea8ac3f129c.zip' is invalid
1>Deleting  e2681b75e2c64bd3935950898f9be11f/ info.json
1>Error during download or delete command processing
1>Path name ' e2681b75e2c64bd3935950898f9be11f/ info.json' is invalid
1>Deleting  e2681b75e2c64bd3935950898f9be11f/ e2681b75e2c64bd3935950898f9be11f.zip
1>Path name ' e2681b75e2c64bd3935950898f9be11f/ e2681b75e2c64bd3935950898f9be11f.zip' is invalid
1>Deleting  e8086e7bcec74d8c95205cdc058ccc56/ info.json
1>Path name ' e8086e7bcec74d8c95205cdc058ccc56/ info.json' is invalid
1>Deleting  e8086e7bcec74d8c95205cdc058ccc56/ e8086e7bcec74d8c95205cdc058ccc56.zip
1>Error during download or delete command processing
1>Path name ' e8086e7bcec74d8c95205cdc058ccc56/ e8086e7bcec74d8c95205cdc058ccc56.zip' is invalid
1>Deleting  5b1aa0c0540845698bfc29044d63db02/ info.json
1>Error during download or delete command processing
1>Path name ' 5b1aa0c0540845698bfc29044d63db02/ info.json' is invalid
1>Deleting  5b1aa0c0540845698bfc29044d63db02/ 5b1aa0c0540845698bfc29044d63db02.zip
1>Error during download or delete command processing
1>Path name ' 5b1aa0c0540845698bfc29044d63db02/ 5b1aa0c0540845698bfc29044d63db02.zip' is invalid
1>Deleting  8e5c1f41b4a2407589770c8708e77cee/ info.json

1>Path name 'rollback/Microsoft.Extensions.FileProviders.Physical.dll' is invalid
1>Deleting rollback/Microsoft.Extensions.FileSystemGlobbing.dll
1>Error during download or delete command processing
1>Path name 'rollback/Microsoft.Extensions.FileSystemGlobbing.dll' is invalid
1>Deleting rollback/Microsoft.Extensions.Primitives.dll
1>Error during download or delete command processing
1>Path name 'rollback/Microsoft.Extensions.Primitives.dll' is invalid
1>Deleting rollback/Mono.Security.dll
1>Path name 'rollback/Mono.Security.dll' is invalid
1>Deleting rollback/mscorlib.dll
1>Path name 'rollback/mscorlib.dll' is invalid
1>Deleting rollback/NetEscapades.Configuration.Yaml.dll
1>Path name 'rollback/NetEscapades.Configuration.Yaml.dll' is invalid
1>Deleting rollback/netstandard.dll
1>Path name 'rollback/netstandard.dll' is invalid
1>Deleting rollback/System.Configuration.dll
1>Error during download or delete command processing...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants