Osiris-Team / AutoPlug-Client

Server manager with automatic plugin- mod- server- java- self- updater, scheduled restarts, automatic backups, shared folders, and many more handy features to automate/boost your server maintenance.
https://autoplug.one/
MIT License
56 stars 23 forks source link

Problem With Updating Plugins #255

Closed Minionguyjpro closed 3 months ago

Minionguyjpro commented 3 months ago

Importance: 8/10

Problem: I want to update the plugins in my Minecraft server, but due to this error, it prevents me from doing so:

[03-07-2024 15:12:58][AP][WARN] Download of 'ViaBackwards-[5.0.1].jar' failed because of invalid content type: text
java.io.IOException: No such file or directory
    at java.base/java.io.UnixFileSystem.createFileExclusively0(Native Method)
    at java.base/java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:258)
    at java.base/java.io.File.createNewFile(File.java:1045)
    at com.osiris.jlib.logger.AL.warn(AL.java:133)
    at com.osiris.jlib.logger.AL.warn(AL.java:97)
    at com.osiris.autoplug.client.utils.tasks.UtilsTasks.printResults(UtilsTasks.java:133)
    at com.osiris.autoplug.client.utils.tasks.UtilsTasks.printResultsWhenDone(UtilsTasks.java:65)

Solution: Fix this error in the program somewhere, since it looks like some error that needs to be fixed in the program itself.

Osiris-Team commented 3 months ago

@Minionguyjpro what does your config for that look like? works for me via github: image

Minionguyjpro commented 3 months ago

@Minionguyjpro what does your config for that look like? works for me via github: image

It's:

  ViaBackwards: 
    exclude: false
    version: 4.10.0
    latest-version: 5.0.1
    author: Matsv
    spigot-id: 27448
    bukkit-id: 0
    ignore-content-type: false
    custom-check-url: 
    custom-download-url: 
    alternatives: 
      github: 
        repo-name: 
        asset-name: 
      jenkins: 
        project-url: 
        artifact-name: 
        build-id: 0
    modrinth-id: 
    force-update: false

I am updating using the version provided on the Spigot website. It is however set to use an external site there while it does just point to the latest Spigot download URL already. Seems like it doesn't work with ViaBackwards that way, while it does with ViaVersion.

EDIT: Whoops, my bad. It goes to the GitHub page. But can it really auto update that way? Since the JAR file has the version number in it always, wouldn't it cause it for me to need to update it every time with every new release when I use the GitHub alternative?

Osiris-Team commented 3 months ago

@Minionguyjpro check the top comment in plugins.yml where it says that the asset name provided by you must NOT contain version information, autoplug will remove all numbers from the asset names on GitHub before comparing them with yours.

Minionguyjpro commented 3 months ago

@Minionguyjpro check the top comment in plugins.yml where it says that the asset name provided by you must NOT contain version information, autoplug will remove all numbers from the asset names on GitHub before comparing them with yours.

Nevermind, doing that indeed worked. Thanks!