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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore file not found #1384

Closed
tmcsys opened this issue Dec 17, 2023 · 4 comments
Closed

Restore file not found #1384

tmcsys opened this issue Dec 17, 2023 · 4 comments
Assignees
Labels
bug Something isn't working fixed
Milestone

Comments

@tmcsys
Copy link

tmcsys commented Dec 17, 2023

ArcadeDB Server v23.11.1 (build 798b2b6/1701318772588/main)
Running on Mac OS X 13.6 - OpenJDK 64-Bit Server VM 17.0.9 (Temurin-17.0.9+9)

This has been a real barrier to entry.

From server directory:

arcadedb-23.11.1 % bin/restore.sh -f backups/Movies-backup-20211005-134613862.zip -d ArcadeMovies
Exception in thread "main" com.arcadedb.integration.restore.RestoreException: Error during restore of database from file 'backups/Movies-backup-20211005-134613862.zip'
at com.arcadedb.integration.restore.Restore.restoreDatabase(Restore.java:58)
at com.arcadedb.integration.restore.Restore.main(Restore.java:45)
Caused by: com.arcadedb.integration.restore.RestoreException: The backup file 'backups/Movies-backup-20211005-134613862.zip' not exist
at com.arcadedb.integration.restore.format.FullRestoreFormat.openInputFile(FullRestoreFormat.java:135)
at com.arcadedb.integration.restore.format.FullRestoreFormat.restoreDatabase(FullRestoreFormat.java:53)
at com.arcadedb.integration.restore.Restore.restoreDatabase(Restore.java:55)
... 1 more

ls -l backups/Movies-backup-20211005-134613862.zip
-rw-r--r--@ 1 me staff 38852 Dec 17 09:39 backups/Movies-backup-20211005-134613862.zip

Steps to reproduce

  1. clone arcadedb-datasets
  2. move arcadedb/Movies-backup-20211005-134613862.zip to [server_root]/backups
  3. cd to [server_root]
  4. execute bin/restore.sh -f backups/Movies-backup-20211005-134613862.zip -d ArcadeMovies
@lvca
Copy link
Contributor

lvca commented Dec 17, 2023

What github project is "arcadedb-datasets"?

@lvca lvca self-assigned this Dec 17, 2023
@lvca lvca added this to the 23.12.1 milestone Dec 17, 2023
@lvca
Copy link
Contributor

lvca commented Dec 17, 2023

Nevermind, I was able to reproduce it with any backup. The issue must be in the restore.sh script configuration. Working on it

@lvca lvca added the bug Something isn't working label Dec 17, 2023
lvca added a commit that referenced this issue Dec 17, 2023
@lvca
Copy link
Contributor

lvca commented Dec 17, 2023

The issue is on line 37 of restore.sh script:

cd "$ARCADEDB_HOME/bin"

Just pushed a fix, but If you simply remove it from your distribution, it should work.

@lvca lvca closed this as completed Dec 17, 2023
@lvca lvca added the fixed label Dec 17, 2023
@gramian
Copy link
Collaborator

gramian commented Dec 17, 2023

As a workaround for a release, the server.defaultDatabases setting should work. There you can also use a "restore".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

3 participants