Camera not recognised by RPi

Camera model

Raspberry Pi Camera Module 2

What is the problem?

I got a RPi Zero 2 W the other day and I flashed the latest stable release of OctoPi onto it via a MicroSD card and the Raspberry Pi Imager. I then set everything up as detailed in the quickstart guide. I managed to get everything working, and I added the OctoEverywhere plugin so I can monitor my prints while I'm out of the house. Everything was working perfectly. Today, I got home and I booted the pi so I could test where I wanted to put the camera, as I wanted to get the best angle and then measure up so I could create a mount for it to attach to the printer. I should also probably note that I have been using the case and as some other people have mentioned, the camera slot is a tight fit. Anyway, I booted the pi this afternoon and logged into octopi.local. I went to the control tab and the space where the stream is normally located just says 'Webcam stream not loaded. It might not be configured correctly or require authentication. You can change the URL of the stream under "Settings" > "Classic Webcam" > "Stream URL". If you don't have a webcam you can also just disable webcam support there.'

Please can someone run me through what to do as if I'm 7? I really have no idea what to do.

P.S. I've looked at other people's posts and the issues seem to be caused by updating the OS, but I haven't done that since I last got the camera working.

What did you already try to solve it?

I re-flashed the OS, but as it was a new system, I didn't have a backup to restore from. Same build and version. I have also thoroughly inspected the ribbon cable for any damage and there appears to be none whatsoever. The end that plugs into the pi itself has a bend in it from the case but it's not major and certainly wouldn't be enough to cause any issues. I have also unplugged and re-plugged the cable so many times to each device in case the position of the cable was an issue (pi turned off of course). But nothing.

Have you tried running in safe mode?

Yes.

Did running in safe mode solve the problem?

Nope

Systeminfo Bundle

octoprint-systeminfo-20250109172612.zip (17.5 KB)

Additional information about your setup

OctoPrint version - 1.10.3, OctoPi version - 1.0.0, Build 2024.11.05.100055 with "camera-streamer"

does the url have the default / command after it?
Also, what camera do you have?
Is it a raspberry pi cam, or a webcam like a Logitech?

  1. Everything on OctoPrint is defaults, so yes. I also checked that the URL works, and it did the first time. I'm not sure what I could have done to make it invalid, so this does not matter.
  2. I have a Raspberry Pi Camera Module 2, plugged in as normal through I2C.

Some extra information that I didn't have when I made the post:

  • I ran vcgencmd get_camera and supported = 1, detected = 0 was returned.
  • When I re-flashed the OS the SD card got corrupted, so I repaired it and flashed again, this time I confirmed after the process that the card was fine. It did not help.
  • I enabled I2C and Legacy Camera Support in raspi-config, still nothing.

I think now that there's an issue with the camera module, because the vcgencmd get_camera command returned 0 connected, and the cable is intact. It could also be an issue with the port on the RPi but I'm not sure how this could happen because I have been really careful with it.

Got a new camera yesterday, I plugged it in and nothing. I ran vcgencmd get_camera again and it returned supported=1, detected=1, libcamera interfaces=0. I'm in the process of booting my pi with a fresh OS so I'll see how that goes.

Nope. So, my new camera is an arduCam 8MP camera v2.3. I loaded the stream and now it just gets stuck on 'webcam stream loading. Any suggestions?