Octoscreen installation fails

Hi,
I am using octoprint and TouchUI on a small touch display since a few month.
Now I found Octoscreen and decided to switch for Experimental purposes.

I followed this instruction:


... from 9:15 min

The sudo dpkg extract and install command gave me an error back:

sudo dpkg -i octoscreen_2.5-1_armhf.deb                           (Reading database ... 86728 files and directories currently installed.)
Preparing to unpack octoscreen_2.5-1_armhf.deb ...
Unpacking octoscreen (2.5-1) over (2.5-1) ...
Setting up octoscreen (2.5-1) ...
Installing service /lib/systemd/system/lightdm.service
Failed to preset unit: File /etc/systemd/system/display-manager.service already exists and is a symlink to /lib/systemd/system/lightdm.service.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on octoscreen.service: No such file or directory

I am connected via PuTTY and not able to check the display locally at the moment.

Any Idea what path I have to follow to solve this error?

THX
Cappy

Did you install OctoPrint by flashing the OctoPi IMG to your microSD? If so, then the octoprint service is controlled by a service handler within the /etc/init.d folder area rather than using the /etc/systemd/system section of Raspbian.

So if you see systemctl, that's using the other system.

  • Also, anything within that /etc/systemd/system folder has those scripts appended with a .service extension like the error message was suggesting. In contrast, the files under /etc/init.d don't have file extensions.

So whoever built the octoscreen_2.5-1_armhf.deb package might have made a mistake, I'm guessing.

1 Like

Hi Mr Guru,

u r absolutely right ... I installed Octoprint by flashing the sd card.
I checked if the files in /etc/systemd/system are appended with .service and there a a plenty of them.
The files at /etc/init.d have no extension like this ... but base their names are different.

Anyhow ... what does it mean?
What is my aproach to install or configure Octoscreen?

I did not get the part of your message containing the systemctl

Thanks for helping
Cappy

I guess what I was trying to say is that the author of OctoScreen has built his Debian package based upon the assumption that OctoPrint itself is started up using the systemd daemon rather than with the initd daemon. I think anyone who imaged from the OctoPi IMG would have the init.d version.

There appears to be an open issue on his repository with this same installation error. I commented there, linking back to this thread.


In case you're curious, here is my current setup (flashed with the OctoPi image):

ls -l /etc/init.d
total 148
-rwxr-xr-x 1 root root 5336 Mar 30  2019 alsa-utils
-rwxr-xr-x 1 root root 2401 Apr 27  2018 avahi-daemon
-rwxr-xr-x 1 root root 2948 Jul 28  2018 bluetooth
-rwxr-xr-x 1 root root 1514 Oct 23 14:31 change_hostname
-rwxr-xr-x 1 root root 1108 Oct 23 14:31 change_password
-rwxr-xr-x 1 root root 1232 Aug 15  2019 console-setup.sh
-rwxr-xr-x 1 root root 3059 Jun 23  2019 cron
-rwxr-xr-x 1 root root 2813 Jun  9  2019 dbus
-rwxr-xr-x 1 root root 1901 Sep 14  2015 dhcpcd
-rwxr-xr-x 1 root root 2198 Oct 23  2016 dphys-swapfile
-rwxr-xr-x 1 root root  824 Sep  5  2014 fake-hwclock
-rwxr-xr-x 1 root root 3406 Dec 14  2018 haproxy
-rwxr-xr-x 1 root root 3809 Jan 10  2019 hwclock.sh
-rwxr-xr-x 1 root root 1479 Oct  9  2016 keyboard-setup.sh
-rwxr-xr-x 1 root root 2044 Feb  9  2019 kmod
-rwxr-xr-x 1 root root 4445 Aug 25  2018 networking
-rwxr-xr-x 1 root root 5658 Apr  6  2019 nfs-common
-rwxr-xr-x 1 root root 3255 Jan 13 12:26 octoprint <----- OctoPrint
-rwxr-xr-x 1 root root 2786 Dec 17  2014 paxctld
-rwxr-xr-x 1 root root  924 May 31  2018 procps
-rwxr-xr-x 1 root root 1210 Aug 21  2019 raspi-config
-rwxr-xr-x 1 root root 2020 Jun 28  2011 rng-tools
-rwxr-xr-x 1 root root 2480 Oct 14  2018 rpcbind
-rwxr-xr-x 1 root root 4417 Mar 15  2019 rsync
-rwxr-xr-x 1 root root 2864 Feb 26  2019 rsyslog
-rwxr-xr-x 1 root root 1222 May 21  2017 screen-cleanup
-rwxr-xr-x 1 root root 3939 Apr  8  2019 ssh
-rwxr-xr-x 1 root root 1030 Jan 12  2019 sudo
-rwxr-xr-x 1 root root 3217 Aug 30  2016 triggerhappy
-rwxr-xr-x 1 root root 6872 Sep  9  2019 udev

The only one you're really interested in here is the one for OctoPrint.

ls -l /etc/systemd/system
total 68
-rw-r--r-- 1 root root 1551 Aug 21  2019 autologin@.service
drwxr-xr-x 2 root root 4096 Sep 25 17:11 bluetooth.target.wants
lrwxrwxrwx 1 root root   42 Sep 25 17:12 dbus-fi.w1.wpa_supplicant1.service -> /lib/systemd/system/wpa_supplicant.service
lrwxrwxrwx 1 root root   37 Sep 25 17:11 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
lrwxrwxrwx 1 root root   40 Sep 25 17:11 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
lrwxrwxrwx 1 root root   45 Sep 25 17:06 dbus-org.freedesktop.timesync1.service -> /lib/systemd/system/systemd-timesyncd.service
lrwxrwxrwx 1 root root   36 Dec  5 12:22 default.target -> /lib/systemd/system/graphical.target
lrwxrwxrwx 1 root root   34 Sep 25 17:12 dhcpcd5.service -> /lib/systemd/system/dhcpcd.service
drwxr-xr-x 2 root root 4096 Sep 25 17:12 dhcpcd.service.d
lrwxrwxrwx 1 root root   32 Dec  5 12:16 display-manager.service -> /lib/systemd/system/nodm.service
-rw-r--r-- 1 root root  270 Oct 23 14:31 gencert.service
drwxr-xr-x 2 root root 4096 Dec  4 14:14 getty@tty1.service.d
drwxr-xr-x 2 root root 4096 Sep 25 17:11 halt.target.wants
drwxr-xr-x 2 root root 4096 Sep 25 17:24 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Sep 25 17:08 network-online.target.wants
drwxr-xr-x 2 root root 4096 Sep 25 17:11 poweroff.target.wants
drwxr-xr-x 2 root root 4096 Sep 25 17:12 rc-local.service.d
drwxr-xr-x 2 root root 4096 Sep 25 17:11 reboot.target.wants
drwxr-xr-x 2 root root 4096 Sep 25 17:11 remote-fs.target.wants
drwxr-xr-x 2 root root 4096 Sep 25 17:12 sockets.target.wants
lrwxrwxrwx 1 root root   31 Sep 25 17:24 sshd.service -> /lib/systemd/system/ssh.service
drwxr-xr-x 2 root root 4096 Dec  6 13:13 sysinit.target.wants
lrwxrwxrwx 1 root root   35 Sep 25 17:08 syslog.service -> /lib/systemd/system/rsyslog.service
drwxr-xr-x 2 root root 4096 Sep 25 17:09 timers.target.wants
-rw-r--r-- 1 root root  207 Oct 23 14:31 webcamd.service

Good morning,

I am sorry ... slightly understanding the first paragraph or part of your msg I totally missed the "In case you're curious" chapter.

this is my config

ls -l /etc/init.d
total 176
-rwxr-xr-x 1 root root 5336 Feb  1  2016 alsa-utils
-rwxr-xr-x 1 root root 2401 Jan 23  2017 avahi-daemon
-rwxr-xr-x 1 root root 2948 Oct 24  2016 bluetooth
-rwxr-xr-x 1 root root 1514 Jul 16  2017 change_hostname
-rwxr-xr-x 1 root root 1108 Jul 16  2017 change_password
-rwxr-xr-x 1 root root 1232 Apr  7  2017 console-setup.sh
-rwxr-xr-x 1 root root 3049 Oct  7  2017 cron
-rwxr-xr-x 1 root root 2813 Mar  2  2018 dbus
-rwxr-xr-x 1 root root 1901 Sep 14  2015 dhcpcd
-rwxr-xr-x 1 root root 2198 Oct 24  2016 dphys-swapfile
-rwxr-xr-x 1 root root  824 Sep  5  2014 fake-hwclock
-rwxr-xr-x 1 root root 3406 Apr  4  2017 haproxy
-rwxr-xr-x 1 root root 3809 Mar  7  2018 hwclock.sh
-rwxr-xr-x 1 root root 1479 May 19  2016 keyboard-setup.sh
-rwxr-xr-x 1 root root 2044 Dec 26  2016 kmod
-rwxr-xr-x 1 root root 2610 Jul 25  2011 lightdm
-rwxr-xr-x 1 root root 4597 Sep 16  2016 networking
-rwxr-xr-x 1 root root 5658 Dec 15  2016 nfs-common
-rwxr-xr-x 1 root root 2064 May  8  2019 nmbd
-rwxr-xr-x 1 root root 3255 Jul 16  2017 octoprint
-rwxr-xr-x 1 root root 2786 Dec 18  2014 paxctld
-rwxr-xr-x 1 root root 1366 Dec 18  2016 plymouth
-rwxr-xr-x 1 root root  752 Dec 18  2016 plymouth-log
-rwxr-xr-x 1 root root 1191 May 17  2018 procps
-rwxr-xr-x 1 root root 1210 Apr 20  2018 raspi-config
-rwxr-xr-x 1 root root 2358 May  5  2017 rpcbind
-rwxr-xr-x 1 root root 4355 Dec 10  2017 rsync
-rwxr-xr-x 1 root root 2868 Jan 18  2017 rsyslog
-rwxr-xr-x 1 root root 1348 May  8  2019 samba
-rwxr-xr-x 1 root root 2389 May  8  2019 samba-ad-dc
-rwxr-xr-x 1 root root 1222 Apr  3  2017 screen-cleanup
-rwxr-xr-x 1 root root 2005 May  8  2019 smbd
-rwxr-xr-x 1 root root 4033 Mar  1  2018 ssh
-rwxr-xr-x 1 root root  731 Jun  5  2017 sudo
-rwxr-xr-x 1 root root 3722 Mar  5 16:25 touchui
-rwxr-xr-x 1 root root 3217 Aug 30  2016 triggerhappy
-rwxr-xr-x 1 root root 6087 Oct 28  2018 udev
-rwxr-xr-x 1 root root 3129 Jul 16  2017 webcamd
-rwxr-xr-x 1 root root 2757 Nov 23  2016 x11-common

... and the Octoprint folder

 ls -l /etc/systemd/system
total 68
-rw-r--r-- 1 root root 1551 Nov  2 13:33 autologin@.service
drwxr-xr-x 2 root root 4096 Nov 13  2018 bluetooth.target.wants
lrwxrwxrwx 1 root root   42 Nov  5 18:03 dbus-fi.w1.wpa_supplicant1.service -> /lib/systemd/system/wpa_supplicant.service
lrwxrwxrwx 1 root root   37 Nov 13  2018 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
lrwxrwxrwx 1 root root   40 Nov 13  2018 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
lrwxrwxrwx 1 root root   37 Nov  5 17:29 default.target -> /lib/systemd/system/multi-user.target
lrwxrwxrwx 1 root root   34 Nov 13  2018 dhcpcd5.service -> /lib/systemd/system/dhcpcd.service
drwxr-xr-x 2 root root 4096 Nov 13  2018 dhcpcd.service.d
lrwxrwxrwx 1 root root   35 Mar 11 14:00 display-manager.service -> /lib/systemd/system/lightdm.service
-rw-r--r-- 1 root root  270 Oct 30  2017 gencert.service
drwxr-xr-x 2 root root 4096 Nov  7 07:49 getty.target.wants
drwxr-xr-x 2 root root 4096 Nov  5 19:06 getty@tty1.service.d
drwxr-xr-x 2 root root 4096 Mar 11 13:39 graphical.target.wants
drwxr-xr-x 2 root root 4096 Nov 13  2018 halt.target.wants
drwxr-xr-x 2 root root 4096 Jan  4 14:03 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Nov 13  2018 network-online.target.wants
drwxr-xr-x 2 root root 4096 Nov 13  2018 poweroff.target.wants
drwxr-xr-x 2 root root 4096 Nov 13  2018 rc-local.service.d
drwxr-xr-x 2 root root 4096 Nov 13  2018 reboot.target.wants
drwxr-xr-x 2 root root 4096 Nov 13  2018 remote-fs.target.wants
lrwxrwxrwx 1 root root    9 Jan  4 14:03 samba-ad-dc.service -> /dev/null
drwxr-xr-x 2 root root 4096 Nov 13  2018 sockets.target.wants
drwxr-xr-x 2 root root 4096 Nov 13  2018 sysinit.target.wants
lrwxrwxrwx 1 root root   35 Nov 13  2018 syslog.service -> /lib/systemd/system/rsyslog.service
drwxr-xr-x 2 root root 4096 Nov 13  2018 timers.target.wants

... can you help my with switching to Octoscreen?

Thanks
Cappy

As guessed, you have the OctoPi-imaged installation and your octoprint service is started from init.d rather than from systemd. If you're curious feel free to cat /etc/init.d/octoprint if you'd like to see how that service handler does its job when you, for example, say sudo service octoprint start.

All that said, now take this to the octoscreen issue, chime in with the other person/people and ask that author what to do. By helping him fix his code, it will help everyone.

Hi Guru,

I am sorry again ... who do you want me to contact?
Is there a special Octoscreen-Thread?

Cappy

I deleted the repeat of this post on another thread. No, I didn't mean for you to spread out here.

I'm suggesting that you reach out to the author of OctoScreen. Start with their repository, visit the Issues link, research to see if someone else is already talking about this. If not, start a new issue.

Did you ever find a fix for this issue? I believe I am having the same issue. My screen is partly off to the side. When I reboot I see the message that systemctl was not turned on or something to that affect. can you assist me? Thank you.

Again, follow the advice just above. Ask the plugin author for OctoScreen on his/her Issues page.