Errors during LXDE & TigerVNC dietpi-software install? Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by MichaIng »

Looks like that SD card is broken. Also I recognised in fstab, the root and boot partition's file system has been entered as "auto" while it should be ext4 and vfat respectively, like it was not detected correctly.

When you face those "command not found" errors, can you run and show the output of the following:

Code: Select all

echo $PATH
command -v dmesg
[[ -f '/bin/dmesg' ]] && echo 'bash sees that file'
echo "$(</proc/mounts)"
baremetaloctopus
Posts: 21
Joined: Wed Sep 23, 2020 8:22 pm

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by baremetaloctopus »

Broken as in bin the SD Card and use another one, or broken in such a way that it would be worth trying a fresh install - if you are unsure, from your experience, if you were in this situation which option would you personally choose?

This is from when trying to install again:

Image

Code: Select all

[ INFO ] DietPi-Software | APT install for: xserver-xorg-core xserver-xorg-input                                                            -libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-utils libgl1-mesa-dri                                                             mesa-utils mesa-utils-extra xserver-xorg-video-fbdev, please wait...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to cor                                                            rect the problem.
[FAILED] DietPi-Software | APT install for: xserver-xorg-core xserver-xorg-input                                                            -libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-utils libgl1-mesa-dri                                                             mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
 - Command: apt-get -qq --allow-change-held-packages install xserver-xorg-core x                                                            server-xorg-input-libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-util                                                            s libgl1-mesa-dri mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
[ INFO ] DietPi-Software | APT install for: xserver-xorg-core xserver-xorg-input                                                            -libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-utils libgl1-mesa-dri                                                             mesa-utils mesa-utils-extra xserver-xorg-video-fbdev, please wait...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to cor                                                            rect the problem.
[FAILED] DietPi-Software | APT install for: xserver-xorg-core xserver-xorg-input                                                            -libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-utils libgl1-mesa-dri                                                             mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
 - Command: apt-get -qq --allow-change-held-packages install xserver-xorg-core x                                                            server-xorg-input-libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-util                                                            s libgl1-mesa-dri mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
[ INFO ] DietPi-Bugreport | cp /tmp/G_EXEC_ERROR_REPORT G_EXEC_ERROR_REPORT, ple                                                            ase wait...
[  OK  ] DietPi-Bugreport | cp /tmp/G_EXEC_ERROR_REPORT G_EXEC_ERROR_REPORT
[  OK  ] DietPi-Bugreport | Packing upload archive
[  OK  ] DietPi-Bugreport | Sending bug report
[ INFO ] DietPi-Bugreport | Reference code: 7120d931-0a86-43cd-9a4d-fcca315d631f

Code: Select all

#### Details:
- Date           | Thu Jun  3 09:06:51 BST 2021
- Bug report     | 7120d931-0a86-43cd-9a4d-fcca315d631f
- DietPi version | v7.2.3 (MichaIng/master)
- Image creator  | DietPi Core Team
- Pre-image      | Raspberry Pi OS (32-bit) Lite
- Hardware       | RPi 3 Model B (armv7l) (ID=3)
- Kernel version | Linux DietPi 5.10.17-v7+ #1421 SMP Thu May 27 13:59:01 BST 20                                                            21 armv7l GNU/Linux
- Distro         | buster (ID=5,RASPBIAN=1)
- Command        | apt-get -qq --allow-change-held-packages install xserver-xorg                                                            -core xserver-xorg-input-libinput xinit dbus-x11 xfonts-base x11-xserver-utils x                                                            11-utils libgl1-mesa-dri mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
- Exit code      | 100
- Software title | DietPi-Software
#### Steps to reproduce:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...
#### Expected behaviour:
<!-- What SHOULD happen? -->
- ...
#### Actual behaviour:
<!-- What IS happening? -->
- ...
#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...
#### Additional logs:
```
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to cor                                                            rect the problem.
```
After sudo dpkg --configure -a I received errors and input the code you suggested:

Code: Select all

dietpi@DietPi:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
dietpi@DietPi:~$ command -v dmesg
/bin/dmesg
dietpi@DietPi:~$ [[ -f '/bin/dmesg' ]] && echo 'bash sees that file'
bash sees that file
dietpi@DietPi:~$ echo "$(</proc/mounts)"
/dev/root / ext4 rw,lazytime,noatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=465280k,nr_inodes=116320,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
tmpfs /var/log tmpfs rw,lazytime,nosuid,nodev,noatime,size=51200k 0 0
tmpfs /tmp tmpfs rw,lazytime,nosuid,nodev,noatime,size=1048576k 0 0
/dev/mmcblk0p1 /boot vfat rw,lazytime,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
Please let me know if I can try anything else or provide any more information - or if I should go ahead and try a fresh install on the SD card, or scrap it for a new one.
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by Joulinar »

what is the error on sudo dpkg --configure -a
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
baremetaloctopus
Posts: 21
Joined: Wed Sep 23, 2020 8:22 pm

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by baremetaloctopus »

Looking back on the log again I can see that there actually were no errors. I have been able to install LXDE and TigerVNC, thank you both :)

Should I be concerned about the system or card, or do anything else to do anything else to check it?

During the LXDE and TigerVNC install a wizard appeared asking me to select whether the desktop or terminal etc would load automatically but it closes itself while I am reading the options - I uninstalled and reinstalled and this happened a few times. If I am away from the keyboard for long enough when the wizard appears I will just be taken back to the terminal without pressing anything.

Code: Select all

dietpi@DietPi:~$ systemctl status vncserver
● vncserver.service - Manage VNC Server (DietPi)
   Loaded: loaded (/etc/systemd/system/vncserver.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2021-06-03 13:51:45 BST; 12s ago
  Process: 3326 ExecStart=/usr/local/bin/vncserver start (code=exited, status=0/SUCCESS)
 Main PID: 3326 (code=exited, status=0/SUCCESS)
Can you please tell me if this is necessary, and if so if there is some way I can bring up the Wizard again without uninstalling and reinstalling again, are if there any particular options I should choose to be able to keep Discord persistently running and starting automatically on boot?

When I use TigerVNC to connect to my Pi on port 1 or port 5901 I receive a password prompt, and I read on the DietPi website I should have been prompted to configure one but I was not. I tried my dietpi user password but this did not work.

With vncpassword I set a password and a view only password but when I paste the password to the TigerVNC password prompt I receive an authentication failure.

Can you please tell me what I need to do here?
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by Joulinar »

to be able to change auto start option, just use dietpi-config > 9 : AutoStart Options
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
baremetaloctopus
Posts: 21
Joined: Wed Sep 23, 2020 8:22 pm

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by baremetaloctopus »

Is there something in particular there I need to configure that is not covered in the guide?

https://dietpi.com/docs/software/remote_desktop/

but after inputting my password to the prompt which warns the connection is not secure I receive this error:

Image
baremetaloctopus
Posts: 21
Joined: Wed Sep 23, 2020 8:22 pm

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by baremetaloctopus »

I tried to view the log file but it does not exist:

Code: Select all

dietpi@DietPi:~/.vnc$ ls -la
total 12
drwxr-xr-x 2 dietpi dietpi 4096 Jun  3 13:58 .
drwxr-xr-x 3 dietpi dietpi 4096 Jun  3 13:58 ..
-rw------- 1 dietpi dietpi    8 Jun  3 14:49 passwd
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by MichaIng »

By default it's a root user session. When you're not logged into console as root user, the password hence needs to be set via: sudo vncpasswd

If you want to have a dietpi user session:

Code: Select all

mkdir -p /home/dietpi/.vnc
sudo cp -a /root/.vnc/xstartup /home/dietpi/.vnc/xstartup
sudo chown -R dietpi: /home/dietpi/.vnc
sed -i 's|/root|/home/dietpi|g' /home/dietpi/.vnc/xstartup
vncpasswd
sudo systemctl stop vncserver
sudo dietpi-services
  • Select "vncserver"
  • Select "Edit"
  • Uncomment and change those two lines

Code: Select all

User=dietpi
Environment=HOME=/home/dietpi
I think it should be restarted already, but if not:

Code: Select all

sudo systemctl restart vncserver
baremetaloctopus
Posts: 21
Joined: Wed Sep 23, 2020 8:22 pm

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by baremetaloctopus »

Thank you for the reply, but something is still not right:

Code: Select all

dietpi@DietPi:~$ mkdir -p /home/dietpi/.vnc
dietpi@DietPi:~$ sudo cp -a /root/.vnc/xstartup /home/dietpi/.vnc/xstartup
dietpi@DietPi:~$ sudo chown -R dietpi: /home/dietpi/.vnc
dietpi@DietPi:~$ sed -i 's|/root|/home/dietpi|g' /home/dietpi/.vnc/xstartup
dietpi@DietPi:~$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
dietpi@DietPi:~$ sudo systemctl stop vncserver
dietpi@DietPi:~$ sudo dietpi-services
If relevant for vncserver instead of showing active here it shows failed on this screen:

Image

and also here for the state:

Image

Code: Select all

[Unit]
#Description=Manage VNC Server (DietPi)
#Before=xrdp.service xrdp-sesman.service
#Wants=network-online.target
#After=network-online.target dietpi-boot.service

[Service]
#RemainAfterExit=yes
User=dietpi
#PAMName=login
Environment=HOME=/home/dietpi
#ExecStart=/usr/local/bin/vncserver start
#ExecStop=/usr/local/bin/vncserver stop

[Install]
#WantedBy=multi-user.target
On saving and exited it does automatically restart the service but as a precaution:

Code: Select all

[  OK  ] DietPi-Services | systemctl daemon-reload
[  OK  ] DietPi-Services | systemctl restart vncserver
I then tried connecting on port 5901 and port 1:

Image

Prompt warns the connection is insecure:

Image

And then as before rejects the password with Authentication Failure.

Please tell me if there is something else I can try or more information I can provide?

if relevant when prompted during install I selected the user dietpi rather than root.

systemd status log:

Image
baremetaloctopus
Posts: 21
Joined: Wed Sep 23, 2020 8:22 pm

Re: Errors during LXDE & TigerVNC dietpi-software install?

Post by baremetaloctopus »

daemon-reload resolved this, thanks.

Code: Select all

dietpi@DietPi:~$ systemctl status vncserver
Warning: The unit file, source configuration file or drop-ins of vncs
erver.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● vncserver.service - Manage VNC Server (DietPi)
   Loaded: loaded (/etc/systemd/system/vncserver.service; enabled; vendor preset
: enabled)
  Drop-In: /etc/systemd/system/vncserver.service.d
           └─dietpi-services_edit.conf
   Active: active (exited) since Fri 2021-06-04 13:36:43 BST; 2h 44mi
n ago
  Process: 408 ExecStart=/usr/local/bin/vncserver start (code=exited, status=0/S
UCCESS)
 Main PID: 408 (code=exited, status=0/SUCCESS)
dietpi@DietPi:~$ systemctl daemon-reload
Failed to reload daemon: Interactive authentication required.
dietpi@DietPi:~$ sudo systemctl daemon-reload
dietpi@DietPi:~$ systemctl status vncserver
● vncserver.service - Manage VNC Server (DietPi)
   Loaded: loaded (/etc/systemd/system/vncserver.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/vncserver.service.d
           └─dietpi-services_edit.conf
   Active: active (exited) since Fri 2021-06-04 13:36:43 BST; 2h 45min ago
 Main PID: 408 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 1628)
   CGroup: /system.slice/vncserver.service
Post Reply