xmamo / VanillaVotifier

Votifier plugin, but for Minecraft vanilla!
https://mamo.dev/vanillavotifier
Other
17 stars 8 forks source link

Read timed out and decryption errors #8

Closed Lightwavers closed 8 years ago

Lightwavers commented 8 years ago

Hello, the votifier works well for me on one server list, but on any other it gives one of two errors. The first one just says:

104.200.31.26:48065 established a connection. Error while while decrypting client input! Perhaps the client has the wrong publ ic key? 104.200.31.26:48065 disconnected.

The site has the correct public key, and I have used gen-key-pair several times in case it's generating the wrong keys.

The other error I get is:

198.74.57.227:57933 established a connection. Unexpected exception while comunicating with client: java.net.SocketTimeoutExcep tion: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at co.virtualdragon.vanillaVotifier.impl.VanillaVotifierServer$1$1.run(V anillaVotifierServer.java:105) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

It will create this error many times in the command prompt, and then just give up.

xmamo commented 8 years ago

I may have a solution for the first one. Suppose you have the following public key:

-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhRro9dar2dh+h4QZ0+5N
4QhPcKgG2YoR2bO4KTsKJw1uN8VaDLnrksvz29pKZtLiRIkN7rchi62tYDQYTOyu
6NlhmRiC+Kd5IXMVfgJO1p9BTXm5b7whmYia7G83aMp0FJB02hw/DiBmybceJbc5
VZIi7946i1H4bpxW2dRxpuRqRuCwmbxs2c4E+otmZPiDPsHL6VhyYMbIgYlTjP3B
OOSrbhAinJ29EAIPOcVqFeyCC7DRL94fRvXSlvly8Wnquj+F9JhjVXKF0z/xKt6U
tavHXVKvZC5D743hjUD1H2UZvHw0mYti1F+caU8lsKyCyGIHXxAEulbBzmB6FJuy
nQIDAQAB
-----END PUBLIC KEY-----

On your Minecraft server list settings, try to set the public key as all the stuff between -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY-----, removing all new lines:

MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhRro9dar2dh+h4QZ0+5N4QhPcKgG2YoR2bO4KTsKJw1uN8VaDLnrksvz29pKZtLiRIkN7rchi62tYDQYTOyu6NlhmRiC+Kd5IXMVfgJO1p9BTXm5b7whmYia7G83aMp0FJB02hw/DiBmybceJbc5VZIi7946i1H4bpxW2dRxpuRqRuCwmbxs2c4E+otmZPiDPsHL6VhyYMbIgYlTjP3BOOSrbhAinJ29EAIPOcVqFeyCC7DRL94fRvXSlvly8Wnquj+F9JhjVXKF0z/xKt6UtavHXVKvZC5D743hjUD1H2UZvHw0mYti1F+caU8lsKyCyGIHXxAEulbBzmB6FJuynQIDAQAB

I'm not sure what the cause of the second error is. Could you please send me a complete log?

Lightwavers commented 8 years ago

Thanks, the wrong public key thing seems fixed now. :)

The second error is still going on though, and I thought the command line was the log, and copy pasted the error from it. No logs have generated in my Votifier folder though, where can I find them?

xmamo commented 8 years ago

VanillaVotifier doesn't support writing to a log file natively. However, if you're on Linux, you can achieve the same result with java -jar VanillaVotifier.jar | tee path.to.log.file.

Lightwavers commented 8 years ago

Oh, is there a command to do that on Windows?

xmamo commented 8 years ago

Not really. However I just released a new version which automatically logs everything to a log file :) Just send me the contents of that file and I'll see what the problem is [if the error is caused by a specific command, please tell me which it is too].

destruc7i0n commented 8 years ago

Hmm. The current build has the exact same timeout error. Anything you can do about it?

xmamo commented 8 years ago

Sorry for answering so late. Are you still encountering the issue? If yes, can you paste the whole log file?

destruc7i0n commented 8 years ago

Well I just downgraded, but from what I remember I got the same log file. I can't really run it again (as I have to keep the working one running) but I'll give one when I can.

advocaite commented 8 years ago

Im also encountering this issue on latest version

advocaite commented 8 years ago

seem only a issue on http://minecraft-server-list.com/ when ever i put it in whoel thing , just inbetween or remove the new lines it still says : 104.200.31.26:56971 established a connection. Error while while decrypting client input! Perhaps the client has the wrong public key?

xmamo commented 8 years ago

I've been working on a new release to enable advanced logging. It will be ready soon ;)

xmamo commented 8 years ago

Ok so I made a new release, which you can get here. Just start VanillaVotifier with java -jar VanillaVotifier.jar report-exceptions and let me know which exceptions you get.

xmamo commented 8 years ago

Due to inactivity, I'll close this report. If there are any more problems, fell free to reopen it :)