ZacharyDuBois / Fluid-MC-Stats

A web interface for the Stats plugin.
Other
5 stars 5 forks source link

Server always shows offline #20

Closed sshadow closed 9 years ago

sshadow commented 9 years ago

In the newest release from BD our server is always showing offline. I have triple checked the config and all is good. Database functions and all that work great. Our server runs on a bungee network however I wouldn't think that would effect the online/offline status as it "usually" works elsewhere.

Thanks.

ZacharyDuBois commented 9 years ago

In your server.properties file, do you have query enabled and on the port you entered into the interface? Another thing that could cause the problem is the tmp/ directory on the web server needs to be writable.

sshadow commented 9 years ago

Configs are slightly different for bungee however yes query is enabled and on the correct port. The /tmp directory is also writable. I have us listed on a ton of topsites and they are all able to detect us as online as well as the app I use on my phone(just for information not trying to assign blame).

ZacharyDuBois commented 9 years ago

Hmm. That is interesting. In that /tmp directory, is there a file called query.json? If should contain something like the following:

{"favicon":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAWhElEQVR42o1ay1OVV7ZvYxIzinfQ\nmEFMmVRFK1rpnrSZIBrfjwb5vkMU0BsnvmOpFdAoMFGrEJXzwKruDIweSHQi4CRg5Rp04CMdeRzg\ngJoY39ELGHFgHCnWt\/Zdv7X2\/iC3KudYtf+BVWv91u+x9l\/Mily8Vblm4xyzay5VLzB1S8zRpXSy\ngNo882NkpN1\/0u4PdkRudvl9XX5Xyr\/U4\/9Pj9\/c63+T9r\/q+yTev77qp8oN12MlN78uuN00++7Z\n6ff7Jg08fP3hs1eGzIQ7NPEqTeowky+Yd8\/StNP0t5Pmo3oz60szP2FK4qYsbuIxqo+abw+ZngNm\neD9RjQn2DFNFrylvpe1J81ncrP+C1qymkgVm5az\/9\/7iCphlNs42u+aZ6oXm8BL6apk5mW++9+g\/\nkReX\/aeX\/YGOyI0uv78rkkr5F1NcgCcFeFxA7Mq6ymsVG36JF9\/8Ov9WMxcw435\/zuDD1x4+Hz9I\nE+6YN6+anE7z9gWactZMbTVcwMx6k\/ulmXfYFCdMeczEag0X0HrQ9B7kAkxQE5h9j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ijGCH82EoHSCXqpYCdJtsazTWb2FKCiaku\n9MQ2Xn+iRIYRQiphHVm68ESvtZT4LyRHvnz5MydXSnhi\/fSnd2KbjaqcFh5AAXEKv5xZNXqAPTGS\nOfYDBkyc1BsZmLj0pYhsAfsBAoihhejHyAt1ZHrg6PJSYbTITKxHvn4rJVYqD8i3y1BO65FPw11k\no6ftt8uQicujZP\/McQE12gGJFq2hSRoZIcomJeyfOfn4utgZGlGj7UXy2cMe+eS3CpK55l5PL\/W4\nUoaphA13++VSP2Id2VXcyN52wZbE64QrZR3idcUADhyH7JczrNF9CmJ4YrIFZBkhzYXmyq\/FJfhu\ngx9b4gdw4NBkTmIV+XImph4fX4+klcgqoUbx6a9Z78Q5ksyN0xHCr0WaLNGiBlsf1Y\/ZQppOi5iz\nsUpNoCAGBpSJrZyen\/nnrnSgZpEJv9tAjdqvBnrg4DWqljL8uXuUPbH8lYCUkHhdL\/U6QuPEUsoa\nlXC3bVTM4avBYSqJ0+fyYwuOrFY\/ezAT69djZ+q31MlXg4xXSkKs8rGM0EI98tlc6AcdoaI\/8oBs\nIfvhqch9+rM8gFRCxNzYzx5vhb8WT4\/5M2fFnD10t9badNp5YsQqZrv7sfWy8XoNYhX7W0XvA\/pb\nRWOVbg\/ZqEaLvIWkAxJsVYoWqg+\/GsgIOTktW2jyhTFy2pp6ZmJJ5qLEYg4F1IAHEGztHYapx6\/F\nZDhCVJzxvxBhjc51WmipHvmMZqM6Qilsoa7uCEw9iMw\/gVgFH1\/xaxEY0AKghZSJ5UIzmgtNOYds\n9EPdQvbEpLFK+NVAicz+lQisH7BElvFSX+JuZO7MqhjQLYR4vSO0lHpiQgHH9fO3+zuNI5\/7NzrJ\nfj3GZw8G8VuaTp9VMadfDdwWcmIOlvKgfL+vNgbfbdLowLZj9tD9J9\/v\/w+73woYx2cHtQAAAABJ\nRU5ErkJggg==","ping":101,"version":"Spigot 1.8","players":0,"maxplayers":10,"motd":"Mini Minecraft"}

If there isn't, that would lead me to assume that php5-json isn't installed. It could be something else. Could you tell me what web server and if you have php5-json?

sshadow commented 9 years ago

The file is not there. The json module is enabled and seems to be working as I think that the new phpBB extension system relies on it or at least a few of the extensions I use do. They are able to create the .json files they need. Here are a few details and versions.

Apache version 2.2.15 PHP Version 5.4.16

The installation can be found here if your curious. http://mcempire.net/forum/stats/

ZacharyDuBois commented 9 years ago

Can you add these lines to inc/status-cache.php after the two include_once (Remove them when you are done with this).

var_dump(APPPATH);
var_dump(is_writable(APPPATH . 'tmp/'));
var_dump(extension_loaded("json"));
die();

The top of the file should look like this when you are done:

<?php
/**
 * status-cache.php
 * Created for Fluid-MC-Stats.
 */

include_once APPPATH . 'config.php';
include_once APPPATH . 'inc/status.php';
var_dump(APPPATH);
var_dump(is_writable(APPPATH . 'tmp/'));
var_dump(extension_loaded("json"));
die();

After you do this, load the main page of your Fluid MC Stats installation, you should see something like this: screen shot 2014-12-31 at 2 40 34 pm

Paste here what the output of that is. Thanks!

sshadow commented 9 years ago
string(39) "/home/mcempire/public_html/forum/stats/" bool(true)
ZacharyDuBois commented 9 years ago

Hmm, there should be two bool(true)s Are you sure you copied all the lines? But now we know APPPATH and tmp/ is writable to PHP.

sshadow commented 9 years ago

Oops my bad.

string(39) "/home/mcempire/public_html/forum/stats/" bool(true) bool(true) 
ZacharyDuBois commented 9 years ago

I just entered the IP you have listed on your site into the demo installation, it is also reporting offline and is not having errors. But it is not your Minecraft server because it is responding to DInnerbone's query checker. Let me look into this some more.

ZacharyDuBois commented 9 years ago

Hmm, I was just able to use it on another bungee server. So it isn't that. Are you running anything that could be restricting the server query or such? I am clueless right now. I am not very familiar with the Minecraft server query protocol. That is why we use a library for it and that isn't even detecting your server. Sec, I will look a bit more.

ZacharyDuBois commented 9 years ago

In your Bungee server's config.yml can you make sure query_enabled is set to true and that query_port is set to 25565. I am out of ideas.

If that doesn't fix it, I will look deeper in after New Years. Hope you enjoy 2015 :)

EDIT: Yeah, as you can see in the demo, it appears offline too.

sshadow commented 9 years ago

Yep they are both set. I will see if I can find some sort of standalone script to test. I know I have seen a few out there in the past. That way we can see for sure if it's just in my hosting environment.

sshadow commented 9 years ago

Oh and hope you have a great 2015 as well. Thanks for the help :)

ZacharyDuBois commented 9 years ago

Oh, if you want to try with the library we use with Fluid MC Stats, we use FunnyItsElmo/PHP-Minecraft-Server-Status-Query

If you do figure this out before I do, please share so it is included in the next release :)

sshadow commented 9 years ago

Ok I have uploaded your example here and configured it and it's not working http://mcempire.net/forum/serverping/example.php - Will continue to fiddle with it to see if I can get it to detect our server.

I uploaded another I found here and it seems to be working http://mcempire.net/forum/serverping3/view.php - The github link is on that page.

Edit - After looking at my bungee logs I see this when using the first script to ping it.

06:19:48 [INFO] [/107.178.96.41:49220] <-> InitialHandler has connected
06:19:48 [WARNING] [/107.178.96.41:49220] <-> InitialHandler - IOException: Connection reset by peer

It reminds me of when a client lags out or is closed on it's end. Could the script be giving up to fast for some reason. Just guesses on my end as I know nothing about programming. Also to note when using the second script I linked to I see nothing in bungee about a connection.

ZacharyDuBois commented 9 years ago

Interesting. I luckily with how I wrote the query cache script, this is almost as simple as a drop and replace. But maybe I could open an issue to see if the current library could be fixed. I will do that, and if I don't get a response in a few days, I will go on and use the other one. The problem with the other one is, it does not receive the server icon.

ZacharyDuBois commented 9 years ago

@sshadow, I am going to give another day or two for a response on the issue. If no reply, I switch it over to the one you linked :)

sshadow commented 9 years ago

Ok thanks for the update :)

ZacharyDuBois commented 9 years ago

@sshadow, I've gotten no response from him. I will make way with the new script :)

ZacharyDuBois commented 9 years ago

I wouldn't say it is ready for use right now as I have not heavily tested it yet. But it has been added :)

ZacharyDuBois commented 9 years ago

@sshadow, I did fix it and I randomly went on a server list and tested it with 25 servers at random. I did run into an issue described in #30 and added a workaround. Test out the master branch and let me know how it goes. Also, when you do that and everything works (or doesn't), post back here with a copy of the debug info (Set $debug to true in the config). Thanks!

sshadow commented 9 years ago

Grabbing now to test. Sorry for the delay had a "fun" DDOS issue to work out :(

sshadow commented 9 years ago

Ok looks good. My debug info is below. Also I have a theory on why the query may not work on some servers. From the file it looks like it works on the UDP protocol. This worked before my "fun" experience I referenced above however now it is giving me errors as well. The change was me switching over to a DDOS protected IP however it only allows TCP from what I understand. Regardless atleast it shows us online now :) Thanks for that!

{
    "serverInfo": {
        "phpVersion": "5.4.16",
        "webServer": "Apache\/2.2.15",
        "os": "Linux",
        "serverName": "mcempire.net",
        "requestURI": "\/forum\/stats\/",
        "jsonEnabled": true,
        "mysqliEnabled": true
    },
    "configData": {
        "serverIP": "mc.mcempire.net",
        "serverPort": "25565",
        "cdnURI": "",
        "baseURI": "forum\/stats\/",
        "avatarURI": "https:\/\/minotar.net\/avatar\/",
        "customLinks": {
            "MCEmpire Forum": "http:\/\/mcempire.net\/forum\/"
        },
        "topStatCalType": "",
        "numberOfTopPlayer": "",
        "hideLimitedWarning": false
    },
    "envInfo": {
        "APPPATH": "\/home\/mcempire\/public_html\/forum\/stats\/",
        "LINKBASE": "\/forum\/stats\/",
        "fmcsVersion": "MASTER"
    },
    "fileInfo": {
        "tmpDirExits": true,
        "tmpDirWrite": true,
        "configExits": true,
        "configWrite": true,
        "installExists": false,
        "queryCacheFileExists": true,
        "queryCacheFileWrite": true
    },
    "otherInfo": {
        "queryData": {
            "mcQuery": {
                "getInfo": false,
                "getPlayers": false
            },
            "mcPing": {
                "query": {
                    "version": {
                        "name": "BungeeCord 1.8",
                        "protocol": 4
                    },
                    "players": {
                        "max": 500,
                        "online": 2
                    },
                    "description": "\u00a7dMCEmpire Resurrected",
                    "modinfo": {
                        "type": "FML",
                        "modList": [

                        ]
                    }
                }
            },
            "pingTimes": {
                "queryPing": 2050,
                "pingPing": 233,
                "avgPing": 1142
            },
            "lastUpdate": "2015-01-13 06:41:36"
        }
    }
}
ZacharyDuBois commented 9 years ago

Eh. I have no idea why people DDoS but it happens. Great to here you got this sorted out. :) I will test that theory later today. If that's the case, I can update the docs with that information :D