Skip to content

Invalid payload. Collection \"logs\" doesn't exist. #134

@BorisKamp

Description

@BorisKamp

Hey!

I pulled my config locally, I then pushed to master, which builds my docker production image, I then run docker compose exec -u root directus npx directus-sync diff which works, this is the output:

[13:32:01.623] INFO (119): [config] No config file found. Tried path: 
- /directus/directus-sync.config.js
- /directus/directus-sync.config.cjs
- /directus/directus-sync.config.json
[13:32:02.355] INFO (119): [snapshot] Found 0 change in collections
[13:32:02.355] INFO (119): [snapshot] Found 11 changes in fields
[13:32:02.355] INFO (119): [snapshot] Found 4 changes in relations
[13:32:02.731] INFO (119): [settings] Dangling id maps: 0 item(s)
[13:32:02.731] INFO (119): [settings] To create: 0 item(s)
[13:32:02.731] INFO (119): [settings] To update: 0 item(s)
[13:32:02.731] INFO (119): [settings] To delete: 0 item(s)
[13:32:02.731] INFO (119): [settings] Unchanged: 1 item(s)
[13:32:02.828] INFO (119): [folders] Dangling id maps: 0 item(s)
[13:32:02.828] INFO (119): [folders] To create: 0 item(s)
[13:32:02.828] INFO (119): [folders] To update: 0 item(s)
[13:32:02.828] INFO (119): [folders] To delete: 0 item(s)
[13:32:02.828] INFO (119): [folders] Unchanged: 0 item(s)
[13:32:02.930] INFO (119): [translations] Dangling id maps: 0 item(s)
[13:32:02.930] INFO (119): [translations] To create: 0 item(s)
[13:32:02.930] INFO (119): [translations] To update: 0 item(s)
[13:32:02.931] INFO (119): [translations] To delete: 0 item(s)
[13:32:02.931] INFO (119): [translations] Unchanged: 0 item(s)
[13:32:03.031] INFO (119): [flows] Dangling id maps: 0 item(s)
[13:32:03.031] INFO (119): [flows] To create: 0 item(s)
[13:32:03.031] INFO (119): [flows] To update: 0 item(s)
[13:32:03.031] INFO (119): [flows] To delete: 0 item(s)
[13:32:03.031] INFO (119): [flows] Unchanged: 0 item(s)
[13:32:03.130] INFO (119): [operations] Dangling id maps: 0 item(s)
[13:32:03.130] INFO (119): [operations] To create: 0 item(s)
[13:32:03.130] INFO (119): [operations] To update: 0 item(s)
[13:32:03.130] INFO (119): [operations] To delete: 0 item(s)
[13:32:03.130] INFO (119): [operations] Unchanged: 0 item(s)
[13:32:03.647] INFO (119): [roles] Dangling id maps: 0 item(s)
[13:32:03.647] INFO (119): [roles] To create: 1 item(s)
[13:32:03.647] INFO (119): [roles] To update: 1 item(s)
[13:32:03.647] INFO (119): [roles] To delete: 0 item(s)
[13:32:03.647] INFO (119): [roles] Unchanged: 2 item(s)
[13:32:04.368] INFO (119): [policies] Dangling id maps: 0 item(s)
[13:32:04.368] INFO (119): [policies] To create: 1 item(s)
[13:32:04.368] INFO (119): [policies] To update: 2 item(s)
[13:32:04.368] INFO (119): [policies] To delete: 0 item(s)
[13:32:04.368] INFO (119): [policies] Unchanged: 2 item(s)
[13:32:13.033] INFO (119): [permissions] Dangling id maps: 1 item(s)
[13:32:13.033] INFO (119): [permissions] To create: 23 item(s)
[13:32:13.033] INFO (119): [permissions] To update: 2 item(s)
[13:32:13.033] INFO (119): [permissions] To delete: 0 item(s)
[13:32:13.033] INFO (119): [permissions] Unchanged: 64 item(s)
[13:32:13.129] INFO (119): [dashboards] Dangling id maps: 0 item(s)
[13:32:13.129] INFO (119): [dashboards] To create: 0 item(s)
[13:32:13.129] INFO (119): [dashboards] To update: 0 item(s)
[13:32:13.129] INFO (119): [dashboards] To delete: 0 item(s)
[13:32:13.129] INFO (119): [dashboards] Unchanged: 0 item(s)
[13:32:13.235] INFO (119): [panels] Dangling id maps: 0 item(s)
[13:32:13.235] INFO (119): [panels] To create: 0 item(s)
[13:32:13.235] INFO (119): [panels] To update: 0 item(s)
[13:32:13.235] INFO (119): [panels] To delete: 0 item(s)
[13:32:13.235] INFO (119): [panels] Unchanged: 0 item(s)
[13:32:13.326] INFO (119): [presets] Dangling id maps: 0 item(s)
[13:32:13.326] INFO (119): [presets] To create: 0 item(s)
[13:32:13.326] INFO (119): [presets] To update: 0 item(s)
[13:32:13.326] INFO (119): [presets] To delete: 0 item(s)
[13:32:13.326] INFO (119): [presets] Unchanged: 0 item(s)
[13:32:13.326] INFO (119): ✅  Done!

I then run docker compose exec -u root directus npx directus-sync push which errors out:

[13:32:55.671] INFO (153): [config] No config file found. Tried path: 
- /directus/directus-sync.config.js
- /directus/directus-sync.config.cjs
- /directus/directus-sync.config.json
[13:32:56.156] INFO (153): ---- Push schema ----
[13:32:56.823] ERROR (153):
    errors: [
      {
        "message": "Invalid payload. Collection \"logs\" doesn't exist.",
        "extensions": {
          "reason": "Collection \"logs\" doesn't exist",
          "code": "INVALID_PAYLOAD"
        }
      }
    ]
    response: {}

logs is definitely there, here is a screenshot of my production db table called logs:
Screenshot 2025-01-10 at 14 33 58
In directus_collections you can also see it:
Screenshot 2025-01-10 at 14 34 50

Why am I getting this error? Is there anything else I can do to debug further?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions