Error loading products

Answered

Comments

3 comments

  • Avatar
    Aronium Support

    Hi Ibrahim,

    We are sorry to hear you have troubles with the database. 

    What we can see from the logs are two different issues. The first one seems like the application files are being used by some other application instance when Aronium is trying to access it:

    2022-05-06 11:15:09.694 ERROR Aronium.Pos.MainWindow - The process cannot access the file 'C:\Users\USER\AppData\Local\Aronium\Application.xml' because it is being used by another process.
    2022-05-06 16:52:41.073 ERROR Aronium.Storage.Local.Data.OrderRepository - disk I/O error
    disk I/O error

    If this is the case, it could be solved by simply restarting your PC to make sure no application is accessing the database and try again. 

    However, there is another error that doesn't sounds good, as it indicates a corrupted database file:

    2022-05-07 17:58:18.665 ERROR Aronium.Pos.FiscalPrinter.Tasks.Bootstrap.CheckStatus - database disk image is malformed

    If you wish, you can send us your database to support@aronium.com, but there are no guarantees we can recover it.

    Finally, the best we can suggest is to restore the most recent backup by following instructions at https://help.aronium.com/hc/en-us/articles/115003477932-Restore-database, if you have one.

    Thanks, Aronium team.

    0
    Comment actions Permalink
  • Avatar
    Ibrahim

    Hi All,

    Thank you for your quick reply, there were two issues, first one, database was corrupted. The second issue with me, I didn't make a backup and I didn't go with the NETWORKING VERSION :( 

    How to fix it:

    • Download sqlite-tools from http://www.sqlite.org/download.html
    • Unpack it and place the corrupted database file into the same directory as sqlite3.exe (You will find it in "C:\Users\YourAccountName\AppData\Local\Aronium\Data")
    • Start “cmd” and navigate to the directory with the corrupted file
    • Run
    • >sqlite3.exe filename.db "PRAGMA integrity_check"

      to verify the database. The result will be probably an error message Error: database disk is malformed.

      • Then Run
      >sqlite3.exe filename.db ".dump" | sqlite3 new.db

    Then you need to rename the new DB "new.db" with the original name and replace it with the original DB in the path below: 

    C:\Users\YourAccountName\AppData\Local\Aronium\Data

    However, this procedure is not always successful. The easiest and most reliable way is to restore the database file from the backup.

     

    Thanks, 

    0
    Comment actions Permalink
  • Avatar
    Aronium Support

    Hi Ibrahim,

    Thanks for sharing the details and we hope that the recovery managed to get the data back.

    One important note on the Networking version, it is an offline application, too, and the database would be also stored on one of your computers, so making sure that the backup process in in place is the most important thing you should take care of.

    Hope this clarifies things and clears any doubts you may have around Networking version and the database it is using.

    Thanks, Aronium team.

    0
    Comment actions Permalink

Please sign in to leave a comment.