fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Ticket authorization failed. Reused Ticket

Open richardportugal opened this issue 2 years ago • 2 comments

What happened?

My server randomly stops accepting player connections, and it only comes back when the server is restarted. Basically, the server is online, and I get around 100 players. Then, for some reason, the server doesn't 'handshake' with new players, and neither do the players who leave the server to join again.

The error that is giving me trouble is: 'Ticket authorization failed. Reused Ticket.' Sometimes the message switches to: 'HTTP/2 stream 3 was not closed cleanly before the end of the underlying stream - CURL error code 92 (Stream error in the HTTP/2 framing layer).' I went through the source code and searched for the error, and I found it in 'code -> components -> citizen-server-impl -> src -> InitConnectMethod.cpp.' and found the error message is being returned here: (https://github.com/citizenfx/fivem/blob/master/code/components/citizen-server-impl/src/InitConnectMethod.cpp)

		if (g_ticketList.find({ ticketExpiry, ticketGuid }) != g_ticketList.end())
		{
			if (error)
			{
				*error = "Reused ticket.";
			}

			return false;
		}

I would like to know if there could be a bug with my VPS, maybe the Steam API, or with the build

Expected result

Player connecting normally

Reproduction steps

  1. Start server
  2. Get around 100 players
  3. Randomly server stops handshaking

Importancy

There's a workaround

Area(s)

FXServer

Specific version(s)

Server 6683 windows

Additional information

No response

richardportugal avatar Dec 28 '23 13:12 richardportugal

We are also experience that issue on our server and it is pretty random for some reason.. We are running build 7345 and this is happening pretty random the last few months. And suddently it stopped for some time and now it is back again. We are running our server on linux

L4wlz avatar Jan 25 '24 19:01 L4wlz

We are also experience that issue on our server and it is pretty random for some reason.. We are running build 7345 and this is happening pretty random the last few months. And suddently it stopped for some time and now it is back again. We are running our server on linux

disable steam auth from connectqueue and remove steam webapi key it should work

SKITTLE6969 avatar Mar 29 '24 02:03 SKITTLE6969