mirror of
https://github.com/motioneye-project/motioneye.git
synced 2026-03-02 22:57:06 -05:00
Can't add motioneye camera to host in docker #1947
Labels
No labels
Android app
Arch Linux
CI/CD
CSS
FreeBSD
HTML/HTTP
Home Assistant addon
JavaScript
Python
Raspberry Pi
Stale No Activity 60 Days
bug
code format
dependencies
dev branch
docker
documentation
duplicate
enhancement
feature
help wanted
i18n/l10n
invalid
legacy motionEye
meta
motion
motionEyeOS
notourproblem
python update
question
question
security
troubleshooting
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/motioneye#1947
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arielylim on GitHub (Apr 11, 2021).
I'm trying to add a motioneye camera in another device but i'm encountering an error saying no route to host. Not sure where to go from here.
Here's the setup:
My immediate problem is i can't add the camera from my RPi0 because of the error.
I have a feeling it has something to do with this section from the docker install page, but i don't understand it.
My setup follows the basic setup in the install page (but using portainer).
I tried adding 8082:8082 but didn't work.
@starbasessd commented on GitHub (Apr 11, 2021):
Try for URL:
http://192.168.0.101:8081
assuming the IP address of the PiZeroW is 192.168.2.101
Confirm what the IP address of the Pi4 is, It should also begin 192.168.0.xxx
You should be able to ping the IP address of the PiZeroW from the Pi4.
Can you post the command you used to load and run the docker, please?
@arielylim commented on GitHub (Apr 12, 2021):
Tried using :8081 and got the same error. no route to host
Pi4: 192.168.0.100
Pi0: 192.169.0.101
Both are static IP assigned in router via mac address.
as for docker, i used portainer but i pretty much followed the instructions (i think).
volumes:
ports:
@starbasessd commented on GitHub (Apr 12, 2021):
I haven't used portainer. I do use docker (in various flavors) and I know it works. Unfortunately, I don't think I can help you unless I know more about your Pi 4 setup.
What base OS, how/which portainer installed, and command(s) used to install motionEye.
If you aren't using the docker commands given in the Wiki, are you doing a custom build? Does it include Python2.7 and the modified pip2 install, since both are beyond EOL and removed from most distros, now?
@starbasessd commented on GitHub (Apr 12, 2021):
I just made 3 attempts to use portainer to install motionEye, and failed.
I followed the instructions here:
https://pimylifeup.com/raspberry-pi-portainer/
and using the docker info from here:
docker run --name="motioneye"
-p 8765:8765
--hostname="motioneye"
-v /etc/localtime:/etc/localtime:ro
-v /etc/motioneye:/etc/motioneye
-v /var/lib/motioneye:/var/lib/motioneye
--restart="always"
--detach=true
ccrisan/motioneye:master-armhf
It would pull down the image, but would fail to even start it.
I deleted the image after each attempt.
I then pasted the above command into the ssh session, and it immediately
started up and was functional.
I did notice a setting in Advanced, Network for Host or Bridged, and tried
both. neither successful
Your thoughts on what I may have missed, as I have not played with
portainer much.
On Mon, Apr 12, 2021 at 2:47 AM arielylim @.***> wrote:
--
Thanks
Kevin Shumaker
Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel
N38° 19' 56.52"
W85° 45' 8.56"
Semper Gumby
“Don't tell people how to do things. Tell them what to do and let them
surprise you with their results.” - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
“There is no end to the good you can do if you don’t care who
gets the credit.” - C Powell
You know we're sitting on four million pounds of fuel, one nuclear weapon
and a thing that has 270,000 moving parts built by the lowest bidder. Makes
you feel good, doesn't it?
@arielylim commented on GitHub (Apr 24, 2021):
Sorry, i just had time to work on this now.
Quick overview:
I am now encountering a new problem on my RPi4.
which is weird because my
docker-compose.ymlfile doesn't have the /dev/ anywhere. Could it be pulling from the image?anything i need to change in my compose file?
Sidenote: not sure if this is important, but despite having the master-armhf as my image, when i ran the
docker-compose up -d, i saw a download for the dev version. Couldn't find it anymore as i have rebooted several times already.@starbasessd commented on GitHub (Apr 24, 2021):
As I stated, the motioneye container does not seem to play well with
portainer. On the same system, whether Pi, or PC, running it directly as a
docker command works fine. Nobody I've asked has seen a reason for it, but
they also have not been able to use the portainer wrapper. I'll leave it
up, with hopes someone else can assist.
On Sat, Apr 24, 2021 at 3:59 PM arielylim @.***> wrote:
--
Thanks
Kevin Shumaker
Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel
N38° 19' 56.52"
W85° 45' 8.56"
Semper Gumby
“Don't tell people how to do things. Tell them what to do and let them
surprise you with their results.” - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
“There is no end to the good you can do if you don’t care who
gets the credit.” - C Powell
You know we're sitting on four million pounds of fuel, one nuclear weapon
and a thing that has 270,000 moving parts built by the lowest bidder. Makes
you feel good, doesn't it?
@arielylim commented on GitHub (Apr 24, 2021):
not using portainer anymore. That one is a direct
docker-compose.ymlsimilar to what is in the /extra folder.Let me try to re-install using the CLI
@arielylim commented on GitHub (Apr 24, 2021):
Finally got motioneye to work on my server. I was also able to add my RPi0 running motioneyeos on my server to be able to access in one browser. thanks for all the help.
My last hurdle is how can i save the recordings from my camera (RPi0) to my server?
Based on some preliminary research, i think i'm supposed to pick the network share. But then it goes on to talk about samba and setting up permissions in windows -- which isn't applicable. So, not sure how to proceed.
@starbasessd commented on GitHub (Apr 24, 2021):
What is the base OS on your Pi4, where you want to safe the files?
Do you want to be able to access the files outside the docker container?
@arielylim commented on GitHub (Apr 25, 2021):
Base OS: Raspberry Pi OS
My RPi4 is using an SSD as a boot device.
And yes, I want to access it outside the container.
On Apr 24, 2021, 5:53 PM -0700, starbasessd @.***>, wrote:
@starbasessd commented on GitHub (Apr 25, 2021):
I see two options:
to do all the heavy lifting for all the cameras.
I will start the instructions for #1 shortly.
On Sun, Apr 25, 2021 at 12:41 AM arielylim @.***> wrote:
--
Thanks
Kevin Shumaker
Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel
N38° 19' 56.52"
W85° 45' 8.56"
Semper Gumby
“Don't tell people how to do things. Tell them what to do and let them
surprise you with their results.” - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
“There is no end to the good you can do if you don’t care who
gets the credit.” - C Powell
You know we're sitting on four million pounds of fuel, one nuclear weapon
and a thing that has 270,000 moving parts built by the lowest bidder. Makes
you feel good, doesn't it?
@ghost commented on GitHub (Apr 25, 2021):
Thanks! I tried the samba route. I got it to work between my Pi4 and Mac. But when I change the file storage to it on motioneye, I’m getting the error “Accessing network share failed: cannot create root directory”
I tried doing this with ufw disabled/enabled with samba allowed but both getting the same errors.
Network server: 192.168.0.100
SMB protocol: not sure but I tried choosing them all and tried but same effect
Root Directory: /motioneye/data/output/Camera1
All other fields like the username are the ones I setup. Same info I used on my Mac where I got the shared folder working.
Any special configs I need to do?
@arielylim commented on GitHub (Apr 25, 2021):
I'm now closing this issue. I found the solution here. Thanks so much for the help!
Basically, the problem is that of a UI/UX, not in the code/functionality.
For anyone who might encounter the same issue in the future, if you are using the network share share feature in the file storage area of motioneye, the key point to remember is that the Share Name is not the same as the folder/drive you named in your server (e.g. Samba).
You have to specify a folder in it directly. See image below.
So in my case, I was using the share folder as "rpi4share." I keep getting errors when i only point to that main folder. I created a folder inside it called "motioneye" and added another folder for "Camera1"
Enter your login credentials and keep the root directory as is. Hit Test Share to make sure it's working, then apply the settings.