Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Impossible to restore 1.5.7 backup #8279

Open
2 tasks done
istornz opened this issue Jun 17, 2024 · 2 comments
Open
2 tasks done

馃悰 Bug Report: Impossible to restore 1.5.7 backup #8279

istornz opened this issue Jun 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@istornz
Copy link

istornz commented Jun 17, 2024

馃憻 Reproduction steps

[Error] Timestamp: 2024-06-14T10:04:21+00:00
[Error] Method: GET
[Error] URL: /v1/account/prefs
[Error] Type: TypeError
[Error] Message: Utopia\Database\Document::__construct(): Argument #1 ($input) must be of type array, Utopia\Database\Document given, called in /usr/src/code/app/controllers/api/account.php on line 2409
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Document.php
[Error] Line: 27

WORKAROUND (thanks to @ItzNotABug, I copy-pasted his solution which works on my side too)

  • I searched the forums and found that there's probably a migration issue as seen in the migrate errors and the docker appwrite logs.
  • I removed everything, installed appwrite 1.4.13, played a little bit here and there on console.
  • Bumped appwrite to 1.5.4 & did a docker exec appwrite migrate
  • After the succesfull migration, I stopped traefik and executed ./restore.sh
  • Restarted appwrite stack like docker compose up -d
  • I can finally see all of the data, from accounts, to functions, to stats and everything else.

Sources:

馃憤 Expected behavior

It should restore backup without any issues.

馃憥 Actual Behavior

It show an error 500.

馃幉 Appwrite version

Version 1.5.x

馃捇 Operating system

MacOS

馃П Your Environment

No response

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@istornz istornz added the bug Something isn't working label Jun 17, 2024
@DH-555
Copy link
Contributor

DH-555 commented Jun 17, 2024

Hello!
Did you had any previous version installed on that machine prior to installing 1.5.4?

@istornz
Copy link
Author

istornz commented Jun 17, 2024

Hello @DH-555, Yes the first version was 1.3.X, I upgraded normally since 1.5.7.

@istornz istornz changed the title 馃悰 Bug Report: Impossible to restore 1.5.4 backup 馃悰 Bug Report: Impossible to restore 1.5.7 backup Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants