Pi webcam no longer work since I installed graphic interface

Hi, Here is my problem with octopi 0.17.0
Thanks a lot for your help, I must say I know very little about linux, I followed a tutorial to install Octopi and then the graphic interface (I had to ggogle to use vi to put a log at the end...
Thanks for any help and for your patience !
Stephane.

Camera model Raspberry Pi v2.1

What is the problem? On Rasperry Pi 2 Model B v1.1, I have the Error :
"Failed to start OctoPi webcam daemon with the user specified in config."

What did you already try to solve it? All I could... Everything (including the pi camera) was working after initial installation of Octopi 0.17.0,
but since I installed the following the control cannot display the video any more :
sudo apt-get update sudo apt-get dist-upgrade
$ sudo reboot

Then the Graphic Server :
$ sudo apt-get install xserver-xorg

Then the desktop :
$ sudo apt-get install raspberrypi-ui-mods

Then Session manager :
sudo apt-get install lightdm sudo reboot

At least install of Starting Navigator :
sudo apt-get install chromium-browser --yes sudo reboot

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

syslog

login as: pi
pi@192.168.0.24's password:
Linux octopi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 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 Apr 4 18:32:06 2020 from 192.168.0.31

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.


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

http://octopi.local
http://192.168.0.24
http://[2a01:e0a:a:a240:da13:5cd0:e91d:5b43]

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

OctoPrint version : 1.3.12
OctoPi version : 0.17.0

pi@octopi:~ cd /var/log pi@octopi:/var/log ls
alternatives.log daemon.log.1 kern.log syslog
apt debug kern.log.1 syslog.1
auth.log debug.1 lastlog user.log
auth.log.1 dpkg.log lightdm user.log.1
boot.log faillog messages wtmp
bootstrap.log fontconfig.log messages.1 Xorg.0.log
btmp haproxy.log private Xorg.0.log.old
daemon.log haproxy.log.1 regenerate_ssh_host_keys.log
pi@octopi:/var/log $ vi syslog
Apr 5 00:00:55 octopi rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="304" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
Apr 5 00:00:55 octopi rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="304" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
Apr 5 00:00:55 octopi systemd[1]: logrotate.service: Succeeded.
Apr 5 00:00:55 octopi systemd[1]: Started Rotate log files.
Apr 5 00:00:56 octopi systemd[1]: man-db.service: Succeeded.
Apr 5 00:00:56 octopi systemd[1]: Started Daily man-db regeneration.
Apr 5 00:08:08 octopi systemd[1]: Created slice User Slice of UID 1000.
Apr 5 00:08:08 octopi systemd[1]: Starting User Runtime Directory /run/user/1000...
Apr 5 00:08:09 octopi systemd[1]: Started User Runtime Directory /run/user/1000.
Apr 5 00:08:09 octopi systemd[1]: Starting User Manager for UID 1000...
Apr 5 00:08:09 octopi systemd[1407]: Listening on GnuPG network certificate management daemon.
Apr 5 00:08:09 octopi systemd[1407]: Starting D-Bus User Message Bus Socket.
Apr 5 00:08:09 octopi systemd[1407]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Apr 5 00:08:09 octopi systemd[1407]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Apr 5 00:08:09 octopi systemd[1407]: Reached target Paths.
Apr 5 00:08:09 octopi systemd[1407]: Reached target Timers.
"syslog" [readonly] 26 lines, 898964 characters

Just an idea I don't know this particular error:

How much memory did you assign to your gpu?
Display + cam might need more then they got.
Try 256 MB.

If that doesn't help please upload the webcamd.log and octoprint.log

Thanks for your Answer,
I have no idea how to change more memory to Display+cam but it was working perfectly before graphic installation and I don't know why it wouldn't work with same config.

I didn't find webcamd.log neither octoprint.log in /var/log directory, do you know where they are and how to upload them without vi ???

Thanks a lot !
Stephane

I Just upgraded to octoprint version 1.4.0, but still the same problem with the Pi camera, Fail of Octopi Webcam deamon : "Failed to start OctoPi webcam daemon with the user specified in config."

Search for gpu_mem in your config.txt on the boot partition of your sd card.
Either mount the sdcard on your pc or edit it with vi or nano.

sudo nano /boot/config.txt 

Do you mean before octopi 0.17.0?
Maybe debian buster (that's what 0.17.0 is based on) needs more resources - but that's just a shot in the dark.

Click on octoprint.log and you'll get help with the location :wink:
If you're on windows I would recommend WinSCP for downloading the log. It got an easy to use file explorer gui :slight_smile:

Thanks a lot, I just managed to modify the gpu_mem using vi (it's not that easy to use...)
I will reboot my raspberry to see if it's better now after my actual print (it's a long one).
I have only used octopi 0.17.0. The camera was perfectly working before I installed the graphic interface of the octopi (see my first message). I did not touch anything and just after the daemon was not anymore starting properly.
Perhaps a memory problem you might be right.

Thanks again for your explanations, if it doesn't work I will try the octoprint.log
Stephane

1 Like

Have you tried going into raspi config and enabling the camera interface again? I have to do this with the particular touchscreen i have. After I install the touchscreen driver the camera no longer loads, but once I go back into config and enable it again it's good to go

Hi,
Thanks for your answer, I am not sure to know how to do this, and I would'nt like to break anything...
In which file do I have to change something ?
Thanks,
Stéphane

ssh to the pi
sudo raspi-config
put in your password
Go to interfacing options(5)
Go to Camera (1)
It asks if you want the camera interface to be enabled, say yes
reboot when it asks
That's it