fix(server): baixa ViaBackwards do Hangar em vez do Spiget#3
Open
oTalentz wants to merge 1 commit into
Open
Conversation
O recurso Spiget 27448 (ViaBackwards) esta hospedado no Hangar e o download via Spiget retorna uma pagina HTML em vez do .jar, fazendo o container minecraft-paper-1.21.8 falhar em loop antes de iniciar o servidor. Passa a usar a URL direta do Hangar CDN via variavel PLUGINS. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
O container
minecraft-paper-1.21.8estava em crash-loop e o servidor nunca chegava a iniciar. Causa raiz: o recurso Spiget27448(ViaBackwards) está hospedado no Hangar, entãohttps://api.spiget.org/v2/resources/27448/downloadretorna uma página HTML (<!DOCTYPE html>...) em vez do.jar. A imagemitzg/minecraft-servertrata a falha de download do Spiget como fatal e sai antes de subir o Paper.Verificado manualmente — os 4 recursos retornam HTTP 200, mas os magic bytes revelam o problema:
Correção: remover
27448deSPIGET_RESOURCESe baixar ViaBackwards pela URL direta do Hangar CDN via a variávelPLUGINSdo itzg:Os demais plugins (ViaVersion, LuckPerms, Vault) continuam via Spiget pois retornam jars válidos.
Verificação
Após a mudança,
docker compose up -dsobe o container saudável e o log mostraDone (17.770s)! For helpcom os 6 plugins carregados: Coins 1.0.0, LuckPerms 5.5.0, Tags 1.0.0, Vault 1.7.3-b131, ViaBackwards 5.11.0, ViaVersion 5.11.0.Link to Devin session: https://app.devin.ai/sessions/e2ed40915fb14357b90e53419fa47e59