Closed eggnog-armed closed 2 years ago
Thanks for reporting!
"docker run" requires at least 1 argument.
Argh. The /usr/local/bin/nvr
script on the install guide is broken. It has comments and blank lines in the middle of the docker run
command, but they end the command prematurely. If you remove these lines, it should work.
Embarrassingly, it's been broken for months (since 30cea5c). Not only did I not notice (ideally I'd do a fresh install on each release to test the docs, but I haven't done it recently) but you're the first to mention it. Best guess is everyone else either already had their nvr
script in place, are building from source (I know several people are using the build.md instructions instead), or noticed and fixed this on their own installs without saying anything.
Anyway, I'll fix the guide. As v0.7.1
's matching docs are broken, I think I'll roll a v0.7.2
shortly and recommend that (rather than say having a branch for fixes to each release's docs). There are several fixes/improvements waiting for a release anyway.
The docker thing was an experiment to improve ease of installation, and it hasn't been totally successful. I'd like to switch to a zero-dependency precompiled binary (#160) but am not quite there yet.
Great thanks! that makes sense. I'm glad to help and will give it a go later tonight.
Thanks I can confirm I can install moonfire nvr by removing the commented and blank lines.
Hi scottlamb
Thanks for your quick response before. Perhaps I should try and earlier tag of install.md than 0.7.1 as its not working for me unfortunately. I really like the look of this NVR so am keen to get it working!
Description of Bug I can't get moonfire-nvr working by following install.md tag 0.7.1. nvr run fails with the following
I'm using a raspberry pi 2 with a clean installation of archlinux armv7. I'm not familiar with docker so my apologies if I have missed something. I think docker is not finding the moonfire-nvr image locally even through docker image ls shows it is there.
If I run the following command I get something more hopeful
To Reproduce run the following commands mainly from install.md tag 0.7.1:
0.7.1 still wants json because json is referenced in the 0.7.1 bash script I think. I therefore switch to master install.md and create json.
This allows nvr init to run successfully
I then configure a sample folder, camera and user with the config tool successfully. nvr run "docker run" requires at least 1 argument. See 'docker run --help'.
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container
sudo nvr config 2>debug-log
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Server (please complete the following information):
docker ps
+docker images
git describe --dirty
+moonfire-nvr --version
RUST_BACKTRACE=1
environment variable set if possible.Camera (please complete the following information):
V2.0.0.1215_16091800
]Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here. I'm using a raspberry pi 2 with a clean installation of archlinux armv7.