Announcement

Collapse
No announcement yet.

i get a critical error when stating the UNIFI plug in

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    i get a critical error when stating the UNIFI plug in

    I installed the Unifi PlugIn - setup my UDM Pro and get following error:



    2/12/2024 3:13:14 AM
    HomeSeer
    Info
    Plugin Unifi with ID: Unifi and Instance: has disconnected
    2/12/2024 3:13:13 AM
    Unifi
    Info
    Unhandled exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.D eserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReade r reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at HSPI_Unifi.UniFi_Access.UniFiGetAccessTopology() at HSPI_Unifi.UniFi_Access..ctor(UniFiSystem ClassUniFiSystem) at HSPI_Unifi.UniFi.UniFiStart(UniFiSystem UniFiSystem) at HSPI_Unifi.HSPI._Closure$__._Lambda$__R2-1(Object a0) at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2/12/2024 3:13:12 AM
    HomeSeer
    Info
    Done rebuild of device references cache
    2/12/2024 3:13:12 AM
    HomeSeer
    Info
    Starting rebuild of device references cache...
    2/12/2024 3:13:12 AM
    HomeSeer
    Starting Plug-In
    Plugin Unifi started successfully in 23 milliseconds
    2/12/2024 3:13:12 AM
    Unifi
    Info
    Initialization of Unifi version 4.0.40.0 complete
    2/12/2024 3:13:12 AM
    Unifi
    Info
    .NET version detected: .NET Framework 4.8.9181.0
    2/12/2024 3:13:12 AM
    HomeSeer
    Starting Plug-In
    Initializing plugin Unifi ...
    2/12/2024 3:13:12 AM
    HomeSeer
    Starting Plug-In
    Unifi loaded in 15101 milliseconds
    2/12/2024 3:13:02 AM
    HomeSeer
    Info
    Plugin Unifi with instance Unifi has connected. IP:127.0.0.1:50663
    2/12/2024 3:12:56 AM
    HomeSeer
    Info
    Plugin Unifi with instance Unifi has connected. IP:127.0.0.1:50660
    2/12/2024 3:12:56 AM
    HomeSeer
    Warning
    I/O interface Unifi is down, executable is not running, restarting ...
    2/12/2024 3:12:32 AM
    HomeSeer
    Web Server
    Web Server authorized login successful from: 192.168.30.253 User: enrico@family-taras.us
    2/12/2024 3:12:28 AM
    HomeSeer
    Info
    Plugin Unifi with ID: Unifi and Instance: has disconnected
    2/12/2024 3:12:27 AM
    Unifi
    Info
    Unhandled exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.D eserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReade r reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at HSPI_Unifi.UniFi_Access.UniFiGetAccessTopology() at HSPI_Unifi.UniFi_Access..ctor(UniFiSystem ClassUniFiSystem) at HSPI_Unifi.UniFi.UniFiStart(UniFiSystem UniFiSystem) at HSPI_Unifi.HSPI._Closure$__._Lambda$__R2-1(Object a0) at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj)
    2/12/2024 3:12:27 AM
    HomeSeer
    Info
    Done rebuild of device references cache
    2/12/2024 3:12:27 AM
    HomeSeer
    Info
    Starting rebuild of device references cache...
    2/12/2024 3:12:26 AM
    HomeSeer
    Starting Plug-In
    Plugin Unifi started successfully in 18 milliseconds
    2/12/2024 3:12:26 AM
    Unifi
    Info
    Initialization of Unifi version 4.0.40.0 complete
    2/12/2024 3:12:26 AM
    Unifi
    Info
    .NET version detected: .NET Framework 4.8.9181.0
    2/12/2024 3:12:26 AM
    HomeSeer
    Starting Plug-In
    Initializing plugin Unifi ...
    2/12/2024 3:12:26 AM
    HomeSeer
    Starting Plug-In
    Unifi loaded in 15076 milliseconds
    2/12/2024 3:12:11 AM
    HomeSeer
    Info
    Plugin Unifi with instance Unifi has connected. IP:127.0.0.1:50494
    2/12/2024 3:12:11 AM
    HomeSeer
    Warning
    I/O interface Unifi is down, executable is not running, restarting ...

    #2
    Tell me a bit about your system. Windows/Linux, HS4 version etc. Also the UDM versions please.

    Did anything go wrong adding your system?

    You can try again from scratch by deleting the Unifi.ini file and start the plugin again.
    stefxx

    Comment


      #3
      Hi.

      System is an Intel NUC - fresh install yesterday with all updates Windows 11.
      HS4 is latest version - fresh download and install yesterday on the intel machine above.

      I added to both UDM Pro and UNVR same user name and password as local only - I tried to login and it worked - I went to the setup from the plugin and got no error message - only after I was done with adding the plug in was not showing anything anymore and then showing " critical error..."

      I tried two things.
      1.) adding following system:
      UDM is a UDM Pro with UniFi OS Version 3.2.9​ - Network App 8.0.28 - Access App 1.23.7

      2.) Deleting the unify.ini and start over with my UNVR (stack)
      UniFi OS Version 3.2.9​ - Protect App 2.11.21

      Both end in the same error as above in my initial posting

      Profile from HS4:

      Date/time=2/12/2024 5:07:22 PM Pacific Standard Time
      Version=HS4 Pro Edition 4.2.19.5 (Windows)
      License=Registered
      License ID=***************************************
      MyHS Subscription=Lite
      MyHS Subscription Backup Interval=No Backup
      MyHS Subscription Max Cameras=1
      Confguration File=C:\Program Files (x86)\HomeSeer HS4\Data\HS4Data.json
      In Virtual Machine=No MFG: intel corporation
      Antivirus=Windows Defender
      OS=Microsoft Windows 11 Pro - Work Station
      OS Version=10.0.22631
      Uptime=0 Days 20 Hours 44 Minutes 56 Seconds
      User/Access=enrico@family-taras.us (Admin)
      Lan IP=192.168.30.253 (Homeseer)
      Client IP=192.168.123.100 (Some-Computer.local)
      WAN IP=67.164.*.* ()
      Device Count=210
      Event Count=4
      Last Event Ran=Kitchen light evening : Light control off after 10 min, Ran at 2/12/2024 5:07:23 PM
      # of unique event scripts=0
      Processor:=Intel64 Family 6 Model 154 Stepping 3 at 1.58 GHz
      Modules/Threads=114 Modules, 53 Threads
      Available Threads=1023
      System Load=162 Processes, 1% Load
      Free/Total Memory=11.63 GBytes / 15.58 GBytes (75% free)
      Free/Total Virtual Memory=14.72 GBytes / 18.46 GBytes (80% free)
      HomeSeer Memory Used=86 Mbytes
      Plugin Memory Used=2 EXE Plug-Ins using 95 Mbytes
      Plugins Installed=AK HomeAssistant 4.0.1.10,Philips Hue 4.0.24.0,Sonos4 4.0.1.26,Unifi 4.0.40.0,UniFi Access 4.0.0.0,Z-Wave 4.1.3.0​

      Comment


        #4
        Since the plugin crashes quickly after startup, it won't be easy to enable logging through the plugin setup pages. So lets try to enable logging manually.

        Edit the Unifi.ini with your favorite text editor. There should be a few sections (section names are within square brackets []). Apart from [Settings], there should be a section for every UniFi system you have configured. Please add the following for every UniFi system:

        LogToFile=True
        LogReceived=True
        LogSend=True
        LogDevUpd=True
        LogConnectionErrors=True
        LogDebug=True

        ​Then start the plugin until it crashes again. Stop the plugin and look into the Logs directory for the logfiles. It starts with Unifi_ and ands with .log.

        Please PM me the logfiles so I can have a look. Hopefully it contains a clue to the root cause. Also include the Unifi.ini so I can see how your system is configured.

        Note that I am currently travailling so I will try to respond when I have time, but it might not be instant. Also, our timezones are about 12 hours apart.
        stefxx

        Comment


          #5
          hi - no problem with slow answering - i send the PM

          Comment

          Working...
          X