Skip to content

[BUG] Fix restore of backups when plugins with modesl are used #11235

Closed

Description

@matmair

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

If plugins with AppMixin run within an instance, we might not be able to restore all the backed up information as there is a direct connection between database and available plugins. This is not reflected in the current backup / restore setup.

Steps to Reproduce

N/A

Expected behaviour

do a multi-step process like proposed in #11214 (comment)

Deployment Method

None

Version Information

InvenTree-Version: 1.2.0 dev
Django Version: 5.2.10
Commit Hash: d00d472
Commit Date: 2026-01-30
Commit Branch: null
Database: django.db.backends.postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.15.0-100-generic-x86_64-with-glibc2.41
Installer: DOC
Active plugins: false

Try to reproduce on the demo site

I did not try to reproduce

Is the bug reproducible on the demo site?

Not reproducible

Relevant log output

Activity

  1. added
    bug
    question
    plugin
    setup
    on Feb 1, 2026
  2. modified the milestones: 2.0.0, horizon on Feb 1, 2026
  3. matmair commented on Feb 1, 2026

    @matmair
    MemberAuthor

    also see #11214 (comment)

    I think we just have to ensure that the correct plugins are enabled before updating.

    So we may need to ensure that the data is re-imported in a correct sequence:

    Run InvenTree table migrations
    Import core InvenTree data
    Load plugin configs (to ensure the plugins are enabled to allow generation of tables)
    Re-run migrations (to create the plugin tables)
    Import plugin data from the backup
    
  4. modified the milestones: horizon, 2.0.0 on Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpluginquestionsetup

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions