itzg/docker-minecraft-server

Server fails to start if Spiget is down and plugins need to be installed

Open

#1 307 ouverte le 26 janv. 2022

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Shell (1 858 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (13 694 stars)
Métriques de merge PR
 (Merge moyen 15h 10m) (32 PRs mergées en 30 j)

Description

Describe the problem

The spiget API status page is currently reporting the api status as "Unknown" and the amount of daily requests took a nose dive tonight so I'm going to assume things are very wrong on their end. image

This shouldn't be an issue however because I already have cached versions of these plugins from the previous time the server started and spiget was up. I think we should handle this service degradation gracefully and not exit because plugins can't be downloaded successfully.

Container definition

I'm using a kubernetes manifest that is split up and non-trivial to paste here, the important part is that I have SPIGET_RESOURCES="274,18494" set.

Container logs

chmod: changing permissions of '/data': Operation not permitted
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwsrwx 11 0 2000 35 Jan 26 03:31 /data'
[init] Resolved version given LATEST into 1.18.1
[init] Resolving type given PAPER
[init] Removing old PaperMC versions ...
[init] Downloading PaperMC 1.18.1 (build 176) ...
[init] Getting plugins via Spiget
[init] Downloading resource 274 ...
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/274.zip or
        /tmp/274.zip.zip, and cannot find /tmp/274.zip.ZIP, period.
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/274.zip or
        /tmp/274.zip.zip, and cannot find /tmp/274.zip.ZIP, period.
[init] ERROR downloaded resource '274' seems to be not a valid plugin

Guide contributeur