Pi Camera V2.1 issues

I installed the BTT SKR Mini E3 V2.0 w/ TFT35 E3 several weeks ago and Put the Marlin 2.0 bug fix on it. Things seemingly went well til yesterday. After mounting the Pi cam atop the top cross member of my E3 Pro looking downward onto the building platform I decided the view would be better mounted on the right side of the x axis. I printed the new bracket and case and transferred the camera. I lost the image. Thinking maybe I had damaged the ribbon I changed it out but that did no good. I have rebooted my PC as well as my RPi and printer but that doesn't help. I get a 503 error code on my octopod app and Octoprint says web stream not loaded. When I test the connection in settings I get " If you see your webcam stream below, the entered stream URL is ok. But I don't see any stream. I am wondering if I should go back and try the 32 bit version of OctoPi like you suggested previously. I am pretty sure I'm running the 64 bit version of .18 if I am getting my versions correctly. I recall the .17 download I initially tried didn't work at all. My RPI is the 8 gig 4B.

As an aside I also noticed the Arc Welder plugin doesn't give a version number in the software updater and gives an error message when it tried to update. It refers me to an error log which I do not know how to find. I did comment the arc support line in the marlin firmware when I loaded it onto the BTT SKR Mini E3. Are there other lines I needed to comment perhaps? Do you think my two problems could be related?plugin_arc_welder (1).log (861 Bytes)

I just found a log for arc welder that may or may not help with the plugin problem.

I'm trying to find the Pi cam log but to do that I need to log directly into the Pi via SSH. I use Putty and it asks for a username and password which I forgot. I assume the solution is to reburn the image file to the SD card for the RPi and start over and write the username and password down this time. I will report back with the log for the Pi Cam and can start a new thread about arc welder if preferred. For arc welder it seems to work so i'm guessing there may be a bug.

My setup:

browser.user_agent: Mozilla/5.0 (iPad; CPU OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/86.0.4240.93 Mobile/15E148 Safari/604.1
connectivity.connection_check: 8.8.8.8:53
connectivity.connection_ok: true
connectivity.enabled: true
connectivity.online: true
connectivity.resolution_check: octoprint.org
connectivity.resolution_ok: true
env.hardware.cores: 4
env.hardware.freq: 1500
env.hardware.ram: 8141463552
env.os.bits: 64
env.os.id: linux
env.os.platform: linux
env.plugins.pi_support.model: Raspberry Pi 4 Model B Rev 1.4
env.plugins.pi_support.octopi_version: 0.18.1-64bit-beta
env.plugins.pi_support.throttle_state: 0x0
env.python.pip: 20.2.1
env.python.version: 3.7.3
env.python.virtualenv: true
octoprint.safe_mode: false
octoprint.version: 1.5.0rc3
printer.firmware: Marlin bugfix-2.0.x (Nov 9 2020

Well, I got around the SSH login by creating a text file with the password on it. Thanks to the person on another thread who suggested that.

Now that I can log in to my RPi via SSH from my desktop I can’t find the cameras files listed in Gina’s awesome post on getting the PiCam to work. Putty is a very basic terminal and I figured out how to get a list of files but none seem to match the ones she mentions. The user interface is not very user friendly and I feel like I am missing a crucial piece of information needed to pull those files.

Check the connector of the camera module itself on the camera board. Maybe it has loosened
If that doesn't help upload the webcamd.log

Yeah you need the 0.18.0 image for that pi :slight_smile:

1 Like

Running Pi 4 8GB with Pi Camera 2.1 stable at the moment with no issues at present.
Running 0.18.0 rc1 32-Bit

1 Like

Thank you. I have checked and rechecked both the direction and seating of the ribbon both on the board and on the camera multiple times. It isn't a deficit of knowledge or skill in this regard. No overt damage to the board or camera are noted. the cable was a little deformed by the enclosure but I tried a brand new cable and at this point everything is out of the enclosure and nothing is kinked or deformed. I imaged a new copy of .18 64bit Octopi on a new card and set it up but the camera still isn't running. I ordered a new camera to see if that is the issue. It should be here tomorrow. Also considering trying the 32 bit version of Octopi. The only last thing is the webcam server logs on the Pi. I know how to log on vis SSH but i am not facile enough with raspbian to know how to access those files. I tried attaching a .txt file of the SSH screen from yesterday but format isnt recognized by this editor.

im using the 64bit version. do you think that may be the problem? The camera ran well for a couple weeks on the 64 bit version until I moved it from one printed case to another. I didn't shut down the Raspberry but I didn't disconnect the cable either-just moved it from one printed box to another.

Not the ribbon cable - the connection of the camera module itself

1 Like

/var/webcamd.log is the webcam log, might help. Every time you do something like disconnect & reconnect, run sudo service webcamd restart and that will make it look for the camera & start up the streamer - if it gets disconnected, the stream stops (for obvious reasons...) so it needs to be restarted, if you haven't been already.

Upload files using drag-and-drop, or the button with an up-arrow: image

I see. Is that a snap fit connection or a soldered one? I will take a closer look but was afraid to mess with it for fear of damaging it. I'll try and get a picture of what I have but like I said there is no overt sign of damage. The lens isn't hanging off the board and the board isn't cracked, scraped or burned.

Here are some pics of my cam-

I ran sudo service webcam restart last night and got back multiple lines of text which might have indicated the problem. i didn't know how to get what is was seeing on the terminal to the discussion board here so I copied it to a pasteboard than created a .txt file using notepad++. Unfortunately this discussion board wont allow me to upload .txt extensions using drag and drop or the up arrow symbol.

this is the message I got when I ran sudo service webcam restart

pi@octopi:~ sudo service webcamd restart Job for webcamd.service failed because a timeout was exceeded. See "systemctl status webcamd.service" and "journalctl -xe" for details. pi@octopi:~ service webcamd status
● webcamd.service - the OctoPi webcam daemon with the user specified config
Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset:
Active: activating (start) since Sat 2020-11-28 00:50:22 GMT; 1min 17s ago
Cntrl PID: 6841 (webcamd)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/webcamd.service
β”œβ”€6841 /bin/bash /root/bin/webcamd
└─6852 sleep 120

Nov 28 00:50:22 octopi systemd[1]: Starting the OctoPi webcam daemon with the us
lines 1-10/10 (END)...skipping...
● webcamd.service - the OctoPi webcam daemon with the user specified config
Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset: enabled)
Active: activating (start) since Sat 2020-11-28 00:50:22 GMT; 1min 17s ago
Cntrl PID: 6841 (webcamd)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/webcamd.service
β”œβ”€6841 /bin/bash /root/bin/webcamd
└─6852 sleep 120

Nov 28 00:50:22 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
~
~
~
~

the tildes continued many more lines then line 133 ends with
lines 1-10/10 (END)
What does this mean?
2020-11-28T17:35:00Z

This morning I burned a new copy of Octopi .18 64 bit onto a new SD card and tried starting over. When I ran sudo service webcam restart this is what I got-

pi@octopi:~ sudo service webcam restart Failed to restart webcam.service: Unit webcam.service not found. pi@octopi:~

2020-11-28T18:05:00Z

This appears to be the webcam log. Again, I don't know how to post it without copy/paste as I copy it to notepad and save at .txt but can't upload that file type.

login as: pi
pi@octopi.local's password:
Linux octopi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Nov 28 09:30:46 2020 from fe80::6c2a:27c8:ed8e:ffda%wlan0


Access OctoPrint from a web browser on your network by navigating to any of:

http://octopi.local
http://192.168.0.111
http://192.168.0.115

https is also available, with a self-signed certificate.

This image comes without a desktop environment installed because it's not
required for running OctoPrint. If you want a desktop environment you can
install it via

sudo /home/pi/scripts/install-desktop

OctoPrint version : 1.4.2
OctoPi version : 0.18.0

pi@octopi:~ $ sudo journalctl -u webcamd
[sudo] password for pi:
-- Logs begin at Thu 2020-08-20 03:47:33 PDT, end at Sat 2020-11-28 10:00:53 PST
Aug 20 03:47:39 octopi systemd[1]: Starting the OctoPi webcam daemon with the us
Aug 20 03:47:39 octopi root[450]: Starting USB webcam
Aug 20 03:47:39 octopi mjpg_streamer[451]: MJPG-streamer [451]: starting applica
Aug 20 03:47:39 octopi mjpg_streamer[451]: MJPG-streamer [451]: MJPG Streamer Ve
Aug 20 03:47:40 octopi mjpg_streamer[451]: MJPG-streamer [451]: Using V4L2 devic
Aug 20 03:47:40 octopi mjpg_streamer[451]: MJPG-streamer [451]: Desired Resoluti
Aug 20 03:47:40 octopi mjpg_streamer[451]: MJPG-streamer [451]: Frames Per Secon
Aug 20 03:47:40 octopi mjpg_streamer[451]: MJPG-streamer [451]: Format..........
Aug 20 03:47:40 octopi mjpg_streamer[451]: MJPG-streamer [451]: TV-Norm.........
Aug 20 03:47:40 octopi mjpg_streamer[451]: MJPG-streamer [451]: init_VideoIn fai
Aug 20 03:47:41 octopi systemd[1]: webcamd.service: Succeeded.
Aug 20 03:47:41 octopi systemd[1]: Started the OctoPi webcam daemon with the use
Aug 20 03:47:41 octopi systemd[1]: webcamd.service: Service RestartSec=100ms exp
Aug 20 03:47:41 octopi systemd[1]: webcamd.service: Scheduled restart job, resta
Aug 20 03:47:41 octopi systemd[1]: Stopped the OctoPi webcam daemon with the use
Aug 20 03:47:41 octopi systemd[1]: Starting the OctoPi webcam daemon with the us
Aug 20 03:47:41 octopi root[498]: Starting USB webcam
Aug 20 03:47:41 octopi mjpg_streamer[499]: MJPG-streamer [499]: starting applica
Aug 20 03:47:41 octopi mjpg_streamer[499]: MJPG-streamer [499]: MJPG Streamer Ve
Aug 20 03:47:41 octopi mjpg_streamer[499]: MJPG-streamer [499]: Using V4L2 devic
Aug 20 03:47:41 octopi mjpg_streamer[499]: MJPG-streamer [499]: Desired Resoluti
Aug 20 03:47:41 octopi mjpg_streamer[499]: MJPG-streamer [499]: Frames Per Secon
lines 1-23

It's snap fit
you could loosen it with you finger nail and just press it on again afterwards

The output of journalctl -u webcamd is cut off in the middle. Maybe you could try to copy it from a fullscreen putty window

Well, I got a new camera today and put it on but my video still doesn't work. I'll try the restart command from the SSH terminal when I am between prints. If that doesn't work I'll see what the webcam log reads. I was getting some weird messages when trying to update arc welder-like it couldn't find the update even though it was working. I uninstalled then reinstalled the plug in but the error message persisted. That cleared up when I imaged a new copy of OctoPi .18 64 bit, reconfigured the firmware and reinstalled the plugin but then I had a bit of trouble getting the Octopod app to recognize my printer. I manually entered the IP address and now it intermittently works. The Pi cam still doesn't work. I have to think either I'm not configured properly somewhere or there are bugs. Perhaps I should try the 32 bit OctoPi?

Before you try that post me the full line of the V4L2 device from sudo journalctl -u webcamd

I just want to know if the right device was selcted.
This is how it should look like

Aug 20 12:55:59 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Aug 20 12:55:59 octopi root[414]: Starting USB webcam
Aug 20 12:55:59 octopi mjpg_streamer[417]: MJPG-streamer [417]: starting application
Aug 20 12:55:59 octopi mjpg_streamer[417]: MJPG-streamer [417]: MJPG Streamer Version: git rev: 85f89a8c321e799fabb1693c5d133f3fb48ee748
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: Using V4L2 device.: /dev/video0
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: Desired Resolution: 640 x 480
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: Frames Per Second.: 10
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: Format............: JPEG
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: TV-Norm...........: DEFAULT
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: www-folder-path......: ./www-octopi/
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: HTTP TCP port........: 8080
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: HTTP Listen Address..: 127.0.0.1
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: username:password....: disabled
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: commands.............: disabled
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: starting input plugin input_uvc.so
Aug 20 12:56:00 octopi mjpg_streamer[417]: MJPG-streamer [417]: starting output plugin: output_http.so (ID: 00)
Aug 20 12:56:00 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.

pi@octopi:~ $ sudo journalctl -u webcamd

Sorry, you weren't getting to see the entire log entry. Here it is-

pi@octopi:~ $ sudo journalctl -u webcamd
[sudo] password for pi:
-- Logs begin at Sat 2020-11-28 16:28:08 PST, end at Sat 2020-11-28 18:26:56 PST
Nov 28 16:28:12 octopi systemd[1]: Starting the OctoPi webcam daemon with the us
Nov 28 16:28:12 octopi root[492]: Starting USB webcam
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: starting applica
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: MJPG Streamer Ve
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: Using V4L2 devic
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: Desired Resoluti
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: Frames Per Secon
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: Format..........
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: TV-Norm.........
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: init_VideoIn fai
Nov 28 16:28:13 octopi systemd[1]: webcamd.service: Succeeded.
Nov 28 16:28:13 octopi systemd[1]: Started the OctoPi webcam daemon with the use
Nov 28 16:28:13 octopi systemd[1]: webcamd.service: Service RestartSec=100ms exp
Nov 28 16:28:13 octopi systemd[1]: webcamd.service: Scheduled restart job, resta
Nov 28 16:28:13 octopi systemd[1]: Stopped the OctoPi webcam daemon with the use
Nov 28 16:28:13 octopi systemd[1]: Starting the OctoPi webcam daemon with the us
Nov 28 16:28:13 octopi root[549]: Starting USB webcam
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: starting applica
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: MJPG Streamer Ve
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: Using V4L2 devic
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: Desired Resoluti
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: Frames Per Secon
lines 1-23...skipping...
-- Logs begin at Sat 2020-11-28 16:28:08 PST, end at Sat 2020-11-28 18:26:56 PST. --
Nov 28 16:28:12 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Nov 28 16:28:12 octopi root[492]: Starting USB webcam
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: starting application
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: MJPG Streamer Version: git rev: 85f89a8c321e799fabb1693c5d133f3fb48ee748
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: Using V4L2 device.: /dev/video10
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: Desired Resolution: 640 x 480
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: Frames Per Second.: 10
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: Format............: JPEG
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: TV-Norm...........: DEFAULT
Nov 28 16:28:12 octopi mjpg_streamer[493]: MJPG-streamer [493]: init_VideoIn failed
Nov 28 16:28:13 octopi systemd[1]: webcamd.service: Succeeded.
Nov 28 16:28:13 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Nov 28 16:28:13 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 28 16:28:13 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 1.
Nov 28 16:28:13 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Nov 28 16:28:13 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Nov 28 16:28:13 octopi root[549]: Starting USB webcam
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: starting application
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: MJPG Streamer Version: git rev: 85f89a8c321e799fabb1693c5d133f3fb48ee748
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: Using V4L2 device.: /dev/video10
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: Desired Resolution: 640 x 480
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: Frames Per Second.: 10
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: Format............: JPEG
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: TV-Norm...........: DEFAULT
Nov 28 16:28:13 octopi mjpg_streamer[550]: MJPG-streamer [550]: init_VideoIn failed
Nov 28 16:28:14 octopi systemd[1]: webcamd.service: Succeeded.
Nov 28 16:28:14 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Nov 28 16:28:15 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 28 16:28:15 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 2.
Nov 28 16:28:15 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Nov 28 16:28:15 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Nov 28 16:28:15 octopi root[580]: Starting USB webcam
Nov 28 16:28:15 octopi mjpg_streamer[581]: MJPG-streamer [581]: starting application
Nov 28 16:28:15 octopi mjpg_streamer[581]: MJPG-streamer [581]: MJPG Streamer Version: git rev: 85f89a8c321e799fabb1693c5d133f3fb48ee748
Nov 28 16:28:15 octopi mjpg_streamer[581]: MJPG-streamer [581]: Using V4L2 device.: /dev/video10
Nov 28 16:28:15 octopi mjpg_streamer[581]: MJPG-streamer [581]: Desired Resolution: 640 x 480
Nov 28 16:28:15 octopi mjpg_streamer[581]: MJPG-streamer [581]: Frames Per Second.: 10
Nov 28 16:28:15 octopi mjpg_streamer[581]: MJPG-streamer [581]: Format............: JPEG
Nov 28 16:28:15 octopi mjpg_streamer[581]: MJPG-streamer [581]: TV-Norm...........: DEFAULT
Nov 28 16:28:15 octopi mjpg_streamer[581]: MJPG-streamer [581]: init_VideoIn failed
Nov 28 16:28:16 octopi systemd[1]: webcamd.service: Succeeded.

still cut off in the middle of the line :confused:
Did you try it in fullscreen?

Was in the process of editing when you caught my error. It is corrected. What is the notation about starting a usb webcam? is that because im set to auto? could that be the issue?

I see it still cuts off. How are you posting your expanded version? Straight from SSH? I'm copying the SSH screen to clipboard then opening it on notepad. Maybe I should use notepad ++

now it works - the end is just in the other line
You can use the </> button to put a marked text in this box.

That souldn't be the issue but let's check if the cam is recognized by v4l2 at all
try v4l2-ctl --list-devices and post the output

pi@octopi:~ $ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
        /dev/video10
        /dev/video11
        /dev/video12

bcm2835-isp (platform:bcm2835-isp):
        /dev/video13
        /dev/video14
        /dev/video15
        /dev/video16

Cannot open device /dev/video0, exiting.
pi@octopi:~ $

```Maybe the device it cant open is my Pi Cam?

Yep it is.
I get the same output when I disconnect the cam.

I just looked at your pictures again and I noticed that it seems like you got the ribbon cable inserted the wrong way. When you look at the back of the camera board (camera pointing away from you) you should see the blue part of the cable - not the contacts

And just to be sure on the pi the contacts need to face away from the ethernet connector

That may be it. I will try and see. I usually try to look down the cable holder and see which side has the wire pins. I put the metal side of the ribbon against the pins but its hard to see down that little slit so I may have it wrong. I am going to power down the Pi and switch it.

Well, when my new camera came and I hooked it up I went back to my longer ribbon and this is the way I wired in the camera. It looks right to me but that was a good pickup on the earlier hook up.

I guess I should go back and look at the other end but I thought I got that right