TritonDataCenter / minecrab

Minecraft on Joyent's Cloud & Manta on Demand
Other
27 stars 12 forks source link

ftb-ultimate install not working #23

Closed nfitch closed 10 years ago

nfitch commented 10 years ago
nate:~ nfitch$ minecraft-server-launch -f ftb-ultimate ftb-test
Launching ftb-test .................. done
Server ftb-test running on 165.225.144.186 id: 45d5220b-8725-c903-d883-f010921372a8
Setting up...
Installing git...
Cloning repo...
Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of known hosts.
Installing server...
  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 /var/tmp/modpacks%5EUltimate%5Eultimate%5EUltimate_Server.zip or
        /var/tmp/modpacks%5EUltimate%5Eultimate%5EUltimate_Server.zip.zip, and cannot find /var/tmp/modpacks%5EUltimate%5Eultimate%5EUltimate_Server.zip.ZIP, period.
minecraft-server-launch: fatal error: Failed to execute cd /opt && minecraft/scripts/install.sh ftb-ultimate on 165.225.144.186
nfitch commented 10 years ago
[root@45d5220b-8725-c903-d883-f010921372a8 /var/tmp]# cat modpacks%5EUltimate%5Eultimate%5EUltimate_Server.zip
An error has occured and CreeperHost is unable to find this file "modpacks/Ultimate/ultimate/Ultimate_Server.zip".

The error says it all. We may have to find an alternate location to download it from.

nfitch commented 10 years ago

This is the url I got from the script, then from the website:

#Script:
http://www.creeperrepo.net/direct/FTB2/6b87107415174d7b47c0ca1a1d198061/modpacks%5EUlctimate%5Eultimate%5EUltimate_Server.zip
#Website:
http://www.creeperrepo.net/direct/FTB2/6b87107415174d7b47c0ca1a1d198061/modpacks%5EUltimate%5E1_1_2%5EUltimate_Server.zip

What should be "1_1_2" is "ultimate" in the bad url.

nfitch commented 10 years ago

The problem is shown by this simple script:

nate:~ nfitch$ cat ftb_version.sh
SERVER_FLAVOR=ftb-ultimate
SERVER_VERSION=${SERVER_FLAVOR#*-}
[[ ${SERVER_VERSION} == ${SERVER_FLAVOR} ]] && unset SERVER_VERSION
: ${SERVER_VERSION:=1.1.2}
SERVER_URL="http://www.creeperrepo.net/direct/FTB2/6b87107415174d7b47c0ca1a1d198061/modpacks%5EUltimate%5E${SERVER_VERSION//\./_}%5EUltimate_Server.zip"

echo $SERVER_VERSION
echo $SERVER_URL
nate:~ nfitch$ ./ftb_version.sh
ultimate
http://www.creeperrepo.net/direct/FTB2/6b87107415174d7b47c0ca1a1d198061/modpacks%5EUltimate%5Eultimate%5EUltimate_Server.zip

Looks like we're parsing the version by looking at everything after a '-'. Since ftb-ultimate has a '-' in it, it's parsing "ultimate" as the version. I think I'll fix it so that it's ftb_ultimate rather than ftb-ultimate, leaving the '-' for the version.