scottlamb / moonfire-nvr

Moonfire NVR, a security camera network video recorder
Other
1.26k stars 138 forks source link

Upgrade Schema v. 7 from v. 6 Error Message Pointing to "upgrade.md" #180

Closed jlpoolen closed 2 years ago

jlpoolen commented 2 years ago

I just updated, Nov 6, 2021, and got:

moonfire@ares /usr/local/src/moonfire-nvr.git/trunk/server $ MOONFIRE_LOG=retina=debug,info /home/jlpoole/bin/nvr run
I20211106 17:54:02.881 main moonfire_nvr::cmds] Opening /var/lib/moonfire-nvr/db/db in ReadWrite mode with SQLite version 3.35.5
E20211106 17:54:03.540 main moonfire_nvr] panic at 'src/cmds/run.rs:232:72': called `Result::unwrap()` on an `Err` value: ErrorMessage { msg: "Database schema version 6 is too old (expected 7); see upgrade instructions in guide/upgrade.md." }

(set environment variable RUST_BACKTRACE=1 to see backtraces)
moonfire@ares /usr/local/src/moonfire-nvr.git/trunk/server $

There are no upgrade instructions as specified with "upgrade instructions in guide/upgrade.md". I found the upgrade instruction at https://github.com/scottlamb/moonfire-nvr/blob/master/guide/schema.md. Probably the warning message should be revised?