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

Read timed out and decryption errors #8

Closed
Lightwavers opened this issue Dec 3, 2015 · 13 comments
Closed

Read timed out and decryption errors #8

Lightwavers opened this issue Dec 3, 2015 · 13 comments

Comments

@Lightwavers
Copy link

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
Copy link
Owner

xmamo commented Dec 3, 2015

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
Copy link
Author

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
Copy link
Owner

xmamo commented Dec 5, 2015

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
Copy link
Author

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

@xmamo
Copy link
Owner

xmamo commented Dec 6, 2015

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
Copy link

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

@xmamo
Copy link
Owner

xmamo commented Apr 8, 2016

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

@destruc7i0n
Copy link

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
Copy link

Im also encountering this issue on latest version

@advocaite
Copy link

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
Copy link
Owner

xmamo commented May 13, 2016

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

@xmamo
Copy link
Owner

xmamo commented May 13, 2016

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
Copy link
Owner

xmamo commented Jul 10, 2016

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

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

4 participants