-
Notifications
You must be signed in to change notification settings - Fork 136
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
Exiting due to error: unable to read /etc/moonfire-nvr.toml caused by: unknown field allowUnauthenticatedPermissions
for key binds
at line 5 column 1
#285
Comments
the content of /etc/moonfire-nvr.toml pi@raspberrypi:~/moonfire-nvr $ cat /etc/moonfire-nvr.toml [[binds]] |
Removing the lines
and
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: |
The initial error you got is because of discrepant Notice that I'd suggest you re-do your |
I'm looking at that error in #277 . You didn't see that in |
Hi, I did the suggested procedure, but it not worked.
the procedure told by the [IronOxidizer], worked. At least the webserver ran and I could log in. Will test the liveview. |
Your Here's what I used to upgrade from
|
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
<failure::backtrace::Backtrace as core::default::Default>::default
at .cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/backtrace/mod.rs:140:13
2: <failure::error::error_impl::ErrorImpl as core::convert::From>::from
at .cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/error/error_impl.rs:19:17
<failure::error::Error as core::convert::From>::from
at .cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/error/mod.rs:36:18
3: <core::result::Result<T,F> as core::ops::try_trait::FromResidual<core::result::Resultcore::convert::Infallible,E>>::from_residual
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/result.rs:2064:27
moonfire_nvr::cmds::run::read_config
at src/server/src/cmds/run/mod.rs:133:18
moonfire_nvr::cmds::run::run
at src/server/src/cmds/run/mod.rs:138:18
4: moonfire_nvr::Args::run
at src/server/src/main.rs:68:29
moonfire_nvr::main
at src/server/src/main.rs:143:9
5: core::ops::function::FnOnce::call_once
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5
std::sys_common::backtrace::__rust_begin_short_backtrace
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:122:18
6: std::rt::lang_start::{{closure}}
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:145:18
7: core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:259:13
std::panicking::try::do_call
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40
std::panicking::try
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19
std::panic::catch_unwind
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14
std::rt::lang_start_internal::{{closure}}
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:128:48
std::panicking::try::do_call
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40
std::panicking::try
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19
std::panic::catch_unwind
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14
std::rt::lang_start_internal
at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:128:20
8: main
9: __libc_start_main
10:
Expected behavior
I expected to open the webpage on the http://localhost:8080
Screenshots
If applicable, add screenshots to help explain your problem.
Server (please complete the following information):
docker ps
+docker images
pi@raspberrypi:~/moonfire-nvr $ sudo docker ps --no-trunc
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dc9b1812888f7d42134602da62af720039de6bd25f6ded7a01d0b2f0df408f09 scottlamb/moonfire-nvr:v0.7.5 "/usr/local/bin/moonfire-nvr run" 8 minutes ago Restarting (1) 22 seconds ago moonfire-nvr
If building from git:
git describe --dirty
+moonfire-nvr --version
Attach a log file. Run with the
RUST_BACKTRACE=1
environment variable set if possible.Camera (please complete the following information):
Desktop (please complete the following information):
Additional context
pi@raspberrypi:~/moonfire-nvr $ sudo cat /usr/local/bin/nvr
#!/bin/bash -e
Set your timezone here.
tz="America/Sao_Paulo"
image_name="scottlamb/moonfire-nvr:v0.7.5"
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
)
case "$1" in
run)
shift
exec docker run
--detach=true
--restart=unless-stopped
"${common_docker_run_args[@]}"
--name="${container_name}"
"${image_name}"
run
"$@"
;;
start|stop|logs|rm)
exec docker "$@" "${container_name}"
;;
pull)
exec docker pull "${image_name}"
;;
*)
exec docker run
--interactive=true
--tty
--rm
"${common_docker_run_args[@]}"
"${image_name}"
"$@"
;;
esac
The text was updated successfully, but these errors were encountered: