RSP Camera not turning on or working

Raspi Cam Rev 1.3

Whenever I load up octoprint,my camera led turns to a red color.The led stays on for a few seconds before turning off.This leads me to believe that something is either wrong with the camera or the CSI connecter on my RSP 3b+.The problem could also be with the program.

**I first checked to see if my ribbon cable was misaligned on my pi or the camera pcb.I also checked the connection to my sunny connector.Nothing there.Next,I connected to my pi using ssh and took a test shot with my camera.The error was that no response was coming from the sensor.I enabled the camera on both octopi and PuTTy and nothing seems to work.I also checked that the ribbon cable was in the proper camera connector.Also my octoprint control screen says "Webcam stream loading" everytime I load octoprint.I am truly confused. **

Logs (/var/log/webcamd.log no logs, no support)

Additional information about your setup ( Im using OctoPrint version 1.3.12 and
, OctoPi version 0.17.0)