Error: Version backup failed (file saved with @)
For those brave souls that sync the .blend/ifc files, do you often get the following error?
And have you noticed, if you try and save again, it usually works without an error.
os: Windows
os_version: 10.0.19045
python_version: 3.11.7
architecture: ('64bit', 'WindowsPE')
machine: AMD64
processor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
blender_version: 4.1.1
blenderbim_version: 0.0.240511
last_actions:
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 278225, "Name": "Wall"}], "relating_structure": {"cast_type": "entity_instance", "value": 1661272, "Name": "Library"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 774760, "Name": "Wall"}], "relating_structure": {"cast_type": "entity_instance", "value": 1661272, "Name": "Library"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 280057, "Name": "Wall"}], "relating_structure": {"cast_type": "entity_instance", "value": 1661272, "Name": "Library"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 1397997, "Name": "Wall"}], "relating_structure": {"cast_type": "entity_instance", "value": 1661272, "Name": "Library"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 3217755, "Name": "Wall"}], "relating_structure": {"cast_type": "entity_instance", "value": 1661272, "Name": "Library"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 3126989, "Name": "Walls 126:Walls 126:1518668"}], "relating_structure": {"cast_type": "entity_instance", "value": 1658805, "Name": "Details"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 3126981, "Name": "Walls 127:Walls 126:1519197"}], "relating_structure": {"cast_type": "entity_instance", "value": 1658805, "Name": "Details"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 3241743, "Name": "Window"}], "relating_structure": {"cast_type": "entity_instance", "value": 1661272, "Name": "Library"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 3217793, "Name": "Window"}], "relating_structure": {"cast_type": "entity_instance", "value": 1661272, "Name": "Library"}}
# ifcopenshell.api: spatial.assign_container
>>> {"products": [{"cast_type": "entity_instance", "value": 3219622, "Name": "Window"}], "relating_structure": {"cast_type": "entity_instance", "value": 1661272, "Name": "Library"}}
last_error: Traceback (most recent call last):
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blenderbim\bim\ifc.py", line 360, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blenderbim\bim\module\project\operator.py", line 1218, in _execute
bpy.ops.wm.save_mainfile("INVOKE_DEFAULT")
File "c:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\bpy\ops.py", line 107, in __call__
ret = _op_call(self.idname_py(), kw, C_exec, C_undo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Unable to make version backup
Error: Version backup failed (file saved with @)
ifc: 2917_International_Ln.ifc
schema: IFC4
preprocessor_version: IfcOpenShell v0.7.0-f7c03db75
originating_system: BlenderBIM 0.0.240511-6247fb3
Comments
Never met this error. It seems it occurs only if you use google drive or some other cloud when cloud is locking up the folder for sync and interrupts the saving process - https://blender.stackexchange.com/questions/55773/unable-to-create-version-backup
In Blender code it looks like this, so it occurs at the end of the saving process when it's renaming .blendx files (if you check folder after this error there must be something unusual about the currently saved files naming). It also happened to be at end of the saving IFC+blend process, so this error might look scary but doesn't break anything (in terms of saved IFC data and other things that happen at export).

Sounds like we can handle it in the project saving operator - we can wait for a bit (would be nice to check somehow whether folder is still locked, though not sure now how to check it safely) and then try to save .blend again automatically.
Though haven't you met any similar errors when you save IFC file or maybe when you link other IFC files (it saves cache files to the current folder)? It's possible to get a locked folder during these processes too and curious what would be the error.
Thanks @Andrej730, yes I use dropbox, so that might be it.
I have yet to experience it here. Will keep an eye out.