Bottles Crashed Last Time
[('/home/USER/.var/app/com.usebottles.bottles/data/bottles/bottles/Acrobat/reg77c0000.tmp', '/home/USER/.var/app/com.usebottles.bottles/data/bottles/templates/196935b7-6830-40cb-a2e1-783f7c58bd9d/reg77c0000.tmp', "[Errno 2] No such file or directory: '/home/USER/.var/app/com.usebottles.bottles/data/bottles/bottles/Acrobat/reg77c0000.tmp'")] File "/app/share/bottles/bottles/backend/utils/threading.py", line 73, in __target result = self.task_func(*args, **kwargs)
File "/app/share/bottles/bottles/backend/managers/manager.py", line 2029, in create_bottle TemplateManager.new(environment, config) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/app/share/bottles/bottles/backend/managers/template.py", line 61, in new shutil.copytree( ~~~~~~~~~~~~~~~^ bottle, _path, symlinks=True, ignore=shutil.ignore_patterns(*ignored) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^
File "/usr/lib/python3.13/shutil.py", line 593, in copytree return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks, ignore=ignore, copy_function=copy_function, ignore_dangling_symlinks=ignore_dangling_symlinks, dirs_exist_ok=dirs_exist_ok)
File "/usr/lib/python3.13/shutil.py", line 547, in _copytree raise Error(errors)
Getting this as well, not sure what the cause is.
Same here. Not sure how to fix...
The reg*.tmp files are created by wineserver when saving registry data (see wine/server/registry.c : save_branch(). It does this periodically.
It looks like the bottle prefix is still being written to while a cached template is being created from it. By the time the directory copy reaches the .tmp file, wineserver has deleted it.
There are quite a few issues similar to this:
- #3724
- #3370
- #3357
- #2076
- #1667
That last one is quite interesting because there was an attempt to fix it (6f53a38) by adding a try-catch around copytree() which suppressed the exception. This was later undone by 647b228 which specifically tries to suppress FileNotFoundError instead of the shutil.Error that copytree() throws.
It isn't just template creation that is breaking. Installing dependencies also breaks due to the .tmp files:
- #3660
- #3440
- #3354
- #3082
I wonder if there's a way of flushing the registry changes then halting further writes during the copy.
Should be now fixed in v63