rfmoz / tuptime

Report historical and statistical real time of the system, keeping it between restarts. Like uptime command but with more interesting output.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error after update tuptime to version 3

rfrail3 opened this issue · comments

After update a system with tuptime 2.6 to 3.0, tuptime execution report the following error:

File "/usr/bin/tuptime", line 482, in
main()
File "/usr/bin/tuptime", line 356, in main
conn.execute('select count(endst) from tuptime where endst = 0 and oid < (select max(oid) from tuptime)')
sqlite3.OperationalError: no such column: endst

Tuptime change database schema from 2.x to 3.x release. There is a script into de repo for migrate it.

Please, execute the file located here:
https://github.com/rfrail3/tuptime/blob/master/scripts/db-tuptime-migrate.sh