Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MC] - Version (1.16.*) #58

Open
Wilson08 opened this issue Jul 23, 2020 · 3 comments
Open

[MC] - Version (1.16.*) #58

Wilson08 opened this issue Jul 23, 2020 · 3 comments

Comments

@Wilson08
Copy link

Hi I'm following the steps in the readme and I was successful with versions <= 1.15.2. 👍 😄
Versions above (1.16. *) are not working. 😢
I tried to use the command heroku ps: exec and look through the directories for any log but the log folder is not generated when I run with mc version (1.16.1).

@Wilson08
Copy link
Author

  • 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

@Arch199
Copy link

Arch199 commented Oct 25, 2020

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.

@jameswberry
Copy link

jameswberry commented Feb 9, 2021

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.

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

No branches or pull requests

3 participants