Announcement

Collapse
No announcement yet.

Concord trouble connecting to SQL Database

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

  • #16
    Originally posted by vasrc View Post
    Also send me the loading on your PI (just enter "w" at the command prompt)
    You can use "top" as well if you're familiar with that.

    Are you leaving the Virtual keypad open all the time? It's a big resource hog.

    Z
    I was indeed. I closed the virtual keypad and couldn't replicate the error. I then opened the virtual keypad and sure enough the problem returned. It look like leaving the virtual keypad open was causing the problem.

    I can send those logs to you anyway just to see what's going on.

    Comment


    • #17
      Just sent those logs to that address you gave me.

      Comment


      • #18
        The log errors were becoming more frequent so as a last resort I decided to reimage HS3 onto a new SD card. I thought that with all the file access and writing related errors it might be worth a try. So far after two days not one single error has been logged.

        It may well have been the SD card going bad. I will keep an eye on the log and report back on any reoccurrence.

        Thanks for all the help vasrc

        Comment


        • #19
          Well thought I had the problem solved and did a cold restart of the system this morning and got the following errors.



          May-17 10:41:29 * CONCORD Error An unexpected error occurred in the ArmingLevel() function/subroutine: [System.ObjectDisposedException: Cannot access a disposed object. Object name: 'SQLiteConnection'. at System.Data.SQLite.SQLiteConnection.CheckDisposed () [0x00017] in <11a72aa9b7eb459d9770aa264de2a0ab>:0 at System.Data.SQLite.SQLiteConnection.Close () [0x00000] in <11a72aa9b7eb459d9770aa264de2a0ab>:0 at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteConnection:Close () at HSPI_CONCORD.dbModule.UpdateDB (System.String mySQLText, System.Boolean OpenClose) [0x000f6] in :0 at HSPI_CONCORD.msgModule.ArmingLevel (System.String myMessage) [0x00202] in :0 ]
          May-17 10:41:29 * CONCORD Error Error with SQL statement = Update Users set userName_field = "Concord Plug-In" ,lastAction_field = 1495014088 ,userNum_field = 255 where userNum_field = 255
          May-17 10:41:29 * CONCORD Error An unexpected error occurred in the UpdateDB()library routine called out of sequence null connection or database handle function/subroutine: [System.Data.SQLite.SQLiteException (0x80004005): library routine called out of sequence null connection or database handle at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn, System.String strSql, System.Data.SQLite.SQLiteStatement previous, System.UInt32 timeoutMS, System.String& strRemain) [0x002f5] in <11a72aa9b7eb459d9770aa264de2a0ab>:0 at System.Data.SQLite.SQLiteCommand.BuildNextCommand () [0x00068] in <11a72aa9b7eb459d9770aa264de2a0ab>:0 ]


          Not sure where to go from here. Any ideas.

          Comment


          • #20
            Originally posted by concordseer View Post
            Well thought I had the problem solved and did a cold restart of the system this morning and got the following errors.

            May-17 10:41:29 * CONCORD Error An unexpected error occurred in the ArmingLevel() function/subroutine: [System.ObjectDisposedException: Cannot access a disposed object. Object name: 'SQLiteConnection'. at System.Data.SQLite.SQLiteConnection.CheckDisposed () [0x00017] in <11a72aa9b7eb459d9770aa264de2a0ab>:0 at System.Data.SQLite.SQLiteConnection.Close () [0x00000] in <11a72aa9b7eb459d9770aa264de2a0ab>:0 at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteConnection:Close () at HSPI_CONCORD.dbModule.UpdateDB (System.String mySQLText, System.Boolean OpenClose) [0x000f6] in :0 at HSPI_CONCORD.msgModule.ArmingLevel (System.String myMessage) [0x00202] in :0 ]
            May-17 10:41:29 * CONCORD Error Error with SQL statement = Update Users set userName_field = "Concord Plug-In" ,lastAction_field = 1495014088 ,userNum_field = 255 where userNum_field = 255
            May-17 10:41:29 * CONCORD Error An unexpected error occurred in the UpdateDB()library routine called out of sequence null connection or database handle function/subroutine: [System.Data.SQLite.SQLiteException (0x80004005): library routine called out of sequence null connection or database handle at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn, System.String strSql, System.Data.SQLite.SQLiteStatement previous, System.UInt32 timeoutMS, System.String& strRemain) [0x002f5] in <11a72aa9b7eb459d9770aa264de2a0ab>:0 at System.Data.SQLite.SQLiteCommand.BuildNextCommand () [0x00068] in <11a72aa9b7eb459d9770aa264de2a0ab>:0 ]


            Not sure where to go from here. Any ideas.
            Is your log as still as busy as before? Send me a screen shot of the latest panel log.

            Z

            Comment


            • #21
              I rebooted the PI3 earlier again today and not a single log error since. It's so frustrating when the problem becomes intermittent.

              As soon as I see any more log errors I'll do a screen cap and send it to you.

              Comment

              Working...
              X