-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moonfire-nvr.toml file "dbDir" is not working #319
Comments
Sorry, I don't know why there was a problem with the layout |
I think you just have to remove the
For some reason all the blank lines had a U+FEFF (zero width non-breaking space, aka byte order mark, mentioned in e.g. this article) in them. I edited your comment to remove those and switched from |
thank for you edited.
I tried again but it still didn't work.
(After entering the configuration interface, I proactively terminated it.) |
Describe the bug
moonfire-nvr.toml file "dbDir" is not working
To Reproduce
1.Edit "/etc/moonfire-nvr.toml" according to the description in "config.md", first line is [dbDir = "/mnt/data/nvr/db"]
2.sudo -u moonfire-nvr moonfire-nvr config
2024-06-16T10:42:12.874057 ERROR main moonfire_nvr: exiting due to error err=NOT_FOUND: db dir /var/lib/moonfire-nvr/db not found; try running moonfire-nvr init
3.run command [sudo -u moonfire-nvr moonfire-nvr init] result:
2024-06-16T10:57:29.790579 INFO main moonfire_nvr::cmds: Opening /var/lib/moonfire-nvr/db/db in Create mode with SQLite version 3.44.0
2024-06-16T10:57:29.903563 INFO main moonfire_nvr::cmds::init: Database initialized.
Expected behavior
SQLite dir : /mnt/data/nvr/db
false "/var/lib/moonfire-nvr/db/db" x
true "/mnt/data/nvr/db/db" √
Screenshots
Not to that point
Server (please complete the following information):
sudo -u moonfire-nvr moonfire-nvr --version
Version: v0.7.16
filename: moonfire-nvr-v0.7.16-aarch64
OS:armbian
Camera (please complete the following information):
Not to that point
Desktop (please complete the following information):
Chromium 102.0.5005.167
Smartphone (please complete the following information):
Not to that point
Additional context
Sorry, I'm viewing the document through translation read. For "At the top level, before any [[bind]] lines, the following keys are understood", I understand it as the first line setting, or setting before pasting
Is my understanding wrong?
Searching for "repo:scottlamb/moonfire-nvr dbDir" found that "dbDir" keyword is only mentioned in ref/config.md, or the documentation is missing updates? Please help me look into it, thank you.
( Manually copying db files after executing SQL init is also not available
The text was updated successfully, but these errors were encountered: