Skip to content

Mealie Import not working #4287

@jllv

Description

@jllv

Tandoor Version

2.3.6

Setup

Docker / Docker-Compose

Reverse Proxy

No reverse proxy

Other

No response

Bug description

Hey there,

I ran into some issues while trying to move my recipes form mealie (latest version) over to my Tandoor instance.
The logs are hinting at an issue with the zip file, but I verified that database.json is part of the zip that I used.

In case it's helpful I can of course provide the zip file that I tried to import 🙂

Relevant logs

192.168.1.74 - - [05/Dec/2025:19:09:48 +0100] "GET /api/import-log/9/ HTTP/1.1" 200 564 "http://192.168.1.225:8085/recipe/import" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.1 Safari/605.1.15" "-"
 - - [05/Dec/2025:19:09:48 +0100] "GET /api/import-log/9/ HTTP/1.0" 200 564 "http://192.168.1.225:8085/recipe/import" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.1 Safari/605.1.15"
2025/12/05 19:30:43 [warn] 13#13: *55 a client request body is buffered to a temporary file /var/lib/nginx/tmp/client_body/0000000005, client: 192.168.1.74, server: localhost, request: "POST /api/import/ HTTP/1.1", host: "192.168.1.225:8085", referrer: "http://192.168.1.225:8085/recipe/import"
 - - [05/Dec/2025:19:30:44 +0100] "POST /api/import/ HTTP/1.0" 200 16 "http://192.168.1.225:8085/recipe/import" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.1 Safari/605.1.15"
Traceback (most recent call last):
  File "/opt/recipes/cookbook/integration/integration.py", line 183, in do_import
    recipes = self.get_recipe_from_file(import_zip)
  File "/opt/recipes/cookbook/integration/mealie1.py", line 26, in get_recipe_from_file
    mealie_database = json.loads(BytesIO(file.read('database.json')).getvalue().decode("utf-8"))
                                         ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/zipfile/__init__.py", line 1602, in read
    with self.open(name, "r", pwd) as fp:
         ~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/zipfile/__init__.py", line 1639, in open
    zinfo = self.getinfo(name)
  File "/usr/local/lib/python3.13/zipfile/__init__.py", line 1567, in getinfo
    raise KeyError(
        'There is no item named %r in the archive' % name)
KeyError: "There is no item named 'database.json' in the archive"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions