citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.58k stars 2.12k forks source link

Ticket authorization failed. Reused Ticket #2320

Open richardportugal opened 11 months ago

richardportugal commented 11 months ago

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

L4wlz commented 10 months ago

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

SKITTLE6969 commented 8 months ago

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