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. NetXMS 1.2.17 crashed and doesn't start anymore

NetXMS 1.2.17 crashed and doesn't start anymore

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 15.3k 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
    VMGuy
    wrote on last edited by
    #1

    Hi,

    I just had/have a strange issue where the backend crashed and isn't able to start anymore.

    That's what happened:

    • I created a new script in the script library
    • When I was finished I closed the script and was asked to save it
    • I clicked yes and got an error - Something like "Broken pipe"
    • Then the backend crashed and wasn't reachable anymore

    And now I can't even start it.
    The last entry in the log file is this:
    ...
    [05-Jan-2015 22:42:18.366] [DEBUG] Script Filter::SNMP added to library
    [05-Jan-2015 22:42:18.366] [DEBUG] Script Filter::Agent added to library
    [05-Jan-2015 22:42:18.366] [DEBUG] Script Filter::AgentOrSNMP added to library
    [05-Jan-2015 22:42:18.366] [DEBUG] Script DCI::SampleTransform added to library
    [05-Jan-2015 22:42:18.366] [DEBUG] Script Hook::ConfigurationPoll added to library

    After the last loaded script there should be the newly created one. I assume it can't be loaded and crashes the server.
    I already did a DB check, but no problem was found.

    What can I do to fix that?
    Any chance to remove it from the database?

    Thanks, VMGuy

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      In the database, go to the "script_library" table and change the script to "return true;".
      Server should start now.

      Was the script used in any Script DCIs or anywhere else?

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

        Thanks for the table name.
        I removed this script from the table and now the server starts.

        Thanks for that.

        No the script wasn't used yet.
        It should be a script for handling SNMP traps.

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Hi,

          do you still have/remember source code of problematic script?

          Best regards,
          Victor

          1 Reply Last reply
          0
          • V
            V
            VMGuy
            wrote on last edited by
            #5

            It's still on my screen as result of the select statement before I deleted it.
            It was a copy of a script I found in this forum and I started playing around with it.

            |    10001 | Acronis_Backup_Trap    |
            sub main() {
                switch($event->parameters[1]) {
                  case "Unkown":
                    evt = "ACRONIS_BACKUP_UNKOWN";
                    break;
                  case "Information"
                    evt = "ACRONIS_BACKUP_INFO";
                    break;
                  case "Warning"
                    evt = "ACRONIS_BACKUP_WARNING";
                    break;
                  case "Error"
                    evt = "ACRONIS_BACKUP_ERROR";
                    break;
                  default:
                    evt = "ACRONIS_BACKUP_INFO";
                    break;
                }
                PostEvent($node, evt, null, $event->parameters[1]);  // pass message as first parameter to generated event
              } else {
                PostEvent($node, "ACRONIS_BACKUP_CLOSE");
              }
            }

            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