ECONNREFUSED error

info: [WEBUI] mc connected from 10.0.1.7
info: [WEBUI] Downloading official profiles.
info: [BurgerRealms] mc (10.0.1.7) joined server namespace
info: [BurgerRealms] transmittting existing file contents: logs/latest.log (31371 bytes)
info: [BurgerRealms] 10.0.1.7 issued command : “modify_sc”
info: [BurgerRealms] received request “modify_sc”
info: [BurgerRealms] 10.0.1.7 issued command : “start”
info: [BurgerRealms] received request “start”
error: { [Error: connect ECONNREFUSED]
code: ‘ECONNREFUSED’,
errno: ‘ECONNREFUSED’,
syscall: ‘connect’ }
error: { [Error: connect ECONNREFUSED]
code: ‘ECONNREFUSED’,
errno: ‘ECONNREFUSED’,
syscall: ‘connect’ }

So after changing my Java settings Change Runnable Jar: to point to spigot.jar, I started the server.
I am getting the above error string.

The server DOES appear to be up and accepting connections though. The number of players does NOT seem to update in the UI.

This means that the minecraft server isn’t responding to the ping request from the web-ui. This happens every now and then with various old versions of spigot, bukkit, and forge. It is non-critical, but topically annoying. If you can let me know what minecraft server you’re running (specifically what version, and maybe a URL) I can see what ping protocol that is running and try to get that fixed.

version git-Spigot-6d0ae89-a03743b (MC: 1.8.7) (Implementing API version 1.8.7-R0.1-SNAPSHOT)

mc.burgerrealms.com 25565

thanks

I installed1.8.8

Ok… getting the same thing with 1.8.8.

CraftBukkit version git-Spigot-fdc1440-53fac9f (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)

That is not old. Hopefully you can find the issue.
If there is anything else I can do to help, please let me know.
Thanks

Did you just download a normal jarfile from http://getspigot.org? Or did you build it yourself?

I basically want to make sure I’m testing against the same copy you are.

I followed the instructions according to the spigot site in which you use build tools to build the .jar file. https://www.spigotmc.org/threads/buildtools-updates-information.42865/

To make things even easier…I went ahead and used the spigot_server.jar from the http://getspigot.org site. That way you can test “apples to apples”.

[20:42:37] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-fdc1440-53fac9f (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)

This appears to be the same version number that I had built using build tools, but at least now you know it is not a ‘build’ issue with my jar.

I am still getting the same ECONNREFUSED error.

ECONNREFUSED is the error when MineOS tries to poll the server and the server doesn’t understand the ping request.

http://wiki.vg/Protocol_History#1.8

1.6.x
1.6.1: Protocol version is now 73. Packet 0xFA is sent after packet 0xFE with additional data
1.6: Protocol version is now 72. Changed Open Window packet, added two inventory types

However, according to this same page, chronologically the most recent updates (1.8+) seem to change the protocol version:

15w32a
Protocol Version is now 52
15w31a/b/c
Protocol Version is now 51

Can’t really tell why it would be 51,52, considering that that is a version used…back in 1.5.x.
Since almost all servers now are between 1.5.x and 1.8.x, servicing only protocol version 73 seemed to fit the bill just fine. vanilla 1.8.8 seems to work just fine, too…the only issue arising for your spigot/craftbukkit build.

I don’t really know what’s going on here, or why it seems like a regression in protocol, but I’ll hopefully be able to look at it soon.

Hey thanks for getting back to me on it. I appreciate all the hard work you do as a developer. I know it is sometimes a thankless effort, so hopefully I can mitigate that to some degree.

Thanks
Ed

Unable to reproduce this issue while trying out the same getspigot build:

[22:38:26] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-fdc1440-53fac9f (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)

I’m using it entirely without plugins, though. Are you using any?

Yes. Using many plugins.

drwxrwxr-x  6 mc mc    4096 Jul  9 12:19 ASkyBlock
-rw-rw-r--  1 mc mc  716857 Jul  2 23:03 askyblock.jar
drwxrwxr-x  4 mc mc    4096 Aug 14 21:45 Essentials
-rw-rw-r--  1 mc mc   14514 Jul  4 14:49 EssentialsAntiBuild.jar
-rw-rw-r--  1 mc mc   12833 Jul  4 14:49 EssentialsChat.jar
drwxrwxr-x  2 mc mc    4096 Jul  4 14:49 EssentialsGeoIP
-rw-rw-r--  1 mc mc  120209 Jul  4 14:49 EssentialsGeoIP.jar
-rw-rw-r--  1 mc mc  136362 Jul  4 14:49 EssentialsGroupManager.jar
-rw-rw-r--  1 mc mc 1034622 Jul  4 14:49 Essentials.jar
-rw-rw-r--  1 mc mc   19439 Jul  4 14:49 EssentialsProtect.jar
-rw-rw-r--  1 mc mc   16849 Jul  4 14:49 EssentialsSpawn.jar
-rw-rw-r--  1 mc mc  334881 Jul  4 14:49 EssentialsXMPP.jar.bak
-rw-rw-r--  1 mc mc  320686 Jul  4 14:49 Factions.jar
drwxrwxr-x  4 mc mc    4096 Jul  9 12:21 GroupManager
drwxrwxr-x  3 mc mc    4096 Jul  4 14:49 HolographicDisplays
-rw-rw-r--  1 mc mc  396633 Jul  4 14:49 HolographicDisplays.jar
drwxrwxr-x  2 mc mc    4096 Aug 15 17:29 MassiveCore
-rw-rw-r--  1 mc mc 1353976 Jul  4 14:49 MassiveCore.jar
drwxrwxr-x  3 mc mc    4096 Jul  4 14:49 Multiverse-Core
-rw-rw-r--  1 mc mc 1647033 Jul  4 14:49 Multiverse-Core-2.5.jar
drwxrwxr-x  2 mc mc    4096 Jul  5 21:30 Multiverse-Portals
-rw-rw-r--  1 mc mc  104703 Jan  4  2015 Multiverse-Portals.jar
drwxrwxr-x  3 mc mc    4096 Jul  9 15:23 PlotMe
-rw-rw-r--  1 mc mc  321253 Jul  9 15:18 PlotMe-Core.jar
-rw-rw-r--  1 mc mc   47316 Jul  4 14:49 PlotMe-DefaultGenerator.jar
drwxrwxr-x  2 mc mc    4096 Jul  4 14:49 PluginMetrics
drwxrwxr-x  2 mc mc    4096 Jul  4 14:49 RailDriver
-rw-rw-r--  1 mc mc   21775 Jul  4 14:49 RailDriver-0.5.jar
drwxrwxr-x  2 mc mc    4096 Jul  9 13:33 Updater
drwxrwxr-x  2 mc mc    4096 Jul  9 13:32 Vault
-rw-rw-r--  1 mc mc  295492 Jul  4 14:49 Vault.jar
drwxrwxr-x  5 mc mc    4096 Jul  9 12:21 WorldEdit
-rw-rw-r--  1 mc mc 1583804 Jul  4 14:49 WorldEdit.jar
-rw-rw-r--  1 mc mc  836253 Jul  4 14:49 WorldEdit.jar.bak
drwxrwxr-x  4 mc mc    4096 Jul  9 12:41 WorldGuard
-rw-rw-r--  1 mc mc  961570 Jul  4 14:49 worldguard.jar

Are you sure that the startup has finished?

yes i am sure it has

If you’d like to provide me personally with an archive of your server, it would make it easier for me to test this. As is, the standard, no-plugin spigot download works without issue. I do, of course, want to handle all cases–and most cases will involve plugins.

Perhaps like Forge servers, one of these plugins is modifying the self-reporting API version (and making it older than the 1.8.8 version that is expected). I’d need to reproduce the issue to fix it, and I’d be happy to do that with a known-failing copy of your server.

If you choose to, feel free to crop out the /world data (to save space/transmit time) and the spigot jar (to keep yourself on the legal side of things) and I can take a look at what’s going on.

Sure thing. I can zip the archive and strip out the items mentioned. How should I send it?

If all the world data is gone, it might be small enough to email, but if not, then if you have a dropbox or equivalent?

39 MB - I will locate a dropbox and post. I will email you the invite from Dropbox.

I put it in a .tar file.

Upload is complete.

If you have any issues retrieving via dropbox, let me know and I will email it to you directly.
Thanks

Hrm… Unable to reproduce:

http://imgur.com/FSUCNEb

Same 1/20 results from spigot_server.jar and craftbukkit_server.jar

Out of curiosity, if you clear out your MOTD, does it fix anything? It worked for me with the MOTD intact, but this was the solution for many forge servers in the past. Also, have you updated your webui to the most recent commit too? (you’re current if you’re on MineOS Turnkey)

Removed MOTD – no change
Running MineOS 1.2.2

Also did the following as root (via sudo):

cd /usr/games/minecraft
git fetch
git reset --hard origin/master
npm install --all

with one user logged in…still no update to players online count.

I also went ahead and downloaded the spigot_server.jar again from http://getspigot.org. Did a Stop/Start and joined the server…still no ping and no player count.

I did notice that I have to keep setting the “Change Runnable Jar:” to spigot_server.jar. Not sure if that matters.

Any chance I have some permissions wrong in the /usr/games/minecraft folder? Is node_modules supposed to be owned by root?

mc@linux:/usr/games/minecraft$ ls -la
total 208
drwxr-xr-x  7 root root  4096 Aug 18 19:57 .
drwxr-xr-x  3 root root  4096 Aug 14 08:18 ..
-rw-r--r--  1 root root  2841 Aug 14 08:18 auth.js
-rw-r--r--  1 root root  2814 Aug 18 19:57 generate-sslcert.sh
drwxr-xr-x  8 root root  4096 Aug 18 19:57 .git
-rw-r--r--  1 root root   483 Aug 14 08:18 .gitattributes
-rw-r--r--  1 root root   513 Aug 14 08:18 .gitignore
drwxr-xr-x  7 root root  4096 Aug 14 08:18 html
drwxr-xr-x  2 root root  4096 Aug 14 08:18 init
-rw-r--r--  1 root root 35147 Aug 14 08:18 LICENSE.md
-rw-r--r--  1 root root  4217 Aug 14 08:18 mineos_console.js
-rw-r--r--  1 root root 42580 Aug 14 08:18 mineos.js
drwxr-xr-x 54 mc   mc    4096 Aug 14 08:18 node_modules
-rw-r--r--  1 root root  1921 Aug 14 08:18 package.json
-rw-r--r--  1 root root  4076 Aug 14 08:18 README.md
-rw-r--r--  1 root root 53270 Aug 14 08:18 server.js
-rw-r--r--  1 root root   772 Aug 14 08:18 service.js
drwxr-xr-x  2 root root  4096 Aug 14 08:18 test
-rw-r--r--  1 root root  5852 Aug 14 08:18 webui.js