Code Monkey home page Code Monkey logo

Comments (23)

HaraldRuppert avatar HaraldRuppert commented on May 30, 2024

Hi,
I'm facing the same here. Latest Debian Buster on an RPi3B. Camera works.
Does anyone have any idea?

Thanks

from fruitnanny.

J4nsen avatar J4nsen commented on May 30, 2024

Hi, I sorta worked around this by running the gstreamer-video part on the host.

  • Installing and building the gstreamer plugin: https://ivadim.github.io/2017-08-21-fruitnanny/#4-audio-and-video-pipeline-setup
  • Running it: gst-launch-1.0 -v rpicamsrc name=src preview=0 exposure-mode=night fullscreen=0 bitrate=1000000 annotation-mode=time+date annotation-text-size=20 ! video/x-h264,width=960,height=540,framerate=12/1,profile=constrained-baseline ! queue max-size-bytes=0 max-size-buffers=0 ! h264parse ! rtph264pay config-interval=1 pt=96 ! queue ! udpsink host=127.0.0.1 port=5004 sync=false
  • Disabling gstreamer-video in the docker-compose.yaml: Commenting out L17-29

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.

from fruitnanny.

c0llys avatar c0llys commented on May 30, 2024

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.

from fruitnanny.

bureus avatar bureus commented on May 30, 2024

Me 2

from fruitnanny.

ruaanmaraisklem avatar ruaanmaraisklem commented on May 30, 2024

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

from fruitnanny.

dtpetersen avatar dtpetersen commented on May 30, 2024

@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 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

from fruitnanny.

ruaanmaraisklem avatar ruaanmaraisklem commented on May 30, 2024

@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 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

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

from fruitnanny.

ndallarmellinatxt avatar ndallarmellinatxt commented on May 30, 2024

@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 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

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!

from fruitnanny.

J4nsen avatar J4nsen commented on May 30, 2024

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

Nice!

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.

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.

from fruitnanny.

KoJaCx avatar KoJaCx commented on May 30, 2024

@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 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

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

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.

from fruitnanny.

ruaanmaraisklem avatar ruaanmaraisklem commented on May 30, 2024

@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 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

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

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:

  1. In /opt/fruitnanny/docker/gstreamer type docker build Dockerfile
  2. Then run docker images to see what new image has been created
  3. Then in /opt/fruitnanny docker-compose.yml change the image for gstreamer-video to the new image you created in step 1, the name is the one you found in step 2
  4. Then rerun the docker-compose.yml to redeploy the fruitnanny application
  5. Profit...

Well theoretically that should be fine, alternatively if you don't want to build the image yourself you could just use klemmie117/fruitnanny-gstreamer-fix in step 3 as the image name.

Let me know if you're still having trouble and I can try and assist

from fruitnanny.

KoJaCx avatar KoJaCx commented on May 30, 2024

Thanks for your reply but when i used "docker build Dockerfile" after a few minutes i have this message

Step 4/5 : COPY docker/gstreamer/audio_entry.sh /
COPY failed: file not found in build context or excluded by .dockerignore: stat docker/gstreamer/audio_entry.sh: file does not exist

and after when i used "docker images" i saw

REPOSITORY                    TAG       IMAGE ID       CREATED          SIZE
<none>                        <none>    da4312697e3f   53 seconds ago   553MB

so i think the command was not finished correclty any idea ?

from fruitnanny.

ruaanmaraisklem avatar ruaanmaraisklem commented on May 30, 2024

Thanks for your reply but when i used "docker build Dockerfile" after a few minutes i have this message

Step 4/5 : COPY docker/gstreamer/audio_entry.sh /
COPY failed: file not found in build context or excluded by .dockerignore: stat docker/gstreamer/audio_entry.sh: file does not exist

and after when i used "docker images" i saw

REPOSITORY                    TAG       IMAGE ID       CREATED          SIZE
<none>                        <none>    da4312697e3f   53 seconds ago   553MB

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 audio_entry.sh to the docker image but can't find it. Are you sure you're in the /opt/fruitanny/docker/gstreamer directory when running docker build Dockerfile cause the audio_entry.sh and audio_stream.sh (it'll complain about this one too if it can't find it) are both in this directory. I had a similar problem and then just cd'd to the correct directory and everything went well after that

from fruitnanny.

KoJaCx avatar KoJaCx commented on May 30, 2024

maybe the problem is the command i used to build the Dockerfile because

cd /opt/fruitnanny/docker/gstreamer 
docker build Dockerfile         
unable to prepare context: context must be a directory: /opt/fruitnanny/docker/gstreamer/Dockerfile

so i used this command :
docker build /opt/fruitnanny/docker/gstreamer

and it's works but i have always this error

Step 4/5 : COPY docker/gstreamer/audio_entry.sh / COPY failed: file not found in build context or excluded by .dockerignore: stat docker/gstreamer/audio_entry.sh: file does not exist

from fruitnanny.

ruaanmaraisklem avatar ruaanmaraisklem commented on May 30, 2024

maybe the problem is the command i used to build the Dockerfile because

cd /opt/fruitnanny/docker/gstreamer 
docker build Dockerfile         
unable to prepare context: context must be a directory: /opt/fruitnanny/docker/gstreamer/Dockerfile

so i used this command :
docker build /opt/fruitnanny/docker/gstreamer

and it's works but i have always this error

Step 4/5 : COPY docker/gstreamer/audio_entry.sh / COPY failed: file not found in build context or excluded by .dockerignore: stat docker/gstreamer/audio_entry.sh: file does not exist

So what you do is cd /opt/fruitnanny/docker/gstreamer then just run docker build . the . here tells docker that the Dockerfile is in the current directory so it knows to run it and then it'll try to copy the files from the current directory, I just tried it again and it should work on your side as well.

Alternatively you can edit the Dockerfile using sudo nano /opt/fruitnanny/docker/gstreamer/Dockerfile and change line 6 & 7 from copy audio_entry.sh / and copy audio_stream.sh / to copy /opt/fruitnanny/docker/gstreamer/audio_entry.sh / and copy /opt/fruitnanny/docker/gstreamer/audio_stream.sh /.

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 /opt/fruitnanny docker-compose.yml I'm not sure on which lines but just change the ivadim/fruitnanny-gstreamer container to klemmie117/fruitnanny-gstreamer-fix then you can rerun the installation as described in the project's Github page

from fruitnanny.

KoJaCx avatar KoJaCx commented on May 30, 2024

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 !

from fruitnanny.

bureus avatar bureus commented on May 30, 2024

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.

from fruitnanny.

ndallarmellinatxt avatar ndallarmellinatxt commented on May 30, 2024

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

from fruitnanny.

J4nsen avatar J4nsen commented on May 30, 2024

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.

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.

This is my workaround, which i posted some weeks ago

from fruitnanny.

ndallarmellinatxt avatar ndallarmellinatxt commented on May 30, 2024

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.

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.

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

from fruitnanny.

nine86 avatar nine86 commented on May 30, 2024

I tried some of the solutions offered here. At first I was able to stream the video but when I tried it again it stops loading. Feeling really frustrated right now. Super appreciate any help available!
Untitled

I'm not using a DHT sensor but I have a mic plugged into my pi3 (but even the audio is not working).

from fruitnanny.

nine86 avatar nine86 commented on May 30, 2024

I tried some of the solutions offered here. At first I was able to stream the video but when I tried it again it stops loading. Feeling really frustrated right now. Super appreciate any help available!
Untitled

I'm not using a DHT sensor but I have a mic plugged into my pi3 (but even the audio is not working).

As soon as I finished posting this it occurred to me that whenever the HDMI was unplugged the video would stream fine. Now to figure out the audio issue.

from fruitnanny.

egoitz89 avatar egoitz89 commented on May 30, 2024

@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 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

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

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:
sudo nano /opt/fruitnanny docker-compose.yml
Edit line 19 ->
# image: ivadim/fruitnanny-gstreamer
image: klemmie117/fruitnanny-gstreamer-fix
Rerun:
docker-compose up -d

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.

from fruitnanny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.