Giter Site home page Giter Site logo

Comments (3)

Wilson08 avatar Wilson08 commented on May 20, 2024 1
  • This image says that the jar file is corrupted (the link looks ok to me in the code)
    issueHerokuBuildPack
  • I found this error a little strange, see how I did it to work:
heroku ps:exec
rm minecraft.jar
curl -o minecraft.jar -s -L https://launcher.mojang.com/v1/objects/a412fd69db1f81db3f511c1463fd304675244077/server.jar
screen -L -h 2048 -dmS minecraft java -Xmx384m -Xms384M -jar minecraft.jar nogui
screen -r

heroku02

from heroku-buildpack-minecraft.

Arch199 avatar Arch199 commented on May 20, 2024

The Heroku buildpack file is outdated, causing it to use 1.15.2 as the default - this is the same problem which caused #52.
For some reason, the fall through call to minecraft_url="https://s3.amazonaws.com/Minecraft.Download/versions/${minecraft_version}/minecraft_server.${minecraft_version}.jar" is returning an access denied error, so that the contents of minecraft.jar are as follows:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>4Y8P6PAG4GAGBM1P</RequestId><HostId>V3hEgTGTBI3U8iJ0WoF1/9MIIU0c542jP4mBRDIahmVQVX0MiFuPuJr/YSCG3p/iF3pOWnNTsUo=</HostId></Error>

I'm not sure why access would be denied as it seems that URLs like https://s3.amazonaws.com/Minecraft.Download/versions/1.6.3/minecraft_server.1.6.3.jar are publicly available without any kind of authentication, and the request just looks like curl -o minecraft.jar -s -L $minecraft_url.

from heroku-buildpack-minecraft.

jameswberry avatar jameswberry commented on May 20, 2024

Looks like this S3 bucket stopped being populated with server versions after 1.13.1.

PASS: https://s3.amazonaws.com/Minecraft.Download/versions/1.13.1/minecraft_server.1.13.1.jar
FAIL: https://s3.amazonaws.com/Minecraft.Download/versions/1.13.2/minecraft_server.1.13.2.jar

Strangely, this is accounted for in /bin/compile on line 68 elif echo "$minecraft_version" | grep -q '^1\.16.*$'; then but as you can see, it matches ALL minor versions of the 1.16 release to the 1.16.1 launcher.mojang Object UUID. minecraft_uuid="${MINECRAFT_UUID:="a412fd69db1f81db3f511c1463fd304675244077"}"

So either, some research needs to identify specific version UUIDs, or an alternate download source needs to be added.

from heroku-buildpack-minecraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.