FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    SQL error on request_frequencies Table

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    3
    4
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      becharam
      last edited by

      I had a problem with fusion and the server stopped working. The last log I found was this one:

      Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "request_frequencies_uk_1"
      Detail: Key (tenants_id, type, request_id)=(74eeee80-d400-4540-a377-de1e4a7239dc, 0, 94159bc9-4b03-4735-ae23-0ab33745e82b) already exists.
      11:37

      Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "request_frequencies_uk_1"

      Detail: Key (tenants_id, type, request_id)=(74eeee80-d400-4540-a377-de1e4a7239dc, 0, 94159bc9-4b03-4735-ae23-0ab33745e82b) already exists.

      The error may exist in io/fusionauth/api/domain/RequestFrequencyMapper.xml

      The error may involve defaultParameterMap

      The error occurred while setting parameters

      SQL: INSERT INTO request_frequencies (count, last_update_instant, request_id, tenants_id, type) VALUES (?, ?, ?, ?, ?)

      Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "request_frequencies_uk_1"

      Detail: Key (tenants_id, type, request_id)=(74eeee80-d400-4540-a377-de1e4a7239dc, 0, 94159bc9-4b03-4735-ae23-0ab33745e82b) already exists.

      There is no error pointing to a memory overload, and I am not sure why the server stopped.

      Any help on why the server might have stopped would be appreciated

      danD L 2 Replies Last reply Reply Quote 0
      • danD
        dan @becharam
        last edited by

        @becharam What version of FusionAuth and postgresql/mysql are you running?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • L
          langnerfrancesco @becharam
          last edited by

          @becharam said in SQL error on request_frequencies Table:

          I had a problem with fusion and the server stopped working. The last log I found was this one:

          Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "request_frequencies_uk_1"
          Detail: Key (tenants_id, type, request_id)=(74eeee80-d400-4540-a377-de1e4a7239dc, 0, 94159bc9-4b03-4735-ae23-0ab33745e82b) already exists.
          11:37

          Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "request_frequencies_uk_1"

          Detail: Key (tenants_id, type, request_id)=(74eeee80-d400-4540-a377-de1e4a7239dc, 0, 94159bc9-4b03-4735-ae23-0ab33745e82b) already exists.

          The error may exist in io/fusionauth/api/domain/RequestFrequencyMapper.xml

          The error may involve defaultParameterMap

          The error occurred while setting parameters

          SQL: INSERT INTO request_frequencies (count, last_update_instant, request_id, tenants_id, type) VALUES (?, ?, ?, ?, ?)

          Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "request_frequencies_uk_1"

          Detail: Key (tenants_id, type, request_id)=(74eeee80-d400-4540-a377-de1e4a7239dc, 0, 94159bc9-4b03-4735-ae23-0ab33745e82b) already exists.

          There is no error pointing to a memory overload, and I am not sure why the server stopped.

          Any help on why the server might have stopped would be appreciated

          Facing same issue here. Help is appreciated.

          danD 1 Reply Last reply Reply Quote 0
          • danD
            dan @langnerfrancesco
            last edited by

            @langnerfrancesco What version of FusionAuth are you using?

            What version of postgresql?

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

            1 Reply Last reply Reply Quote 0
            • First post
              Last post