Skip to content

Version mismatch prevents import of realm data from zulipcloud to self-hosted intance #32826

Closed
@cynum

Description

Description:

Trying to import a data export from zulipcloud on version 10.0-dev-2143-gd3df54f54c into self-hosted installation which is on zulip-cloud-current branch using manage.py import function.

What is not as expected:

The import script stops with an error due to a version mismatch between the exported data and the self-hosted zulip server.

Steps to reproduce:

  • New self-hosted installation on Debian 12
  • Upgrade self-hosted installation to zulip-cloud-current
    /home/zulip/deployments/current/scripts/upgrade-zulip-from-git zulip-cloud-current
  • Self-hosted version results in 10.0-dev-2114-g06d04b4291
  • Exported data from Zulipcloud version 10.0-dev-2143-gd3df54f54c
  • Exporting data on zulipcloud
  • Trying to import on self-hosted installation by
    sudo su zulip -c '/home/zulip/deployments/current/manage.py import "testimport" /home/zulip/zulip-export-zlj7_d82'

Results in error:

sudo su zulip -c '/home/zulip/deployments/current/manage.py import "testimport" /home/zulip/zulip-export-zlj7_d82'

2024-12-25 19:48:01.965 INFO [] Importing realm dump /home/zulip/zulip-export-zlj7_d82
2024-12-25 19:48:01.965 INFO [] Checking migration status of exported realm
2024-12-25 19:48:01.971 WARN [] Exported realm has 'guardian' app installed, but this server does not.
2024-12-25 19:48:01.973 WARN [] Exported realm has 'sites' app installed, but this server does not.
Error: Export was generated on a different Zulip version.
Export version: 10.0-dev-2143-gd3df54f54c
Server version: 10.0-dev-2114-g06d04b4291

Database formats differ between the exported realm and this server.
Printing migrations that differ between the versions:

--- exported realm
+++ this server

with database diffs following.

I also tried to update the self-hosted version to main (10.0-dev-2278-g3eb501fa18), which results in the same/expected error message:

Error: Export was generated on a different Zulip version.
Export version: 10.0-dev-2143-gd3df54f54c
Server version: 10.0-dev-2278-g3eb501fa18

Database formats differ between the exported realm and this server.
Printing migrations that differ between the versions:

--- exported realm
+++ this server
'confirmation' app:
 0013_alter_realmcreationkey_id
+0014_confirmation_confirmatio_content_80155a_idx
 0015_alter_confirmation_object_id
-0014_confirmation_confirmatio_content_80155a_idx
 0001_squashed_0014_confirmation_confirmatio_content_80155a_idx

'social_auth' app:
-0005_auto_20160727_2333
 0001_initial
+0002_add_related_name
 0003_alter_email_max_length
 0004_auto_20160423_0400
-0002_add_related_name
+0005_auto_20160727_2333

etc

Discussion on chat.zulip.org:

https://chat.zulip.org/#narrow/channel/387-zulip-cloud/topic/version.20difference.20between.20live.20zulipcloud.20and.20github

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions