Skip to content

fix(server): baixa ViaBackwards do Hangar em vez do Spiget#3

Open
oTalentz wants to merge 1 commit into
mainfrom
devin/1784365533-fix-viabackwards-download
Open

fix(server): baixa ViaBackwards do Hangar em vez do Spiget#3
oTalentz wants to merge 1 commit into
mainfrom
devin/1784365533-fix-viabackwards-download

Conversation

@oTalentz

Copy link
Copy Markdown
Owner

Summary

O container minecraft-paper-1.21.8 estava em crash-loop e o servidor nunca chegava a iniciar. Causa raiz: o recurso Spiget 27448 (ViaBackwards) está hospedado no Hangar, então https://api.spiget.org/v2/resources/27448/download retorna uma página HTML (<!DOCTYPE html>...) em vez do .jar. A imagem itzg/minecraft-server trata 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:

19254 (ViaVersion)   -> 50 4b 03 04  (PK, jar OK)
27448 (ViaBackwards) -> 3c 21 44 4f  (<!DO, HTML QUEBRADO)
28140 (LuckPerms)    -> 50 4b 03 04  (PK, jar OK)
34315 (Vault)        -> 50 4b 03 04  (PK, jar OK)

Correção: remover 27448 de SPIGET_RESOURCES e baixar ViaBackwards pela URL direta do Hangar CDN via a variável PLUGINS do itzg:

- SPIGET_RESOURCES: "19254,27448,28140,34315"
+ SPIGET_RESOURCES: "19254,28140,34315"
+ PLUGINS: |
+   https://hangarcdn.papermc.io/plugins/ViaVersion/ViaBackwards/versions/5.11.0/PAPER/ViaBackwards-5.11.0.jar

Os demais plugins (ViaVersion, LuckPerms, Vault) continuam via Spiget pois retornam jars válidos.

Verificação

Após a mudança, docker compose up -d sobe o container saudável e o log mostra Done (17.770s)! For help com 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

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>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant