Giter Site home page Giter Site logo

DBD::SQLite::db prepare failed about rasdaemon HOT 6 OPEN

mchehab avatar mchehab commented on June 13, 2024 1
DBD::SQLite::db prepare failed

from rasdaemon.

Comments (6)

TuningYourCode avatar TuningYourCode commented on June 13, 2024 6

Quick & dirty workaround for debian bullseye:

# sqlite3 /var/lib/rasdaemon/ras-mc_event.db
CREATE TABLE devlink_event (id INTEGER PRIMARY KEY, timestamp TEXT, bus_name TEXT, dev_name TEXT, driver_name TEXT, reporter_name TEXT, msg TEXT);
CREATE TABLE disk_errors (id INTEGER PRIMARY KEY, timestamp TEXT, dev TEXT, sector INTEGER, nr_sector INTEGER, error TEXT, rwbs TEXT, cmd TEXT);
.exit

from rasdaemon.

kengruven avatar kengruven commented on June 13, 2024 1

Do you mean SQLite? I don't see any references to MySQL in rasdaemon.
I got this error, and I just installed rasdaemon (on Debian 11) for the first time today. Apart from deleting the database file on purge, I don't see anything in the Debian source which has anything to do with database management.

from rasdaemon.

adatum avatar adatum commented on June 13, 2024

I get a similar error in rasdaemon v0.6.7 on Fedora 35 with different lines referenced:

$ ras-mc-ctl --errors
No Memory errors.

DBD::SQLite::db prepare failed: no such column: dev_name at /usr/sbin/ras-mc-ctl line 1350.
Can't call method "execute" on an undefined value at /usr/sbin/ras-mc-ctl line 1351.

Other mentions of this type of error:
#53
#30

from rasdaemon.

mchehab avatar mchehab commented on June 13, 2024

Did you upgrade your systems or rasdaemon? It sounds to me that it is using an outdated mysql database. Yeah, we probably need to add some feature at rasdaemon for it to update the database in case of changes between two versions.

from rasdaemon.

TuningYourCode avatar TuningYourCode commented on June 13, 2024

Just adding more context: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973053

It seems that Debian Bullseye ships a broken version. Fixed/newer version seems to be in unstable. Easiest workaround currently looks like to just add the missing table into the sqlite file.

from rasdaemon.

kengruven avatar kengruven commented on June 13, 2024

I can confirm that the version in Debian "unstable" today works without error.

from rasdaemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.