Giter Site home page Giter Site logo

heroku-buildpack-minecraft's Introduction

Heroku Minecraft Buildpack

This is a Heroku Buildpack for running a Minecraft server in a dyno.

Deploy to Heroku

Usage

Create a free ngrok account and copy your Auth token. Then create a new Git project with a eula.txt file:

$ echo 'eula=true' > eula.txt
$ git init
$ git add eula.txt
$ git commit -m "first commit"

Then, install the Heroku CLI. Create a Heroku app, set your ngrok token, and push:

$ heroku create
$ heroku buildpacks:add heroku/python
$ heroku buildpacks:add heroku/jvm
$ heroku buildpacks:add jkutner/minecraft
$ heroku config:set NGROK_API_TOKEN="xxxxx"
$ git push heroku master

Finally, open the app:

$ heroku open

This will display the ngrok logs, which will contain the name of the server (really it's a proxy, but whatever):

Server available at: 0.tcp.ngrok.io:17003

Copy the 0.tcp.ngrok.io:17003 part, and paste it into your local Minecraft app as the server name.

Syncing to S3

The Heroku filesystem is ephemeral, which means files written to the file system will be destroyed when the server is restarted.

Minecraft keeps all of the data for the server in flat files on the file system. Thus, if you want to keep you world, you'll need to sync it to S3.

First, create an AWS account and an S3 bucket. Then configure the bucket and your AWS keys like this:

$ heroku config:set AWS_BUCKET=your-bucket-name
$ heroku config:set AWS_ACCESS_KEY=xxx
$ heroku config:set AWS_SECRET_KEY=xxx

The buildpack will sync your world to the bucket every 60 seconds, but this is configurable by setting the AWS_SYNC_INTERVAL config var.

Connecting to the server console

The Minecraft server runs inside a screen session. You can use Heroku Exec to connect to your server console.

Once you have Heroku Exec installed, you can connect to the console using

$ heroku ps:exec
Establishing credentials... done
Connecting to web.1 on ⬢ lovely-minecraft-2351...
$ screen -r minecraft

WARNING You are now connected to the Minecraft server. Use Ctrl-A Ctrl-D to exit the screen session. (If you hit Ctrl-C while in the session, you'll terminate the Minecraft server.)

Customizing

ngrok

You can customize ngrok by setting the NGROK_OPTS config variable. For example:

$ heroku config:set NGROK_OPTS="--remote-addr 1.tcp.ngrok.io:25565"

Minecraft

You can choose the Minecraft version by setting the MINECRAFT_VERSION like so:

$ heroku config:set MINECRAFT_VERSION="1.18.1"

You can also configure the server properties by creating a server.properties file in your project and adding it to Git. This is how you would set things like Creative mode and Hardcore difficulty. The various options available are described on the Minecraft Wiki.

You can add files such as banned-players.json, banned-ips.json, ops.json, whitelist.json to your Git repository and the Minecraft server will pick them up.

Adding New Minecraft Versions

Please submit Pull Requests to etc/files.json

Using the Buildpack from source

If you want the bleeding edge version of this buildpack run:

$ heroku buildpacks:remove jkutner/minecraft
$ heroku buildpacks:add https://github.com/jkutner/heroku-buildpack-minecraft

heroku-buildpack-minecraft's People

Contributors

alihagh1383 avatar flacoste avatar jkutner avatar kevincardona avatar mohsen51 avatar saanvik avatar wuleicanada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heroku-buildpack-minecraft's Issues

Memory quota exceeded

Sadly I get this error about memory usage after some hours..
1 player online

Process running mem=619M(118.5%)
Error R14 (Memory quota exceeded)

Rcon support

How to add Rcon support to the server? As I understand it, tunneling is performed only with the server port, how can I add 1 more port for the rcon connection?

No Minecraft Screen

I followed your instructions meticulously, and I cannot connect to the Minecraft Server console using 'screen -r minecraft'. I get the response "There is no screen to be resumed matching Minecraft.
Then I try just 'screen -r' and I get the response "There is no screen to be resumed."

Also, I cannot connect to the Minecraft server from within the client. It just says "failed to connect to server: Disconnected".

Please help!

Do it without ngrok

Is there any way to host the server without ngrok? I mean heroku supports TCP, right? I couldn't imagine any paas having to rely on localhost tunneling to publicly access the app. The ping with ngrok isn't that good, it's like gaming with a VPN. Please try to find a way around ngrok.

java not found

So, when I deploy the Heroku app, ngrok starts fine, but the Minecraft server doesn't start. When I ran heroku logs, I noticed that when the server tried to start, the app returned that the java command was not found. It's worked for me in the past, but now it seems like java doesn't install for some reason.

[MC] - Version (1.16.*)

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).

Failed to log in

So I did all the commands and I also added requirements.txt because it would not work without it but Minecraft told me that the server is currently down for maintenance. This is the closest that I got for a Minecraft server in Heroku and I don't know what to do for it to work. There are a few weird things that I noticed.

  1. cp: cannot create regular file '/app/tmp/cache/.heroku/requirements.txt': No such file or directory
    I think this has to do with requirements.txt but I don't know how to fix it and if it's the cause of the problem.
  2. [18:38:43] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2118ms or 42 ticks behind
    Apparently it's lagging but I'm not surprised. I just don't know if it's the cause of the problem.

server.properties problem :(

I do not know how to edit that server.properties
i did clone my app using heroku git:clone and then my app name etc but it was empty then i made server.properties in it
and placed online false and it worked for first time (im not sure but build was successful i think) but it did never work again build failed saying something like $ git push heroku master Enumerating objects: 3, done. Counting objects: 100% (3/3), done. Writing objects: 100% (3/3), 241 bytes | 80.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 remote: Compressing source files... done. remote: Building source: remote: remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to minecraft-server-1250. remote: To https://git.heroku.com/minecraft-server-1250.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/minecraft-server-1250.git'
pls help

requirements.txt

Hi. I saw an error or warning (i dont know) and i was wondering if it is me or not.
cp: cannot create regular file '/app/tmp/cache/.heroku/requirements.txt': No such file or directory

Disconneced

Wehen ever I try to connect Minecraft says Disconnected.
This are the log's when I try to connect:
2020-06-24T10:25:16.340131+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg="dial private connection" id=69597bea610b typ=proxy addr=localhost:25566 err="dial tcp 127.0.0.1:25566: connect: connection refused" 2020-06-24T10:25:16.340249+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=warn msg="failed to open private leg" id=69597bea610b typ=proxy privaddr=localhost:25566 err="dial tcp 127.0.0.1:25566: connect: connection refused" 2020-06-24T10:25:16.340251+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg=close id=c5a4438cd862 type=proxy sess=dd88c36e18bb330c308b40a9e7adf4c8 err=nil 2020-06-24T10:25:16.340252+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg=close id=69597bea610b typ=proxy err=nil 2020-06-24T10:25:16.340385+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg=close id=c5a4438cd862 type=proxy sess=dd88c36e18bb330c308b40a9e7adf4c8 err=nil 2020-06-24T10:25:16.340386+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg=close id=69597bea610b typ=proxy err=nil 2020-06-24T10:25:16.340474+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg=close id=c5a4438cd862 type=proxy sess=dd88c36e18bb330c308b40a9e7adf4c8 err=nil 2020-06-24T10:25:16.340527+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg=close id=69597bea610b typ=proxy err=nil 2020-06-24T10:25:16.340609+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg=close id=c5a4438cd862 type=proxy sess=dd88c36e18bb330c308b40a9e7adf4c8 err=nil 2020-06-24T10:25:16.340657+00:00 app[web.1]: t=2020-06-24T10:25:16+0000 lvl=dbug msg=close id=69597bea610b typ=proxy err=nil

Can enywhone help me?

**Sorry for my bad Englisch. xD

Minecraft 1.14.4

Hi.
I wanted Minecraft to be in 1.14.4 and it even says in the terminal that it installed 1.14.4 but when i check its telling me its 1.14.3. Does that really matter and if yes how should i fix it?

Modding support

Does this buildpack support mods, if so, how would you integrate them?

Can't connect to server

I try to connect to my server but Minecraft was not found my server.
when I run command $ heroku open the web show following message.
Minecraft Server IP: 0.tcp.ngrok.io:< proxy >. Please wait at least a minute before joining the server.

This is my Log:

2020-01-22T02:28:21.404668+00:00 app[web.1]: world/data/
2020-01-22T02:28:21.404717+00:00 app[web.1]: world/data/villages_end.dat
2020-01-22T02:28:21.404767+00:00 app[web.1]: world/data/villages.dat
2020-01-22T02:28:21.404808+00:00 app[web.1]: world/data/villages_nether.dat
2020-01-22T02:28:21.404850+00:00 app[web.1]: world_nether/
2020-01-22T02:28:21.404899+00:00 app[web.1]: world_nether/session.lock
2020-01-22T02:28:21.404943+00:00 app[web.1]: world_nether/playerdata/
2020-01-22T02:28:21.404980+00:00 app[web.1]: world_nether/uid.dat
2020-01-22T02:28:21.405030+00:00 app[web.1]: world_nether/DIM-1/
2020-01-22T02:28:21.405063+00:00 app[web.1]: world_nether/DIM-1/region/
2020-01-22T02:28:21.405100+00:00 app[web.1]: world_nether/DIM-1/region/r.0.0.mca
2020-01-22T02:28:21.405175+00:00 app[web.1]: world_nether/DIM-1/region/r.0.-1.mca
2020-01-22T02:28:21.405248+00:00 app[web.1]: world_nether/DIM-1/region/r.-1.0.mca
2020-01-22T02:28:21.405313+00:00 app[web.1]: world_nether/DIM-1/region/r.-1.-1.mca
2020-01-22T02:28:21.405378+00:00 app[web.1]: world_nether/data/
2020-01-22T02:28:21.405438+00:00 app[web.1]: world_the_end/
2020-01-22T02:28:21.405497+00:00 app[web.1]: world_the_end/session.lock
2020-01-22T02:28:21.405552+00:00 app[web.1]: world_the_end/playerdata/
2020-01-22T02:28:21.405597+00:00 app[web.1]: world_the_end/DIM1/
2020-01-22T02:28:21.405649+00:00 app[web.1]: world_the_end/DIM1/region/
2020-01-22T02:28:21.405694+00:00 app[web.1]: world_the_end/DIM1/region/r.0.0.mca
2020-01-22T02:28:21.405763+00:00 app[web.1]: world_the_end/DIM1/region/r.0.-1.mca
2020-01-22T02:28:21.405829+00:00 app[web.1]: world_the_end/DIM1/region/r.-1.0.mca
2020-01-22T02:28:21.405888+00:00 app[web.1]: world_the_end/DIM1/region/r.-1.-1.mca
2020-01-22T02:28:21.405954+00:00 app[web.1]: world_the_end/uid.dat
2020-01-22T02:28:21.406024+00:00 app[web.1]: world_the_end/data/
2020-01-22T02:28:21.406069+00:00 app[web.1]: plugins/
2020-01-22T02:28:21.410491+00:00 app[web.1]: Starting: minecraft 25566
2020-01-22T02:28:22.445104+00:00 app[web.1]: Tailing log
2020-01-22T02:28:22.446514+00:00 app[web.1]: Error: Invalid or corrupt jarfile minecraft.jar
2020-01-22T02:28:22.605453+00:00 app[web.1]: [2020-01-22 02:28:22] INFO  WEBrick 1.4.2
2020-01-22T02:28:22.605463+00:00 app[web.1]: [2020-01-22 02:28:22] INFO  ruby 2.5.1 (2018-03-29) [x86_64-linux-gnu]
2020-01-22T02:28:22.605714+00:00 app[web.1]: [2020-01-22 02:28:22] INFO  WEBrick::HTTPServer#start: pid=175 port=54982
2020-01-22T02:28:22.897891+00:00 heroku[web.1]: State changed from starting to up
2020-01-22T02:28:23.764149+00:00 app[web.1]: (erb):2: warning: IO#lines is deprecated; use #each_line instead
2020-01-22T02:28:23.764500+00:00 app[web.1]: 10.183.68.6 - - [22/Jan/2020:02:28:23 UTC] "GET / HTTP/1.1" 200 127
2020-01-22T02:28:23.764530+00:00 app[web.1]: - -> /
2020-01-22T02:28:23.765728+00:00 heroku[router]: at=info method=GET path="/" host=minecraft-ske.herokuapp.com request_id=dd853e7e-1d20-4ea6-97a2-fd1b4a25ca04 fwd="158.108.234.45" dyno=web.1 connect=1ms service=4ms status=200 bytes=296 protocol=https
2020-01-22T02:28:29.549676+00:00 app[web.1]: t=2020-01-22T02:28:29+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=12
2020-01-22T02:28:39.561327+00:00 app[web.1]: t=2020-01-22T02:28:39+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=11
2020-01-22T02:28:49.573345+00:00 app[web.1]: t=2020-01-22T02:28:49+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=11
2020-01-22T02:28:59.585363+00:00 app[web.1]: t=2020-01-22T02:28:59+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=11
2020-01-22T02:29:09.597585+00:00 app[web.1]: t=2020-01-22T02:29:09+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=12
2020-01-22T02:29:19.612120+00:00 app[web.1]: t=2020-01-22T02:29:19+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=14
2020-01-22T02:29:21.420162+00:00 app[web.1]: world/
2020-01-22T02:29:21.420187+00:00 app[web.1]: world/uid.dat
2020-01-22T02:29:21.420228+00:00 app[web.1]: world/playerdata/
2020-01-22T02:29:21.420256+00:00 app[web.1]: world/level.dat_old
2020-01-22T02:29:21.420311+00:00 app[web.1]: world/data/
2020-01-22T02:29:21.420354+00:00 app[web.1]: world/data/villages_end.dat
2020-01-22T02:29:21.420406+00:00 app[web.1]: world/data/villages_nether.dat
2020-01-22T02:29:21.420471+00:00 app[web.1]: world/data/villages.dat
2020-01-22T02:29:21.420515+00:00 app[web.1]: world/session.lock
2020-01-22T02:29:21.420569+00:00 app[web.1]: world/level.dat
2020-01-22T02:29:21.420642+00:00 app[web.1]: world/region/
2020-01-22T02:29:21.420684+00:00 app[web.1]: world/region/r.0.-1.mca
2020-01-22T02:29:21.424900+00:00 app[web.1]: world/region/r.-1.-1.mca
2020-01-22T02:29:21.428524+00:00 app[web.1]: world/region/r.-1.0.mca
2020-01-22T02:29:21.430329+00:00 app[web.1]: world/region/r.0.0.mca
2020-01-22T02:29:21.431937+00:00 app[web.1]: world/datapacks/
2020-01-22T02:29:21.431983+00:00 app[web.1]: world/datapacks/bukkit/
2020-01-22T02:29:21.432010+00:00 app[web.1]: world/datapacks/bukkit/pack.mcmeta
2020-01-22T02:29:21.432081+00:00 app[web.1]: world_nether/
2020-01-22T02:29:21.432104+00:00 app[web.1]: world_nether/uid.dat
2020-01-22T02:29:21.432151+00:00 app[web.1]: world_nether/playerdata/
2020-01-22T02:29:21.432188+00:00 app[web.1]: world_nether/data/
2020-01-22T02:29:21.432215+00:00 app[web.1]: world_nether/session.lock
2020-01-22T02:29:21.432257+00:00 app[web.1]: world_nether/DIM-1/
2020-01-22T02:29:21.432292+00:00 app[web.1]: world_nether/DIM-1/region/
2020-01-22T02:29:21.432315+00:00 app[web.1]: world_nether/DIM-1/region/r.0.-1.mca
2020-01-22T02:29:21.432595+00:00 app[web.1]: world_nether/DIM-1/region/r.-1.-1.mca
2020-01-22T02:29:21.432631+00:00 app[web.1]: world_nether/DIM-1/region/r.-1.0.mca
2020-01-22T02:29:21.432672+00:00 app[web.1]: world_nether/DIM-1/region/r.0.0.mca
2020-01-22T02:29:21.433614+00:00 app[web.1]: world_the_end/
2020-01-22T02:29:21.433644+00:00 app[web.1]: world_the_end/uid.dat
2020-01-22T02:29:21.433703+00:00 app[web.1]: world_the_end/playerdata/
2020-01-22T02:29:21.433760+00:00 app[web.1]: world_the_end/data/
2020-01-22T02:29:21.433803+00:00 app[web.1]: world_the_end/session.lock
2020-01-22T02:29:21.433863+00:00 app[web.1]: world_the_end/DIM1/
2020-01-22T02:29:21.433920+00:00 app[web.1]: world_the_end/DIM1/region/
2020-01-22T02:29:21.433960+00:00 app[web.1]: world_the_end/DIM1/region/r.0.-1.mca
2020-01-22T02:29:21.434018+00:00 app[web.1]: world_the_end/DIM1/region/r.-1.-1.mca
2020-01-22T02:29:21.434059+00:00 app[web.1]: world_the_end/DIM1/region/r.-1.0.mca
2020-01-22T02:29:21.434677+00:00 app[web.1]: world_the_end/DIM1/region/r.0.0.mca
2020-01-22T02:29:21.434758+00:00 app[web.1]: plugins/
2020-01-22T02:29:23.672921+00:00 app[web.1]: > Uploading "/app/backup.tar.gz" to "/backup.tar.gz"... DONE
2020-01-22T02:29:29.626790+00:00 app[web.1]: t=2020-01-22T02:29:29+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=14
2020-01-22T02:29:39.638593+00:00 app[web.1]: t=2020-01-22T02:29:39+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=11
2020-01-22T02:29:49.650629+00:00 app[web.1]: t=2020-01-22T02:29:49+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=11
2020-01-22T02:29:59.663068+00:00 app[web.1]: t=2020-01-22T02:29:59+0000 lvl=dbug msg="heartbeat received" obj=csess id=43b1db5dd21f clientid=477b33c92dbbfe40655f928ed665eafa latency_ms=12
2020-01-22T02:30:00.763265+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg="dial private connection" id=7cd650d05dc9 typ=proxy addr=localhost:25566 err="dial tcp 127.0.0.1:25566: connect: connection refused"
2020-01-22T02:30:00.763322+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=warn msg="failed to open private leg" id=7cd650d05dc9 typ=proxy privaddr=localhost:25566 err="dial tcp 127.0.0.1:25566: connect: connection refused"
2020-01-22T02:30:00.763329+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg=close id=fc52e1d14018 type=proxy sess=477b33c92dbbfe40655f928ed665eafa err=nil
2020-01-22T02:30:00.763363+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg=close id=7cd650d05dc9 typ=proxy err=nil
2020-01-22T02:30:00.763475+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg=close id=fc52e1d14018 type=proxy sess=477b33c92dbbfe40655f928ed665eafa err=nil
2020-01-22T02:30:00.763478+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg=close id=7cd650d05dc9 typ=proxy err=nil
2020-01-22T02:30:00.763578+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg=close id=fc52e1d14018 type=proxy sess=477b33c92dbbfe40655f928ed665eafa err=nil
2020-01-22T02:30:00.763581+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg=close id=7cd650d05dc9 typ=proxy err=nil
2020-01-22T02:30:00.763698+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg=close id=fc52e1d14018 type=proxy sess=477b33c92dbbfe40655f928ed665eafa err=nil
2020-01-22T02:30:00.763746+00:00 app[web.1]: t=2020-01-22T02:30:00+0000 lvl=dbug msg=close id=7cd650d05dc9 typ=proxy err=nil

s3cmd: command not found - Sync not working

2020-01-30T07:48:55.631522+00:00 app[web.1]: Starting sync...
2020-01-30T07:48:55.639274+00:00 app[web.1]: bin/sync: line 14: s3cmd: command not found
2020-01-30T07:48:55.643231+00:00 app[web.1]: Starting: minecraft 25566

It appears for some reason the s3cmd pip install isn't running. using ps:exec i find that the command doesn't exist either, but python does.

Is pip install supposed to be called upon build?

`git push heroku master` fails. App not compatible with buildpack

$ touch server.properties
$ nano server.properties
$ git commit -am "Add server.properties"
$ git push heroku master
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 4 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (10/10), 1.33 KiB | 151.00 KiB/s, done.
Total 10 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> JVM Common app detected
remote: -----> Installing JDK 1.8... done
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku-community/inline.tgz
remote:        /app/tmp/buildpacks/eccc0d72a1faa7580f578cac5edf2ef534c35e6eac395c339e8417c22adc9d9d994cc28d018f5b9576e46606f2cd45ab73c1b006df82ae9cbdedb44d49e9b14b/bin/detect: 3: exec: /tmp/build_7c5c0cc2e55f2be5e498bbc2bc799ff1/bin/detect: not found
remote:
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to mcvanilla.
remote:
To https://git.heroku.com/mcvanilla.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/mcvanilla.git'

I believe this is related to #33 and possibly can fix #32 ?

Github problem

I only have the eula.txt and server.properties file.

-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
       More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
 !     Push failed

Problem with pushing to heroku master: App not compatible with buildpack

Counting objects: 3, done.
Writing objects: 100% (3/3), 225 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to floating-basin-28083.
remote:
To https://git.heroku.com/floating-basin-28083.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/floating-basin-28083.git'

[Update!!] IT DOES! ---- Doesn't work anymore with version 1.11

Hi!

Thanks a lot it use to work perfectly! Now that minecraft 1.11 has been released however, it doesn't work anymore. I can't find how to update my server - tried to change the MINECRAFT_VERSION to 1.11 but it seems the latest available is 1.10.3
Could you please let me know where can I upload the 1.11 one so it can find it? I would be very grateful!

Cheers,
Fabien

Can not connect to server from Minecraft Java Edition

After following the instructions provided by the README I was not able to connect to the server from Minecraft because of a Timeout.

If I try the url0.tcp.ngrok.io:16299 I can't connect at all. If I'm using ngrok.io:16299 Minecraft tries to connect but returns a Timeout error.

Thanks for your support and help.

Edit server.properties

How can I edit the server.properties files? I tried to deploy it with github but it says the python buildpack is not compatible with the app. I just want to edit the server.properties file.

Connection refused: "Failed to open private leg"

After following the readme and failing to connect to the server with my Minecraft client, I get these lines in the heroku logs:

2021-03-08T12:32:49.316720+00:00 app[web.1]: t=2021-03-08T12:32:49+0000 lvl=dbug msg="dial private connection" id=d1e3687b01aa typ=proxy addr=localhost:25566 err="dial tcp 127.0.0.1:25566: connect: connection refused"
2021-03-08T12:32:49.316772+00:00 app[web.1]: t=2021-03-08T12:32:49+0000 lvl=warn msg="failed to open private leg" id=d1e3687b01aa typ=proxy privaddr=localhost:25566 err="dial tcp 127.0.0.1:25566: connect: connection refused"
2021-03-08T12:32:49.316858+00:00 app[web.1]: t=2021-03-08T12:32:49+0000 lvl=dbug msg=close id=3207d92e2c99 type=proxy sess=3f29ef8c82de6a2d9cba6cbbc97d5aee err=nil

Dropbox sync not working

Hey so I wake up and see my dyno restarted but nothing have been save with dropbox please fix it

App Crash when map is greater than 100Mb

When the map size is greater than 100Mb, the app shuts down and the heroku log shows this message:
2016-07-27T14:10:31.512591+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

Java on Heroku Dynos?

How does this buildpack end up getting java to be available on the dyno?

I get this error after setting up and deploying:

2017-06-02T22:08:53.455874+00:00 app[web.1]: bin/minecraft: line 44: java: command not found

Notes:

  • ngrok stuff all seems to be working great~
  • the only buildpack on this repo is the default one https://github.com/kr/heroku-buildpack-inline.git

My server doesn't start !

2021-03-23T18:02:17.882604+00:00 heroku[web.1]: State changed from up to down
2021-03-23T18:02:17.897907+00:00 heroku[web.1]: Idling because quota is exhausted
2021-03-23T18:02:17.000000+00:00 app[api]: Build succeeded
2021-03-23T18:02:18.797007+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2021-03-23T18:02:18.972954+00:00 heroku[web.1]: Process exited with status 143
2021-03-23T18:02:18.901699+00:00 app[web.1]: [2021-03-23 18:02:18] FATAL SignalException: SIGTERM
2021-03-23T18:02:18.901706+00:00 app[web.1]: 	/usr/lib/ruby/2.7.0/webrick/server.rb:170:in `select'
2021-03-23T18:02:18.901706+00:00 app[web.1]: 	/usr/lib/ruby/2.7.0/webrick/server.rb:170:in `block in start'
2021-03-23T18:02:18.901707+00:00 app[web.1]: 	/usr/lib/ruby/2.7.0/webrick/server.rb:32:in `start'
2021-03-23T18:02:18.901707+00:00 app[web.1]: 	/usr/lib/ruby/2.7.0/webrick/server.rb:157:in `start'
2021-03-23T18:02:18.901708+00:00 app[web.1]: 	-e:1:in `<main>'
2021-03-23T18:02:18.901836+00:00 app[web.1]: [2021-03-23 18:02:18] INFO  going to shutdown ...
2021-03-23T18:02:18.901938+00:00 app[web.1]: [2021-03-23 18:02:18] INFO  WEBrick::HTTPServer#start done.
2021-03-23T18:02:18.905921+00:00 app[web.1]: Terminated
2021-03-23T18:02:18.906149+00:00 app[web.1]: bin/minecraft: line 1: kill: (23) - No such process
2021-03-23T18:02:18.906154+00:00 app[web.1]: bin/minecraft: line 1: kill: (25) - No such process
2021-03-23T18:02:18.906155+00:00 app[web.1]: bin/minecraft: line 1: kill: (25) - No such process
2021-03-23T18:02:18.906157+00:00 app[web.1]: bin/minecraft: line 1: kill: (66) - No such process

This is my error, please help me !

minecraf

I want to host a server for minetest it is a game like minecraft on heroku
But idk how i saw that you cant easy hoat gameaetvers on heroku
Please explayn how thisworks so i can make my own thanks!

git push heroku master fails

Setting up a server for a school club, thanks so much for the tutorial! I just hit a simple issue, and I imagine there is a simple(ish) fix...

Everything goes well until the first git push heroku master. Then this happens:

$ heroku buildpacks:add heroku/jvm
$ heroku buildpacks:add jkutner/minecraft
$ heroku config:set NGROK_API_TOKEN="my_token"

$ git push heroku master
Counting objects: 3, done.
Writing objects: 100% (3/3), 229 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to secret-forest-58202.
remote: 
To https://git.heroku.com/secret-forest-58202.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/secret-forest-58202.git'

Thanks!

question

I can make a folder named plugins and insert plugins into it?

Issues when syncing to S3

I keep getting this error after following all the setup and S3 steps:

2019-07-15T22:55:38.148093+00:00 app[web.1]:   File "/app/.apt/usr/bin/s3cmd", line 60, in <module>
2019-07-15T22:55:38.148095+00:00 app[web.1]:     from distutils.spawn import find_executable
2019-07-15T22:55:38.148097+00:00 app[web.1]: ModuleNotFoundError: No module named 'distutils.spawn'

Submit server.properties to server, then 'Can't connect to server'.

I want to change online-mode to false.

In my git repository have this three file:
/eula.txt
/requirements.txt
/server.properties

And server.properties content like this:
(I just follow by server console -> ~/server.properties

#Minecraft server properties
#Mon Apr 20 14:07:49 UTC 2020
spawn-protection=16
max-tick-time=60000
query.port=25565
generator-settings=
force-gamemode=false
allow-nether=true
enforce-whitelist=false
gamemode=survival
broadcast-console-to-ops=true
enable-query=false
player-idle-timeout=0
difficulty=easy
broadcast-rcon-to-ops=true
spawn-monsters=true
op-permission-level=4
pvp=true
snooper-enabled=true
level-type=default
hardcore=false
enable-command-block=false
network-compression-threshold=256
max-players=20
max-world-size=29999984
resource-pack-sha1=
rcon.port=25575
server-port=25566
server-ip=
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
rcon.password=
generate-structures=true
online-mode=false
max-build-height=256
level-seed=
prevent-proxy-connections=false
use-native-transport=true
motd=A Minecraft Server
enable-rcon=false

Minecraft version 1.14.3
In the minecraft server list of my server column, it show 'Can't connect to server'.

Heroku server log:

app[web.1]: t=2020-04-20T15:18:12+0000 lvl=dbug msg="dial private connection" id=1bbcc9d547e2 typ=proxy addr=localhost:25566 err="dial tcp 127.0.0.1:25566: connect: connection refused"
app[web.1]: t=2020-04-20T15:18:12+0000 lvl=warn msg="failed to open private leg" id=1bbcc9d547e2 typ=proxy privaddr=localhost:25566 err="dial tcp 127.0.0.1:25566: connect: connection refused"

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.