iModelBridges folder is not cleaned-up after update

Hi,

iTwinSychronizer 1.0.112 installed.

The problem is that it seems iModelBridges folder (C:\Users\<used>\AppData\Local\imodelbridges\) is not cleaned after a bridge updates, so just a few days after installation, the folder is 14 GB big for only 2 (MStn and Civil) bridges installed. There is a lot of trash inside the folder:

  • Different versions of .IModelBridgeForMstn-a.b.c.d
  • Folder .staging is full of zip files

Is it now some standard in Bentley that downloaded, temporary and not used files are not removed? E.g. CONNECTION client does the same (and it's the reason it's completely the garbage when treated as software automatic upgrade tool).

With regards,

  Jan

Parents
  • Each time you run a synchronization (e.g. click 'Synchronize'), it should clean up the imodelbridges directory (up to once per hour). I just saw this happen when I ran a job locally, but I'll also ask our QA team to try to reproduce. The cleanup will delete the entire .staging directory, and any old bridge versions still sitting in the imodelbridges directory. If you peek at the logs (%LOCALAPPDATA%Bentley\Logs\iTwinSynchronizer.log), you should see entries for iTwinSynchronizer.BridgeMaintenance indicating it's processing.

  • Update of the seen behavior:

    I applied these updates:

    • iTwin Synchronizer 1.0.140 > 1.0.146
    • iModelBridge for MicroStation 2.1.0.292 > 2.1.0.298
    • installation of iModelBridge for Geo 1.0.1.5

    How iTwin Synchronizer versions are updated is discussed in another discussion (now current and one version before are maintained).

    But for iModelBridge for MicroStation, it seems to be pretty inefficient system:

    What Type Size
    .staging\IModelBridgeForMstn-2.1.0.290.zip file 0.81 GB
    .staging\IModelBridgeForMstn-2.1.0.292.zip file 0.81 GB
    .staging\IModelBridgeForMstn-2.1.0.298.zip file 0.81 GB
    .IModelBridgeForMstn-2.1.0.290 folder 1.51 GB
    .IModelBridgeForMstn-2.1.0.292 folder 1.51 GB
    IModelBridgeForMstn folder 1.51 GB

    So for one i-model bridge, 6.96 GB is occupied!

    Why only the current version is not maintained only, and only the installation itself, not downloaded zip files etc?

    Especially when the location cannot be selected, to use so much space on system disk is not acceptable.

    What folder can be removed manually? I guess everything starting with dot (.staging folder + .ImodelBridgeForMstn)?

    With regards,

      Jan

Reply
  • Update of the seen behavior:

    I applied these updates:

    • iTwin Synchronizer 1.0.140 > 1.0.146
    • iModelBridge for MicroStation 2.1.0.292 > 2.1.0.298
    • installation of iModelBridge for Geo 1.0.1.5

    How iTwin Synchronizer versions are updated is discussed in another discussion (now current and one version before are maintained).

    But for iModelBridge for MicroStation, it seems to be pretty inefficient system:

    What Type Size
    .staging\IModelBridgeForMstn-2.1.0.290.zip file 0.81 GB
    .staging\IModelBridgeForMstn-2.1.0.292.zip file 0.81 GB
    .staging\IModelBridgeForMstn-2.1.0.298.zip file 0.81 GB
    .IModelBridgeForMstn-2.1.0.290 folder 1.51 GB
    .IModelBridgeForMstn-2.1.0.292 folder 1.51 GB
    IModelBridgeForMstn folder 1.51 GB

    So for one i-model bridge, 6.96 GB is occupied!

    Why only the current version is not maintained only, and only the installation itself, not downloaded zip files etc?

    Especially when the location cannot be selected, to use so much space on system disk is not acceptable.

    What folder can be removed manually? I guess everything starting with dot (.staging folder + .ImodelBridgeForMstn)?

    With regards,

      Jan

Children
No Data