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. 3.3 does not reconnect to postgres

3.3 does not reconnect to postgres

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 20.0k 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.
  • J
    J
    jermudgeon
    wrote on last edited by
    #1

    Postgres backend is functioning, but netxms reports 'Server has lost connection with backend database'.

    sh dbcp
    netxmsd: sh dbcp
    0x7f8745e44780 04.May.2020 17:42:14 dbwrite.cpp:457
    0x7f873cbd5d80 04.May.2020 17:42:15 dcitem.cpp:1309
    0x7f873cbd5960 04.May.2020 17:42:05 syncer.cpp:238
    3 database connections in use

    Stuck since yesterday.

    sh q

    netxmsd: sh q
    Data collector                  : 0
    DCI cache loader                : 46673
    Template updates                : 0
    Database writer                  : 5
    Database writer (IData)          : 3354870
    Database writer (raw DCI values) : 28133
    Event processor                  : 1334
    Event log writer                : 0
    Poller                          : 1319
    Node discovery poller            : 1187
    Syslog processing                : 0
    Syslog writer                    : 0
    Scheduler                        : 0

    dbcp reset doesn't do much:

    netxmsd: dbcp reset
    Resetting database connection pool
    Database connection pool reset completed
    netxmsd: sh dbcp
    0x7f8745e44780 04.May.2020 17:42:14 dbwrite.cpp:457
    0x7f873cbd5d80 04.May.2020 17:42:15 dcitem.cpp:1309
    0x7f873cbd5960 04.May.2020 17:42:05 syncer.cpp:238
    3 database connections in use

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

      If it's still in that condition, can you run this script to get thread statuses:
      https://github.com/netxms/netxms/blob/master/tools/capture_netxmsd_threads.sh

      Please run it twice with about 1 minute interval and attach the files it creates in /tmp.
      The script requires gdb to be installed.

      1 Reply Last reply
      0
      • J
        J
        jermudgeon
        wrote on last edited by
        #3

        The grep could afford to be a bit more detailed, for example, 'bin/netxmsd', as any open/tailed netxms log files will pass the grep and cause script failure later on.


        netxmsd-threads-8416.zip

        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