-
Notifications
You must be signed in to change notification settings - Fork 57
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
gstreamer-video cannot access camera #39
Comments
Hi, Thanks |
Hi, I sorta worked around this by running the gstreamer-video part on the host.
However, I faced the next major blocker. nginx reports lots of 502 Errors (Bad Gateway), which results in a broken webpage. With some luck it loads and works. |
Hi, just wanted to let you know that I am having the same issues. No video, no telemetry from the sensor and the web page is broken. |
Me 2 |
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughly |
@ruaanmaraisklem, I've been hitting a wall on this issue so some further explanation your solution for the docker container would be greatly appreciated!
|
I basically just rebuilt the Docker container by using the Dockerfile provided in /opt/fruitnanny/docker/gstreamer. I then pushed this container up to my own docker hub profile and now I use this newly created container to pull down in the Dockerfile in /opt/fruitnanny. So in the Dockerfile in /opt/fruitnanny everywhere where the file references ivadim/fruitnanny-gstreamer I've replaced this with klemmie117/fruitnanny-gstreamer-fix, so if you'd like you are welcome to do the same and pull the image that I built to solve this issue |
thanks, I just followed what you indicated and the webcam has started working again! |
Nice!
I digged a little deeper. The Nginx container seems to have a little to none timeout for the response. I tried to fix this in its container, but was not successful. Ultimately I just installed nginx on the host and used the configs from the repo, which is working fine. Additionally, the app-container is missing the gpio program to toggle the infra-red leds. I was able to fix this by installing the wiringpi in the app-container and committing the changes to the image. |
Hi I have the same problem, i find the "Docker file" in /opt/fruitnanny/docker/gstreamer folder but after I'm totally lost what I'm supposed to do ? Could you explain step by step ? Thanks a lot. |
@KoJaCx So what you're going to want to do is:
Well theoretically that should be fine, alternatively if you don't want to build the image yourself you could just use Let me know if you're still having trouble and I can try and assist |
Thanks for your reply but when i used "docker build Dockerfile" after a few minutes i have this message
and after when i used "docker images" i saw
so i think the command was not finished correclty any idea ? |
You are correct, it did not finish. It's trying to copy the file |
maybe the problem is the command i used to build the Dockerfile because
so i used this command : and it's works but i have always this error
|
So what you do is Alternatively you can edit the Dockerfile using Then if none of these 2 options work you can just pull the container that I created instead of the original container, this change would be in |
pfiou it's working with your last option, i edit the "docker-compose.yml" and replace the line for gstreamer-video. Thank you so much for your help ! |
Awesome work! I got it to run as well so thanks alot @ruaanmaraisklem. But I have multiple issues with the site now, seems to be related to nginx, get random 504 on scripts and css. Do you guys see similar behavior? It works after a couple of refreshes. But cant understand why nginx is behaving like it does. |
I'm in the same situation as you |
This is my workaround, which i posted some weeks ago |
i didn't see your solution, i also tried to install nginx locally and everything works again, thanks |
Hello, I am also having some troubles to put my camera working. I tried to rebuild gstreamer module with klemmie117/fruitnanny-gstreamer-fix but did not archive it. This is what I did: Do I have to make something more to fix it? Thanks! p.d update: after several tries, now the camera works, but not properly. I can see the image about 5 seconds, and it keeps shutdown another 15 seconds. And starts the cycle again. So, I understand that it is restarting continuously. |
Hi,
first of all, thanks for this great project.
I'm following the docker installation guide and I have problems starting the gstreamer container. It seems to have problems accessing the camera:
I've verified that the camera works on the host, i.e., I can take pictures with
raspistill
as the pi user.Any ideas how to proceed? Could this be a problem of outdated gstreamer build in the container and the host system/kernel?
I'm on kernel 5.10.17-v7+.
Thanks, Jan
The text was updated successfully, but these errors were encountered: