Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. event with several server actions generate a SYS_DB_QUERY_FAILED

event with several server actions generate a SYS_DB_QUERY_FAILED

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 22.8k Views
  • 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.
  • V
    V
    vmgracia
    wrote on last edited by
    #1

    Hi All

    I have edited several events to declare a single server action in each and they work correctly.

    if I add more server actions to any event they still work but I get a critical database error, for example:

    496 03.08.2021 22:51:02 03.08. 2021 22:51:02 System LSRPNETXMS1 0 SYS_DB_QUERY_FAILED Critical Database query failed (Query: INSERT INTO server_action_execution_log (id,action_timestamp,action_code,action_name,channel_name,recipient,subject,action_data,success) VALUES (? ,?,?,?,?,?,?,?,?,?,?,?,?); Error: 23505 ERROR: duplicate key value violates unique constraint "server_action_execution_log_pkey"
    DETAIL: Key (id)=(494) already exists.) 0

    Can someone help me with this?

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      What exact netxms version?

      1 Reply Last reply
      0
      • V
        V
        vmgracia
        wrote on last edited by
        #3

        NetXMS Server Version 3.9.156 Build 3.9-156-g8c36cbe353 (UNICODE)
        NXCP: 5.53.1.31 (AES-256, Blowfish-256, 3DES, AES-128, Blowfish-128)
        Built with: g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          And which database are you using?

          1 Reply Last reply
          0
          • F
            F
            Filipp Sudanov
            wrote on last edited by
            #5

            This is actually already fixed, will be included in patch release that is coming soon.

            1 Reply Last reply
            0
            • V
              V
              vmgracia
              wrote on last edited by
              #6

              thank you very much for your support

              just to answer your question, it's postgres:
              psql (PostgreSQL) 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1)

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups