8000 Restore of backup created just moments ago breaks Mealie. · Issue #5524 · mealie-recipes/mealie · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Restore of backup created just moments ago breaks Mealie. #5524
Open
@trunzoc

Description

@trunzoc

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

My Mealie docker crashed. I was able to get a fresh copy of Mealie to run. Setup went fine, but when it came time to restore my my recent back, that restore had and error, and which broke Mealie complete. Unable to login anymore. I tried several previous backup, all caused the same behavior.

I was finally able to get a backup from earlier in Feb to work, but it's missing several dozen recipes (expected from an old backup).

I immediately made a new back of the restored Feb backup and this brand new backup also breaks Mealie.

I did try my backup on the demo site, and now the demo site is broken as well.

Is there any way to determine why my backups are breaking Mealie?

The backups are too large to attach, but can be located at the link below.

The one dated in Feb is the one that works. The ones from May and June break.

https://drive.google.com/drive/folders/11R6Z8ACnKUFTs9fweLBd-4u3BpevnBPX?usp=sharing

Steps to Reproduce

  1. Upload the backup to Mealie
  2. Hit restore Backup
  3. suffer

Please provide relevant logs

[ERROR|admin_backups|L112] 2025-06-12T14:46:54: [Errno 16] Device or resource busy: PosixPath('/app/data/mealie-pgdata')
Traceback (most recent call last):
File "/opt/mealie/lib/python3.12/site-packages/mealie/routes/admin/admin_backups.py", line 105, in import_one
backup.restore(file)
File "/opt/mealie/lib/python3.12/site-packages/mealie/services/backups_v2/backup_v2.py", line 106, in restore
self._copy_data(contents.data_directory)
File "/opt/mealie/lib/python3.12/site-packages/mealie/services/backups_v2/backup_v2.py", line 67, in _copy_data
shutil.rmtree(self.directories.DATA_DIR / f.name)
File "/usr/local/lib/python3.12/shutil.py", line 759, in rmtree
_rmtree_safe_fd(stack, onexc)
File "/usr/local/lib/python3.12/shutil.py", line 703, in _rmtree_safe_fd
onexc(func, path, err)
File "/usr/local/lib/python3.12/shutil.py", line 662, in _rmtree_safe_fd
os.rmdir(name, dir_fd=dirfd)
OSError: [Errno 16] Device or resource busy: PosixPath('/app/data/mealie-pgdata')
[INFO|httptools_impl|L476] 2025-06-12T14:46:54: 50.107.56.136:0 - "POST /api/admin/backups/mealie_2025.06.12.18.46.21.zip/restore HTTP/1.1" 500
[INFO|httptools_impl|L476] 2025-06-12T14:47:00: 50.107.56.136:0 - "GET / HTTP/1.1" 200

Mealie Version

v2.8.0

Deployment

Docker (Linux)

Additional Deployment Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0