Comments (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.
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.
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.
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.
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.
I can confirm that the version in Debian "unstable" today works without error.
from rasdaemon.
Related Issues (20)
- How to a contrib adding new label HOT 1
- DBD::SQLite::db prepare failed: no such table: mc_event at /usr/sbin/ras-mc-ctl line 1183. HOT 2
- print non_standard_event at one line HOT 1
- `sudo ras-mc-ctl --error-count` not listing `Corrected error` event?
- rasdaemon does not support switch to disable events by config HOT 8
- ras-mc-ctl: drivers not loaded.
- Add `--flush-errors` option to `ras-mc-ctl`. HOT 1
- rasdaemon causes manual modification of current_tracer failed HOT 1
- rasdaemon: ras-mc-ctl --error-count random sorts output
- rasdaemon causes kernel crash (NULL dereference) HOT 1
- rasdaemon: Can't open trace_clock
- negative record size -8 HOT 2
- Unintelligible errors: Unknown block error, I/O error, critical target error HOT 4
- SIGBUS when starting with --record HOT 9
- When SELinux is enabled, ras-mc-ctl.service fails to be started HOT 3
- Clearing errors / excluding old events from reports
- rasdaemon not logging HOT 9
- AER not reported immediatly HOT 1
- Release tarball not created for 0.8.0 because of Action failure (missing libtraceevent in CI) HOT 1
- rasdaemon does not log MCE HOT 37
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rasdaemon.