Closed andreflosi closed 8 months ago
the content of /etc/moonfire-nvr.toml
pi@raspberrypi:~/moonfire-nvr $ cat /etc/moonfire-nvr.toml [[binds]] ipv4 = "0.0.0.0:8080" allowUnauthenticatedPermissions = { viewVideo = true }
[[binds]] unix = "/var/lib/moonfire-nvr/sock" ownUidIsPrivileged = true
Removing the lines
allowUnauthenticatedPermissions
and
ownUidIsPrivileged = true
fixed the issues for me, however, I now have a new issue where attempting live view from outside my local network results in the following browser error: "may not load data from blob"
, not sure if it's related.
The initial error you got is because of discrepant moonfire-nvr.toml
configuration between version v0.7.5
and v0.7.6
.
Notice that camelCase
was introduced for use in version v0.7.6
, and that's a breaking change in comparison to previous versions (ie v0.7.5
and previous), check out v0.7.6
release notes for details.
I'd suggest you re-do your moonfire-nvr.toml
with camelCase
and set your image_name
in nvr
script to v0.7.6
(ie: image_name="scottlamb/moonfire-nvr:v0.7.6"
). Try that out and see if it'll then work as expected.
however, I now have a new issue where attempting live view from outside my local network results in the following browser error: "may not load data from blob", not sure if it's related.
I'm looking at that error in #277 . You didn't see that in v0.7.5
and do in v0.7.6
? That's an interesting data point.
The initial error you got is because of discrepant
moonfire-nvr.toml
configuration between versionv0.7.5
andv0.7.6
.Notice that
camelCase
was introduced for use in versionv0.7.6
, and that's a breaking change in comparison to previous versions (iev0.7.5
and previous), check outv0.7.6
release notes for details.I'd suggest you re-do your
moonfire-nvr.toml
withcamelCase
and set yourimage_name
innvr
script tov0.7.6
(ie:image_name="scottlamb/moonfire-nvr:v0.7.6"
). Try that out and see if it'll then work as expected.
Hi, I did the suggested procedure, but it not worked.
sudo head /usr/local/bin/nvr
#!/bin/bash -e
# Set your timezone here.
tz="America/Sao_Paulo"
image_name="scottlamb/moonfire-nvr:v0.7.6"
container_name="moonfire-nvr"
common_docker_run_args=(
--mount=type=bind,source=/var/lib/moonfire-nvr,destination=/var/lib/moonfire-nvr
--mount=type=bind,source=/etc/moonfire-nvr.toml,destination=/etc/moonfire-nvr.toml
--------------------------------------------------------------------------------------------------
cat /etc/moonfire-nvr.toml
[[binds]]
ipv4 = "0.0.0.0:8080"
allowUnauthenticatedPermissions = { viewVideo = true }
[[binds]]
unix = "/var/lib/moonfire-nvr/sock"
--------------------------------------------------------------------------------------------------
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dc9b1812888f scottlamb/moonfire-nvr:v0.7.5 "/usr/local/bin/moon…" 2 days ago Restarting (1) Less than a second ago moonfire-nvr
the procedure told by the [IronOxidizer], worked. At least the webserver ran and I could log in. Will test the liveview.
Your docker ps -a
output indicates that your docker image is v0.7.5
, it should be v0.7.6
for the camel case arguments to work. You will need to either remove or rename your existing docker image.
Here's what I used to upgrade from v0.7.5
to v0.7.6
:
sudo nvr stop
sudo docker rename moonfire-nvr moonfire-nvr-v0.7.5
/etc/moonfire-nvr.toml
config to conform with the new camelCase standard/usr/local/bin/nvr
to reflect the latest version image_name="scottlamb/moonfire-nvr:v0.7.6"
sudo nvr run
Describe the bug After the installation following the install.md at "https://github.com/scottlamb/moonfire-nvr/blob/master/guide/install.md", even after add a ip camera and use the test button, I cannot start the moonfire-nvr, checking the result of the command "nvr logs" commands, it show the below:
E20230708 12:45:11.130 main moonfire_nvr] Exiting due to error: unable to read /etc/moonfire-nvr.toml caused by: unknown field
allowUnauthenticatedPermissions
for keybinds
at line 5 column 1To Reproduce Steps to reproduce the behavior:
start the moonfire-nvr using the nvr start command;
checking the result of the command : sudo docker ps -a: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 84678d654004 scottlamb/moonfire-nvr:v0.7.5 "/usr/local/bin/moon…" 7 seconds ago Restarting (1) Less than a second ago moonfire-nvr It showed in the status column restarting.
checking the result of the command nvr logs: E20230708 12:44:42.783 main moonfire_nvr] Exiting due to error: unable to read /etc/moonfire-nvr.toml caused by: unknown field
allowUnauthenticatedPermissions
for keybinds
at line 5 column 1Backtrace: 0: failure::backtrace::internal::InternalBacktrace::new at .cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/backtrace/internal.rs:46:44 1: failure::backtrace::Backtrace::new at .cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/backtrace/mod.rs:121:35