HeatherComputer / AdvancedBackups

BSD 3-Clause "New" or "Revised" License
37 stars 6 forks source link

Bug report : Running the jar errors #50

Closed transcental closed 11 months ago

transcental commented 11 months ago

Describe the bug

When I try running the mod, it errors and does nothing,

$ java -jar "AdvancedBackups-fabric-1.20-3.3.jar"
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gson/JsonParseException
    at co.uk.mommyheather.advancedbackups.cli.AdvancedBackupsCLI.main(AdvancedBackupsCLI.java:46)
Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonParseException
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 1 more

To Reproduce Steps to reproduce the behavior:

  1. Make a server. Do stuff with incremental backups on.
  2. Download the mod and the backup folder
  3. Run the jar
  4. See error

Expected behavior The menu for restoring a backup

Screenshots

image

Versioning (please complete the following information):

Additional context Accidentally deleted something on my server so I downloaded the backups in hope of restoring it, however the backup tool refused to load.

I do not have ssh access to the server.

Attempts to fix issue

HeatherComputer commented 11 months ago

This was fixed in version 3.4. You can get the relevant file on curseforge or modrinth.

Sticking this jar in place of the old one will let you run it directly.

As a side note with the setup you have, it's worth noting that the tool expects a proper server-like or client-like setup - that is, it'll expect to be in a folder (usually named mods), and in the parent of that it'll check config/AdvancedBackups.properties for your backup path. You might want to make sure your local copy of the backups and mod is structured in the same way as the server itself.

Feel free to let me know if you have any further issues.

transcental commented 11 months ago

Oh, thanks! - I missed that update

On Sun, Dec 10, 2023 at 8:23 PM Heather White @.***> wrote:

This was fixed in version 3.4. You can get the relevant file on curseforge https://www.curseforge.com/minecraft/mc-mods/advanced-backups/files/4913299 or modrinth https://modrinth.com/mod/advanced-backups/version/9ts2YEHP.

Sticking this jar in place of the old one will let you run it directly.

As a side note with the setup you have, it's worth noting that the tool expects a proper server-like or client-like setup - that is, it'll expect to be in a folder (usually named mods), and in the parent of that it'll check config/AdvancedBackups.properties for your backup path. You might want to make sure your local copy of the backups and mod is structured in the same way as the server itself.

Feel free to let me know if you have any further issues.

— Reply to this email directly, view it on GitHub https://github.com/MommyHeather/AdvancedBackups/issues/50#issuecomment-1849073028, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAPGDY2XGTY3D6YGR7GBILYIYK2XAVCNFSM6AAAAABAOZCNWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA3TGMBSHA . You are receiving this because you authored the thread.Message ID: @.***>