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

Problem With Updating Plugins #255

Closed
Minionguyjpro opened this issue Jul 3, 2024 · 4 comments
Closed

Problem With Updating Plugins #255

Minionguyjpro opened this issue Jul 3, 2024 · 4 comments

Comments

@Minionguyjpro
Copy link
Contributor

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
Copy link
Owner

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

@Minionguyjpro
Copy link
Contributor Author

Minionguyjpro commented Jul 4, 2024

@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
Copy link
Owner

@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
Copy link
Contributor Author

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants