Octopi fails at first boot

What is the problem?

Hi everyone, I tried to run Octopi on a Raspberry pi 3 model B v1.2 but a bunch of services fail at the first boot (e.g. Avahi, the webcam daemon tries several times but it stops, Open BSD Secure Shell Script). Then I'm prompted with the username and password, I put the usual pi/raspberry and it says that the login is incorrect. All of this from a keyboard plugged directly in the Pi, neither wifi or ethernet seem to work.

What did you already try to solve it?

I changed SD card, changed power brick and cable (apparently no issue with under voltage)

Have you tried running in safe mode?

Didn'get ot that point

Complete Logs

This is the tail -n 100 of my syslog

Dec  2 13:56:39 localhost systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Dec  2 13:56:39 localhost root: Starting USB webcam
Dec  2 13:56:39 localhost MJPG-streamer [879]: starting application
Dec  2 13:56:39 localhost MJPG-streamer [879]: MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
Dec  2 13:56:39 localhost MJPG-streamer [879]: ERROR: could not find input plugin
Dec  2 13:56:39 localhost MJPG-streamer [879]:        Perhaps you want to adjust the search path with:
Dec  2 13:56:39 localhost MJPG-streamer [879]:        # export LD_LIBRARY_PATH=/path/to/plugin/folder
Dec  2 13:56:39 localhost MJPG-streamer [879]:        dlopen: /lib/arm-linux-gnueabihf/libjpeg.so.62: invalid ELF header
Dec  2 13:56:40 localhost systemd[1]: webcamd.service: Succeeded.
Dec  2 13:56:40 localhost systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Dec  2 13:56:40 localhost dhcpcd[405]: timed out
Dec  2 13:56:40 localhost dhcpcd[405]: timed out
Dec  2 13:56:40 localhost dhcpcd[405]: forked to background, child pid 881
Dec  2 13:56:40 localhost systemd[1]: Started dhcpcd on all interfaces.
Dec  2 13:56:40 localhost systemd[1]: Reached target Network.
Dec  2 13:56:40 localhost systemd[1]: Starting /etc/rc.local Compatibility...
Dec  2 13:56:40 localhost systemd[1]: Condition check resulted in fast remote file copy program daemon being skipped.
Dec  2 13:56:40 localhost systemd[1]: Starting Permit User Sessions...
Dec  2 13:56:40 localhost systemd[1]: Starting OpenBSD Secure Shell server...
Dec  2 13:56:40 localhost systemd[1]: Started Permit User Sessions.
Dec  2 13:56:40 localhost sshd[886]: Privilege separation user sshd does not exist
Dec  2 13:56:40 localhost systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
Dec  2 13:56:40 localhost systemd[1]: ssh.service: Failed with result 'exit-code'.
Dec  2 13:56:40 localhost systemd[1]: Failed to start OpenBSD Secure Shell server.
Dec  2 13:56:40 localhost sh[402]: Job for ssh.service failed because the control process exited with error code.
Dec  2 13:56:40 localhost sh[402]: See "systemctl status ssh.service" and "journalctl -xe" for details.
Dec  2 13:56:40 localhost systemd[1]: sshswitch.service: Succeeded.
Dec  2 13:56:40 localhost systemd[1]: Started Turn on SSH if /boot/ssh is present.
Dec  2 13:56:41 localhost systemd[1]: Started /etc/rc.local Compatibility.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Scheduled restart job, restart counter is at 1.
Dec  2 13:56:41 localhost systemd[1]: Stopped OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost systemd[1]: Starting OpenBSD Secure Shell server...
Dec  2 13:56:41 localhost systemd[1]: Started Getty on tty1.
Dec  2 13:56:41 localhost systemd[1]: Reached target Login Prompts.
Dec  2 13:56:41 localhost sshd[897]: Privilege separation user sshd does not exist
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Failed with result 'exit-code'.
Dec  2 13:56:41 localhost systemd[1]: Failed to start OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost systemd[1]: Reached target Multi-User System.
Dec  2 13:56:41 localhost systemd[1]: Reached target Graphical Interface.
Dec  2 13:56:41 localhost systemd[1]: Starting Update UTMP about System Runlevel Changes...
Dec  2 13:56:41 localhost systemd[1]: systemd-update-utmp-runlevel.service: Succeeded.
Dec  2 13:56:41 localhost systemd[1]: Started Update UTMP about System Runlevel Changes.
Dec  2 13:56:41 localhost systemd[1]: Startup finished in 4.734s (kernel) + 41.320s (userspace) = 46.055s.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Scheduled restart job, restart counter is at 2.
Dec  2 13:56:41 localhost systemd[1]: Stopped OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost systemd[1]: Starting OpenBSD Secure Shell server...
Dec  2 13:56:41 localhost sshd[900]: Privilege separation user sshd does not exist
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Failed with result 'exit-code'.
Dec  2 13:56:41 localhost systemd[1]: Failed to start OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Scheduled restart job, restart counter is at 3.
Dec  2 13:56:41 localhost systemd[1]: webcamd.service: Service RestartSec=1s expired, scheduling restart.
Dec  2 13:56:41 localhost systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 14.
Dec  2 13:56:41 localhost systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Dec  2 13:56:41 localhost systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Dec  2 13:56:41 localhost systemd[1]: Stopped OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost systemd[1]: Starting OpenBSD Secure Shell server...
Dec  2 13:56:41 localhost sshd[902]: Privilege separation user sshd does not exist
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Failed with result 'exit-code'.
Dec  2 13:56:41 localhost systemd[1]: Failed to start OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost root: Starting USB webcam
Dec  2 13:56:41 localhost MJPG-streamer [924]: starting application
Dec  2 13:56:41 localhost MJPG-streamer [924]: MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
Dec  2 13:56:41 localhost MJPG-streamer [924]: ERROR: could not find input plugin
Dec  2 13:56:41 localhost MJPG-streamer [924]:        Perhaps you want to adjust the search path with:
Dec  2 13:56:41 localhost MJPG-streamer [924]:        # export LD_LIBRARY_PATH=/path/to/plugin/folder
Dec  2 13:56:41 localhost MJPG-streamer [924]:        dlopen: /lib/arm-linux-gnueabihf/libjpeg.so.62: invalid ELF header
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Scheduled restart job, restart counter is at 4.
Dec  2 13:56:41 localhost systemd[1]: Stopped OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost systemd[1]: Starting OpenBSD Secure Shell server...
Dec  2 13:56:41 localhost sshd[926]: Privilege separation user sshd does not exist
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Failed with result 'exit-code'.
Dec  2 13:56:41 localhost systemd[1]: Failed to start OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
Dec  2 13:56:41 localhost systemd[1]: Stopped OpenBSD Secure Shell server.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Start request repeated too quickly.
Dec  2 13:56:41 localhost systemd[1]: ssh.service: Failed with result 'exit-code'.
Dec  2 13:56:41 localhost systemd[1]: Failed to start OpenBSD Secure Shell server.
Dec  2 13:56:42 localhost systemd[1]: webcamd.service: Succeeded.
Dec  2 13:56:42 localhost systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Dec  2 13:56:43 localhost systemd[1]: webcamd.service: Service RestartSec=1s expired, scheduling restart.
Dec  2 13:56:43 localhost systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 15.
Dec  2 13:56:43 localhost systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Dec  2 13:56:43 localhost systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Dec  2 13:56:43 localhost root: Starting USB webcam
Dec  2 13:56:43 localhost MJPG-streamer [949]: starting application
Dec  2 13:56:43 localhost MJPG-streamer [949]: MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
Dec  2 13:56:43 localhost MJPG-streamer [949]: ERROR: could not find input plugin
Dec  2 13:56:43 localhost MJPG-streamer [949]:        Perhaps you want to adjust the search path with:
Dec  2 13:56:43 localhost MJPG-streamer [949]:        # export LD_LIBRARY_PATH=/path/to/plugin/folder
Dec  2 13:56:43 localhost MJPG-streamer [949]:        dlopen: /lib/arm-linux-gnueabihf/libjpeg.so.62: invalid ELF header

WRITE HERE

Additional information about your setup

2020-12-02-octopi-buster-armhf-lite-0.18.0.img

Which keyboard layout do you use?
The image is configured for a us or uk layout (not quite sure which one) so some letters of the username / password might be wrong.

Does the ethernet not work at all? No activity/link lights no nothing?

Thanks for replying.

I tried to write the password in the login field and it's spelled correctly. So I don't think that's the problem.

To be more precise: wifi only I see some blinking lights but it doesn't connect to the router. Ethernet connects to the router because I can see the ip but is unreachable to both ssh or http (might be related to the services that fail at boot).