Skip to main content

Nx Witness doesn't recognize the plugin built in step 1-2.

Answered

Comments

16 comments

  • Andrey Terentyev
    • Network Optix team

    Hello,

    Try to search server log file for PluginManager messages. Was your plugin successfully loaded?

    Here is the article helping to find log file location

    https://support.networkoptix.com/hc/en-us/articles/236033688-How-to-change-software-logging-level-and-how-to-get-logs

    Are you compiling debug or release version?

    Are running complied plugin on the same machine or on the separate one?

     

    0
  • Viacheslav Hodlevskyi

    It doesn't seem that plugin was loaded successfully.
    All the log files in 

    C:\Windows\System32\config\systemprofile\AppData\Local\Network Optix\Network Optix Media Server\log

    were modified 5 days ago last time.
    Release version is compiled
    All the process for building& running are being processed on the same machine

    0
  • Viacheslav Hodlevskyi



    I see that there are plugins here, but the system recognizes only OpenVINO
    Maybe there are additional step to enable plugin except described here Introduction to Creating a Video Analytics Plugin – Network Optix

    0
  • Andrey Terentyev
    • Network Optix team

    Hi,

    What is the OS version, VMS version, build, Metadata SDK version you're using?

    were modified 5 days ago last time.

    It can't be like that. Please check file permissions and VMS customization you're using.

    Path for "Nx Meta" and "Nx Witness" customization are different.

    It doesn't seem that plugin was loaded successfully. 

    What is the message? Could you share your log files, please?

    0
  • Viacheslav Hodlevskyi

    Hi
    Windows 11 pro 10.0.22621
    metadata Sdk 5.0.0 R6
    Nx Witness VMS 5.0.0.35745

    2023-03-24 09:55:02.846   6444    INFO PluginManager(0x1f6e99369e0): Considering to load Server plugin [C:/Program Files/Network Optix/Nx Meta/MediaServer/plugins/opencv_object_detection_analytics_plugin.dll]
    2023-03-24 09:55:02.847   6444    INFO PluginManager(0x1f6e99369e0): Loaded Server Plugin [C:/Program Files/Network Optix/Nx Meta/MediaServer/plugins/opencv_object_detection_analytics_plugin.dll] (main interface nx_sdk_analytics_IPlugin, sdk version "5.0.0 R6")

    Yes, there are messages, but it's not displayed when I open Camera Settings/Plugins 

    0
  • Andrey Terentyev
    • Network Optix team

    Hello,

    According to the log file, the plugin binary was loaded successfully.

    There is something inside the plugin, that prevents the Server to display information about the plugin.

    Most probably, plugin manifest is missing or broken. Possibly a typo or a needless final comma.

    Could you share the entire code of your plugin, please?

    0
  • Viacheslav Hodlevskyi

    Hello,
    I am trying to deploy a plugin from a tutorial first.
    I didn't make any changes. Code was taken here, it's step 2 nx_open_integrations/cpp/vms_server_plugins/opencv_object_detection_analytics_plugin/step2 at master · networkoptix/nx_open_integrations · GitHub

    0
  • Andrey Terentyev
    • Network Optix team

    Hello Viacheslav Hodlevskyi ,

    It seems you have (or at least have had) two different customizations of VMS installed on your system:

    1. Nx Meta installed to C:/Program Files/Network Optix/Nx Meta/ according to the log file message you've shared.

    2. Nx Wintess installed to C:\Program Files\Network Optix\Nx Witness

    Please make sure you copy your plugin binary to the proper folder and you check log files in the proper folder.

    At the moment, according to your post, you copied plugin binary to the Nx Wintness customization server, however you check log files in the folder of the Nx Meta customization.

    0
  • Viacheslav Hodlevskyi

    Hello, yes, I have  two different customizations of VMS.
    I need to run Nx Witness. I tried to copy binary file to Nx Witness/MediaServer/plugins but there is no log file for Nx Witness  in
    C:\Windows\System32\config\systemprofile\AppData\Local\Network Optix
    There is a log file only for Nx Meta, the path is
    C:\Windows\System32\config\systemprofile\AppData\Local\Network Optix\Network Optix MetaVMS Media Server\log\log_file.log

    0
  • Andrey Terentyev
    • Network Optix team

    Hello,

    I have  two different customizations of VMS.

    That's crucial information and should have been provided in the first post. Please, pay your attention next time.

    With two customization on the same machine, make sure they don't attempt to run simultaneously on the same port, tcp 7001 be default.

    There is a log file only for Nx Meta, the path is

    Taking that into account, I'd suppose Nx Witness Media server could not start, just because of the issue described.

    If you want to have two customizations on the same machine, please do the following.

    1. Change Startup Type for both services "Network Optix MetaVMS Media Server" and "Network Optix Media Server" to "Manual"

    2. Change the default port for one of two customizations.

    Here is the path in the registry to Server settings.

    HKEY_LOCAL_MACHINE\SOFTWARE\Network Optix\Network Optix MetaVMS Media Server

    0
  • Andrey Terentyev
    • Network Optix team

    The final thing.

    If you want Nx Wintess and don't need Nx Meta, just uninstall Nx Meta to avoid further issues.

    0
  • Viacheslav Hodlevskyi

    I apologize I didn't provide this information in first post.
    The port has already been changed to 7011 for

    HKEY_LOCAL_MACHINE\SOFTWARE\Network Optix\Network Optix MetaVMS Media Server

    Network Optix Media Server is on the default port 7001

    0
  • Viacheslav Hodlevskyi

    Hello, may I clarify
    I deleted the Nx Meta VMS server, so do I need to launch the Nx Witness Server? 
    This command works for both version of VMS 'sudo systemctl restart networkoptix-metavms-mediaserver' ?

    0
  • Andrey Terentyev
    • Network Optix team

    Hi,

    This command works for both version of VMS 'sudo systemctl restart networkoptix-metavms-mediaserver' ?

    No, it works for Nx Meta only. For Nx Witness it should be

    sudo systemctl restart networkoptix-mediaserver
    0
  • Viacheslav Hodlevskyi

    Thanks,
    seems I don't have a server for nx witness. However, I downloaded and installed it.
    Could you refer me to the tutorial how to install and check installation please

    0
  • Andrey Terentyev
    • Network Optix team

    Hi,

    Here you can find installation guide for Windows

    https://support.networkoptix.com/hc/en-us/articles/205752937-Windows-OS-Installation-Guide

    0

Please sign in to leave a comment.