Skip to content

Migrating to a new server with different plugins #9845

@SchrodingersGat

Description

@SchrodingersGat

Discussed in #9838

Originally posted by flborn June 24, 2025
I had installed the InventreeBulkPlugin for testing purposes on a production instance. However, I don't need it.

Now I wanted to move to another server and would do these steps:

  1. Create Backup on the current instance
  2. Setup new instance with all needed plugins
  3. Restore Backup on new instance

Since the BulkPlugin made alterations to the database, the restore process fails with an error message that certain relationships are not present on the new DB instance.

My next try was to remove the plugin on the current instance, but a plugin can only be deactivated, not removed. And most certainly the DB alterations are not removed either.

Is there a way to restore the backup on the new instance without installing the bulkplugin?
(BTW: I tried that as well and installation process fails, the plugin cannot be activated, and migrations are also not executed)

# Version Information:
InvenTree-Version: 0.17.14
Django Version: 4.2.17
Commit Hash: bca375d
Commit Date: 2025-06-22

Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-6.8.0-58-generic-x86_64-with
Installer: DOC

Active plugins: 
[
    {'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.1.0'},
    {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'},
    {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'},
    {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.1.0'},
    {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'},
    {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'},
    {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'},
    {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'},
    {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'},
    {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'},
    {'name': 'KiCadLibraryPlugin', 'slug': 'kicad-library-plugin', 'version': '1.4.3'},
    {'name': 'SupplierCart', 'slug': 'suppliercart', 'version': '0.4.0'
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIdentifies a bug which needs to be addressedmigrationData or schema migrationspluginPlugin ecosystemquestionThis is a questionsetupRelates to the InvenTree setup / installation process

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions