IMX 519 Will not work

Camera model
IMX519
OV5647 (Working)

What is the problem?
Camera will not show up. Other cameras work so I know its not the hardware.

What did you already try to solve it?
Factory reset the PI. Installtion instructions from here.

pi@raspberrypi:~ $ vcgencmd get_camera
supported=1 detected=0

So it supports the webcam but cannot detect it. I have bought 2 of these cameras thinking it may have been a faulty one.

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)
Logs kept saying pi@raspberrypi:~ $ sudo: /var/log/webcamd.log: command not found
-bash: sudo:: command not found

pi@raspberrypi:~ $ journalctl -u webcamd
-- Logs begin at Mon 2022-06-20 12:17:02 EDT, end at Mon 2022-06-20 13:39:35 EDT
Jun 20 13:30:22 raspberrypi systemd[1]: Starting the OctoPi webcam daemon with t
Jun 20 13:38:18 raspberrypi systemd[1]: webcamd.service: Start operation timed o
Jun 20 13:38:18 raspberrypi systemd[1]: webcamd.service: Failed with result 'tim
Jun 20 13:38:18 raspberrypi systemd[1]: Failed to start the OctoPi webcam daemon
Jun 20 13:38:19 raspberrypi systemd[1]: webcamd.service: Service RestartSec=1s e
Jun 20 13:38:19 raspberrypi systemd[1]: webcamd.service: Scheduled restart job,
Jun 20 13:38:19 raspberrypi systemd[1]: Stopped the OctoPi webcam daemon with th
Jun 20 13:38:19 raspberrypi systemd[1]: Starting the OctoPi webcam daemon with t
lines 1-9/9 (END)...skipping...
-- Logs begin at Mon 2022-06-20 12:17:02 EDT, end at Mon 2022-06-20 13:39:35 EDT. --
Jun 20 13:30:22 raspberrypi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jun 20 13:38:18 raspberrypi systemd[1]: webcamd.service: Start operation timed out. Terminating.
Jun 20 13:38:18 raspberrypi systemd[1]: webcamd.service: Failed with result 'timeout'.
Jun 20 13:38:18 raspberrypi systemd[1]: Failed to start the OctoPi webcam daemon with the user specified con
Jun 20 13:38:19 raspberrypi systemd[1]: webcamd.service: Service RestartSec=1s expired, scheduling restart.
Jun 20 13:38:19 raspberrypi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 1.
Jun 20 13:38:19 raspberrypi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jun 20 13:38:19 raspberrypi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-9/9 (END)...skipping...
-- Logs begin at Mon 2022-06-20 12:17:02 EDT, end at Mon 2022-06-20 13:39:35 EDT. --
Jun 20 13:30:22 raspberrypi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jun 20 13:38:18 raspberrypi systemd[1]: webcamd.service: Start operation timed out. Terminating.
Jun 20 13:38:18 raspberrypi systemd[1]: webcamd.service: Failed with result 'timeout'.
Jun 20 13:38:18 raspberrypi systemd[1]: Failed to start the OctoPi webcam daemon with the user specified config.
Jun 20 13:38:19 raspberrypi systemd[1]: webcamd.service: Service RestartSec=1s expired, scheduling restart.
Jun 20 13:38:19 raspberrypi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 1.
Jun 20 13:38:19 raspberrypi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jun 20 13:38:19 raspberrypi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-9/9 (END)

Additional information about your setup (OctoPrint version, OctoPi version, ...)

Rasberry Pi 4 - Ender 3

Was able to get the logs;

Starting up webcamDaemon...

--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: auto
usb options: -r 640x480 -f 10
raspi options: -fps 10
http options: -w ./www-octopi -n --listen 127.0.0.1

Explicitly USB device:

Found video devices:
/dev/video0
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14

The camera needs drivers, a modded version of the streamer and other stuff.

This guide will help you step by step

But I would use the latest OctoPi nightly from the Pi imager instead of the older one from the guide

thanks! tried it again with a nightly and it worked.

Only issue I am having now is I can adjust the focus from the plugin. It keeps giving an error from the control panel of "Trouble accessing camera. I2C bus failure. Is camera plugged in?" but I can adjust the focus from the plug in itself

You do have I2C enabled, correct?

Yes, as far as I know. I went into the config options and enabled it and rebooted.