jshridha / docker-motioneye Goto Github PK
View Code? Open in Web Editor NEWA surveillance solution base on Motion and Docker
License: MIT License
A surveillance solution base on Motion and Docker
License: MIT License
VERSION/TAGS
0.35.2
0.35.1
0.35
OS
all version tested on (2) machine:
OpenMediaVault 3.0.7.4 / docker version 17.03.1-ce
Ubuntu 16.04 / docker version 17.04.0-ce
SYMPTOM
-motioneye cannot load network camera images
-motioneye reports error after restore backup (camera images never appear)
DETAILS
Looks like motion crashes with 6a97d1a or fails in error (4.0.1+git6a97d1a)
I was able to export working motioneye container that used motion 8a1b9a9 (4.0.1+git8a1b9a9), all was OK
This error seems to recently started in last 30days. I previously moved to new machine without error.
Recreating image+container on same machine now result in errors.
not sure if it is related to Motion-Project/motion#379
also, would it be possible to utilize specific motion build to prevent error
https://github.com/Motion-Project/motion has a new dependency in .travis.yml that needs libavdevice-dev which is not present in the container. Apt repo needs to be updated then libavdevice-dev needs to be installed.
Workaround is:
docker exec -ti container_name /bin/bash
apt-get update
apt-get install libavdevice-dev
/usr/local/bin/installMotion.sh
exit
docker stop container_name
docker start container_name
I have a next problem here.
When i use motion without the motioneye - works fine, connects to my ip-camera, autorize there, gives stream, motion-capture, etc,etc.
But, when i use your image, and add same camera via MotionEye GUI:
If i add only a url to it - motioneye understands that login and password needed
when i add user and password - no errors, like we passed the authentication.
BUT, no video from camera in such case. Not a single image. While so, camera itself is working ok, network is ok, etc.
Probably this issue might be related to the authentication method, but i`m not sure. With a basic- motion (that works) i have to use an url with username, like:
netcam_url rtsp://[USERNAME]:[PASSWORD]@[IPADDRESS]:[PORT]/cam/realmonitor?channel=1&subtype=1
And this works.
If i, using the motion itself, remove username and password from the string, and add it as the part of the
; netcam_userpass value
parameter with a proper username and password - its not working. As i
ve seen in configs generated by motioneye, authentication isn
t written into the url.
Also, i cant connect the camera via motioneye`s ui, using the full-string with username and passwords in it.
Actually ive realised that this question probably should be adressed to the motioneye
s autor, but perhaps you could advice something while i`ll ask him same question.
Is it possible to change to port of the motion-stream server
by using the environment variables?
If so, what is the exact variable for change that port
Cant use your docker. Permission denied on device video0
docker logs motioneye
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/20_setup_motion.sh...
ownership of ‘/config/motion.conf’ retained as nobody:users
ownership of ‘/config/motioneye.conf’ retained as nobody:users
ownership of ‘/config/prefs.json’ retained as nobody:users
ownership of ‘/config’ retained as nobody:users
mode of ‘/config’ retained as 0775 (rwxrwxr-x)
mode of ‘/config/motion.conf’ retained as 0775 (rwxrwxr-x)
mode of ‘/config/motioneye.conf’ retained as 0775 (rwxrwxr-x)
mode of ‘/config/prefs.json’ changed from 0644 (rw-r--r--) to 0775 (rwxrwxr-x)
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 20
Oct 5 20:08:00 5518f14a126f syslog-ng[29]: syslog-ng starting up; version='3.5.3'
INFO: hello! this is motionEye server 0.33.2
INFO: cleanup started
INFO: wsswitch started
INFO: tasks started
INFO: mjpg client garbage collector started
INFO: server started
Failed to open /dev/video0: Permission denied
timemachine:
container_name: motioneye
image: jshridha/motioneye:latest
environment:
- TIMEZONE="Europe/Berlin"
volumes:
- /root/.motioneye:/config
- /media/19ad4901-a651-4001-9306-425956e2c501/Motioneye:/home/nobody/media
ports:
- "8081:8081"
- "8765:8765"
devices:
- "/dev/video0:/dev/video0"
Timezone does not seem to be correct even when using:
-e TIMEZONE="America/New_York"
Would also love to set hostname. Tried variable with no effect:
-e HOSTNAME="MYHOSTNAME"
Any suggestions?
Can we install the openmediavault motioneye docker on the raspberry pi device?
Is there an installation article or video example if the docker is available?
Hi,
When i add a camera i get error: Failed writing header
Previous version worked fine.
I've created host folders to map the config and media folders from the container to the host and even chown 777 to test them and get the following errors:
cp: cannot create regular file ‘/config/motion.conf’: Permission denied
cp: cannot create regular file ‘/config/motioneye.conf’: Permission denied
mkdir: cannot create directory ‘/home/nobody/motioneye/conf’: Permission denied
mkdir: cannot create directory ‘/home/nobody/motioneye/log’: Permission denied
mkdir: cannot create directory ‘/home/nobody/motioneye/run’: Permission denied
mkdir: cannot create directory ‘/home/nobody/motioneye/media’: Permission denied
chown: cannot read directory ‘/home/nobody/motioneye’: Permission denied
chmod: changing permissions of ‘/home/nobody/motioneye’: Permission denied
chmod: cannot read directory ‘/home/nobody/motioneye’: Permission denied
ln: failed to create symbolic link ‘/home/nobody/motioneye/conf/motion.conf’: No
such file or directory
Am I missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.