Skip to content
Back

Migration 1.5.5 to 1.5.6 Failed

  • 0
  • Self Hosted
  • Tools
Şafak
24 May, 2024, 11:39

I tried migration from 1.5.5 to 1.5.6. You used test data.

Between 2 different dedicated servers 1 Database 4 Collection 14 Document

The system migrated the schematic correctly. It could not migrate some of the documents.

Only documents in 1 collection resulted in failed. In all 4 documents, authorizations are defined as Any(create,read,update,delete). I double checked

TL;DR
Migration from version 1.5.5 to 1.5.6 failed due to authorization issues during the migration process. The migration was successful for databases and collections but encountered errors while pushing specific documents due to authorization problems. The error message indicates that the current user does not have the necessary permissions for the requested actions. Double-check the authorization settings for the affected documents.
Şafak
24 May, 2024, 11:39

Console Logs

TypeScript
{
  "$id": "665079c2de203635d3cd",
  "$createdAt": "2024-05-24T11:28:02.910+00:00",
  "$updatedAt": "2024-05-24T11:28:27.645+00:00",
  "status": "failed",
  "stage": "finished",
  "source": "Appwrite",
  "resources": [
    "user",
    "team",
    "membership",
    "database",
    "collection",
    "attribute",
    "index",
    "document",
    "function",
    "environment variable",
    "deployment",
    "bucket",
    "file"
  ],
  "statusCounters": {
    "database": {
      "pending": 0,
      "success": 1,
      "error": 0,
      "skip": 0,
      "processing": 0,
      "warning": 0
    },
    "collection": {
      "pending": 0,
      "success": 4,
      "error": 0,
      "skip": 0,
      "processing": 0,
      "warning": 0
    },
    "attribute": {
      "pending": 0,
      "success": 31,
      "error": 0,
      "skip": 0,
      "processing": 0,
      "warning": 0
    },
    "document": {
      "pending": 0,
      "success": 7,
      "error": 5,
      "skip": 2,
      "processing": 0,
      "warning": 0
    }
  },
  "resourceData": [],
  "errors": [
    "Error occurred while pushing 'databases:664fbba20006b7cb32be' to destination with message: 'The current user is not authorized to perform the requested action.'",
    "Error occurred while pushing 'databases:664fbc080039d6d48aed' to destination with message: 'The current user is not authorized to perform the requested action.'",
    "Error occurred while pushing 'databases:664fbdb80024ebdabf80' to destination with message: 'The current user is not authorized to perform the requested action.'",
    "Error occurred while pushing 'databases:664fbe2500045795709a' to destination with message: 'The current user is not authorized to perform the requested action.'",
    "Error occurred while pushing 'databases:664fc54e0029d32fdaef' to destination with message: 'The current user is not authorized to perform the requested action.'"
  ]
}
Şafak
24 May, 2024, 11:40

Worker Logs

TypeScript
Warning: Undefined array key -1 in /usr/src/code/vendor/utopia-php/migration/src/Migration/Sources/Appwrite.php on line 201

Warning: Trying to access array offset on null in /usr/src/code/vendor/utopia-php/migration/src/Migration/Sources/Appwrite.php on line 201
[Job] (665079c2df2133.67262319) failed to run.
[Job] (665079c2df2133.67262319) Error occurred while pushing 'databases:664fbba20006b7cb32be' to destination with message: 'The current user is not authorized to perform the requested action.'
Error occurred while pushing 'databases:664fbc080039d6d48aed' to destination with message: 'The current user is not authorized to perform the requested action.'
Error occurred while pushing 'databases:664fbdb80024ebdabf80' to destination with message: 'The current user is not authorized to perform the requested action.'
Error occurred while pushing 'databases:664fbe2500045795709a' to destination with message: 'The current user is not authorized to perform the requested action.'
Error occurred while pushing 'databases:664fc54e0029d32fdaef' to destination with message: 'The current user is not authorized to perform the requested action.'
[Error] Type: Exception
[Error] Message: Error occurred while pushing 'databases:664fbba20006b7cb32be' to destination with message: 'The current user is not authorized to perform the requested action.'
Error occurred while pushing 'databases:664fbc080039d6d48aed' to destination with message: 'The current user is not authorized to perform the requested action.'
.....
.....
[Error] File: /usr/src/code/src/Appwrite/Platform/Workers/Migrations.php
[Error] Line: 350
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more