• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Trouble with SQL

    Scheduled Pinned Locked Moved
    Technical Help
    2
    5
    208
    Loading More Posts
    • 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.
    • H
      henriquepz45
      last edited by

      I use the Manjaro Cinnammon operating system.

      I had problems with Strawberry in both versions: stable and Flatpak.

      I installed it normally, continued using it for days and suddenly it stopped working and warnings like this appeared:

      "*Unable to execute SQL query: database disk image is malformed.

      Failed SQL query: SELECT COUNT() FROM songs WHERE unavailable = 0 "

      Is there any solution for ![alt text](image url)this?
      Any commands to type in the terminal that can make the player work again?

      I really like this player and would like to use it again.

      Captura de tela de 2024-07-03 12-09-57.png

      jonasJ 1 Reply Last reply Reply Quote 0
      • jonasJ
        jonas @henriquepz45
        last edited by

        @henriquepz45
        Close strawberry and check the database for errors:

        https://wiki.strawberrymusicplayer.org/wiki/Database_integrity_check

        H 1 Reply Last reply Reply Quote 0
        • H
          henriquepz45 @jonas
          last edited by

          @jonas I did this, typed the command suggested for Linux in the terminal:

          sqlite3 ~/.local/share/strawberry/strawberry/strawberry.db "pragma integrity_check

          And nothing happened. I opened Strawberry and that warning appeared again, unfortunately.

          jonasJ 1 Reply Last reply Reply Quote 0
          • jonasJ
            jonas @henriquepz45
            last edited by

            @henriquepz45
            You should see simply "ok" if the database is good.
            But you should also see some output if the database has issues.

            You can try:
            sqlite3 ~/.local/share/strawberry/strawberry/strawberry.db
            and enter pragma integrity_check;

            You can also try the following.:

            vacuum;
            REINDEX;
            

            enter .quit to exit.

            Also check that your disk is not full.

            If that doesn't solve it:

            If you don't mind loosing your indexed collection and playlist you can simply delete the database file strawberry.db and it will automatically create a new on startup.

            Otherwise there are some steps for possible recovery here: https://www.sqlite.org/recovery.html

            1 Reply Last reply Reply Quote 0
            • H
              henriquepz45
              last edited by

              I did what you recommended and was unable to get the player to work again. This is sad, because since last year, the Strawberry player has always worked well. I don't think there's anything else to do...

              Well, thanks for helping me.

              Captura de tela de 2024-07-05 12-43-57.png Captura de tela de 2024-07-05 12-45-32.png

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB | Contributors