Computer camera: Webcam stream not loaded


#1

I install octoprint on my laptop (linux ubuntu) with its integrated webcam it works (led on) but I can not have the video stream.
The rest works perfectly finally from what I could test.
when I run I'm no exception to lift.
it is highly likely that this is a configuration but I do not know where to do it
honestly I do not know what to give you as a file to help you
here is my webcam file

#!/bin/bash
# Start / stop streamer daemon

case "$1" in
    start)
        sudo /home/octoprint/OctoPrint/scripts/webcamDaemon >/dev/null 2>&1 &
        echo "$0: started"
        ;;
    stop)
        sudo pkill -x webcamDaemon
        sudo pkill -x mjpg_streamer
        echo "$0: stopped"
        ;;
    *)
        echo "Usage: $0 {start|stop}" >&2
        ;;
esac

and files webcamdeamon :

#!/bin/bash
# Start / stop streamer daemon

case "$1" in
    start)
        sudo /home/octoprint/OctoPrint/scripts/webcamDaemon >/dev/null 2>&1 &
        echo "$0: started"
        ;;
    stop)
        sudo pkill -x webcamDaemon
        sudo pkill -x mjpg_streamer
        echo "$0: stopped"
        ;;
    *)
        echo "Usage: $0 {start|stop}" >&2
        ;;
esac

'm strong neither in programming nor in English thanks to use simple words

Thanks!
pbwebcam|690x388
send error
HTTPConnectionPool(host='0.0.0.0', port=5001): Max retries exceeded with url: /?action=snapshot (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))