CORDIAL MINUET ENSEMBLE

??????

You are not logged in.

#1 2014-12-09 18:56:12

mzo
Member
Registered: 2014-12-09
Posts: 50

Denied by server?

Been playing for hours and seen this come up about maybe 5 times. Can't identify any specific cause, but it seems to kill the game, forcing me to leave.

Offline

#2 2014-12-09 23:03:40

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Sorry for the trouble!  This should never happen...

Looking up your account in the server logs, it looks like the most recent time that this happened was at 2014-12-09 17:42:48 GMT (adjust for your timezone), about 10 minutes ago.  From the log, it looks like maybe your client lost connection, because two of your messages never made it to the server.  By the time your move (in this case, your second column choice) came through, on your client's third retry, the game had already timed out.  Yes, the client enforces a timer on you (red number that shows up), but if you complete your move on time but your move doesn't make it through to the server, your client will retry after 16 seconds or so.  By that time, if you cut it close, the server has likely timed you out and the game has ended.  Your move is thus denied.

Do you recall seeing a red [!] box show up?  That means the client cannot connect to the server and is retrying.

Sadly, there's no way to prevent this from happening during times of lost connection.  I'll tweak the server a bit to loosen up the grace period though.  Still, it WILL happen sometimes.

I'm not sure how this should be messaged client-side.  DENIED BY SERVER is probably confusing here.  Maybe GAME ENDED instead?  Or CONNECTION LOST?

Offline

#3 2014-12-10 00:56:06

mzo
Member
Registered: 2014-12-09
Posts: 50

Re: Denied by server?

I saw red exclamations off and on quite a bit throughout my play time, usually lasting about 10 seconds or so. Knowing my setup here at home and the actual internet usage during the time I was playing, I don't see any reason why there would have been any trouble communicating to your server on my end. Not ruling that out as a possibility of course. Would be nice if there was a way to verify what was causing the issue. Hopefully I didn't lose out on any money from the timeouts, especially because of the rake wink

I think CONNECTION LOST or even CONNECTION TIMEOUT are better for being clear on what happened. DENIED BY SERVER makes it sound like i'm falling victim to some kind of misdirected anti-cheating algorithm.

Offline

#4 2014-12-10 12:45:46

..
Member
Registered: 2014-11-21
Posts: 259

Re: Denied by server?

If you timeout during a game you lose it, otherwise you could just pull the plug to avoid a loss.

I notice that the TCD and CM servers have adjacent IP addresses. A number of times over the last months the TCD server has stopped responding to me for long periods up to a couple minutes, while my internet connection seemed perfectly fine (though I do use wifi). Do you use an uptime monitoring service?

Offline

#5 2014-12-10 18:45:27

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Yes, I do have uptime monitoring.  There were some major outages over the past few months, but many weeks ago at this point.

In this case, though, the other player was actively waiting, sending "Is the move ready yet?" messages, which is what finally made the game time out (the server is driven by the opponent who is waiting).

Thus, the server wasn't down.  For some reason, MZO's messages didn't come through until it was too late.

MZO, I've never seen a red [!] in all of my testing of the live server (and I'm not on-site with the server or anything).  Wonder if other people can chime in here about their experience.

Offline

#6 2014-12-10 19:23:45

jere
Member
Registered: 2014-11-23
Posts: 298

Re: Denied by server?

I've gotten the Denied error 2-3 times (emailed you once) and I'm fairly certain I've seen the [!] several times too. At least once, I tried checking the forums while this was happening and wasn't receiving a response there. I'll try to keep a closer eye on it.


Canto Delirium: a Twitter bot for CM. Also check out my strategy guide!

Offline

#7 2014-12-10 19:26:23

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Yeah, I think THAT Denied error (where there's no red [!]) has been fixed server-side.

I think the web server did go down one time, briefly, in the past two weeks now that I think about it.

Offline

#8 2014-12-11 01:43:50

jere
Member
Registered: 2014-11-23
Posts: 298

Re: Denied by server?

Just got a denied by server while waiting for a game. I was browsing the internet while waiting, so I don't think it was a connection problem on my side.


Canto Delirium: a Twitter bot for CM. Also check out my strategy guide!

Offline

#9 2014-12-11 03:56:03

mzo
Member
Registered: 2014-12-09
Posts: 50

Re: Denied by server?

I had a lot of orange/red dots and occasional red ! as well as one Denied by server this morning sometime between 8-10am I think it was.

It's too bad you aren't on-site with the server as I'm over in Sacramento wink

Offline

#10 2014-12-11 16:16:29

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Yeah, it looks like there was some kind of database overload (too many connections) on the server this morning.

Maybe one transaction got hung, locking the tables and blocking other transactions, though I didn't get any deadlock messages.

In your case, Jere, it looks like a ton of your waiting_game_start requests got backlogged, and in the mean time, the flush cleared out your game as stale, and then after that, all of those wait_game_start requests came through (with some dropped, too, it seems), and the final one (the one your client was still waiting for a response from, that it had not abandoned) was denied.

I did get some connection overload messages, but they happened 10 minutes later, so I don't know what was going on.  Sadly, in my experience with PHP/MySQL, sometimes this kind of thing just happens.

Offline

#11 2015-01-01 00:07:51

mzo
Member
Registered: 2014-12-09
Posts: 50

Re: Denied by server?

Just got a denied by server a few min ago. It's the second time it's happened after winning with an all-in.

Offline

#12 2015-01-01 02:14:44

mzo
Member
Registered: 2014-12-09
Posts: 50

Re: Denied by server?

On the upside, both times I got my winnings fine.

Offline

#13 2015-01-01 03:57:22

Pox
Member
From: Canberra
Registered: 2014-12-26
Posts: 15
Website

Re: Denied by server?

I had this once a few days ago. If I remember correctly it was after an all-in win, and I received the payout.

Offline

#14 2015-01-01 04:32:13

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Did it seem to be timing out around that time (failing to connect to server)?  Like, red [!] showing up?  Or just DENIED unexpectedly?

Offline

#15 2015-01-01 06:15:06

mzo
Member
Registered: 2014-12-09
Posts: 50

Re: Denied by server?

Denied unexpectedly. I went all in and then they would go all in too and almost right away denied by server. I dont know if all in is part of it but both times it happened recently were exactly that way. Id get worried, hit leave and see that I left with my profit at least. I have a screenshot from the first time I think if that helps.

Offline

#16 2015-01-01 12:24:35

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Hmm... please send me your game recording right away next time it happens.  Also, if you're on windows, you could send me your stdout.txt.

Offline

#17 2015-01-13 00:48:19

Pilam69
Member
Registered: 2015-01-09
Posts: 6

Re: Denied by server?

Just had the same error.  E-mailed you the stdout.txt file to review.

Offline

#18 2015-01-13 01:40:42

jere
Member
Registered: 2014-11-23
Posts: 298

Re: Denied by server?

Saw this error on the site today: Error: Unable to connect to MySQL and select database. MySQL reported: Too many connections.

Around that time was getting long time [!]


Canto Delirium: a Twitter bot for CM. Also check out my strategy guide!

Offline

#19 2015-01-13 02:57:04

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Yeah, MySQL was hosed today on the server.  Affected The Castle Doctrine too around the same time.

Pilam's issue was a real bug and happened at a different time.

Offline

#20 2015-01-13 03:42:12

computermouth
Member
Registered: 2014-12-27
Posts: 134

Re: Denied by server?

Just out of curiosity, what happens to live games during such a hosing? Let's say I was in a second round pick and both players had already committed 10 chips.


Try Linux, get free. #!++ (CrunchbangPlusPlus) is a stable distribution based on Debian 8. Keep it fast, keep it pretty.

Offline

#21 2015-01-13 18:00:14

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Assuming that it lasts more than 60 seconds, whenever the database comes back, a flush will be triggered on the server, which will notice those games as timed out for both players, and whoever created the game gets kicked first, with the pot going to the other player.

This doesn't make too much sense, though, and I'll fix it to split the pot in that case.

There's also the chance that one player is able to connect again BEFORE the flush, and in that case, the request of that player will time the other player out, and the player that connected first will get the pot.

There's not a good way for the server to differentiate between this occurrence and the real deal where the other player has timed out.  You know, if we've heard from A recently, but not from B, and the deadline is up, we assume B timed out, and give the pot to A.

Offline

#22 2015-01-13 21:10:53

computermouth
Member
Registered: 2014-12-27
Posts: 134

Re: Denied by server?

I suppose that's just the way it has to be. Otherwise, false disconnects could be abused.


Try Linux, get free. #!++ (CrunchbangPlusPlus) is a stable distribution based on Debian 8. Keep it fast, keep it pretty.

Offline

#23 2015-01-13 22:25:55

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Pilam's issue has been fixed on the server.

Also changed it to return pots to both players if both time out together.

Offline

#24 2015-01-14 08:14:00

..
Member
Registered: 2014-11-21
Posts: 259

Re: Denied by server?

jasonrohrer wrote:

There's not a good way for the server to differentiate between this occurrence and the real deal where the other player has timed out.  You know, if we've heard from A recently, but not from B, and the deadline is up, we assume B timed out, and give the pot to A.

Are you saying that the flush might not happen immediately, and if so, it's possible for a player to reconnect after they should have timed out, but before the server does a flush and notices that they've timed out? If so, can't this case be recognised and handled as a time out for both players?

Last edited by .. (2015-01-14 08:14:24)

Offline

#25 2015-01-14 19:56:29

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Denied by server?

Yeah, thinking about a way to fix this.

Offline

Board footer

Powered by FluxBB