Debian login problem

I started a new topic because I don’t think it has anything to do with the PRU Cookbook and the original post became congested with off topic posts and also I would like to troubleshoot the problem to learn what is going on for my education.

Using the BBB, keyboard and touchscreen LCD I could login and get the Debian GUI, but not anymore. Silver2row said Xorg.0.log looked OK so I go looking for other logs that match the time I tried to login by entering a password. I find /var/log/auth.log which is:
Dec 19 10:05:02 beaglebone systemd-logind[841]: Watching system buttons on /dev/input/event1 (Dell Dell USB Keyboard)
Dec 19 10:07:00 beaglebone lxdm-session: pam_unix(lxdm:session): session opened for user debian by (uid=0)
Dec 19 10:07:00 beaglebone lxdm-session: pam_unix(lxdm:session): session opened for user debian by (uid=0)
Dec 19 10:07:00 beaglebone systemd-logind[841]: New session 1 of user debian.
Dec 19 10:07:00 beaglebone systemd: pam_unix(systemd-user:session): session opened for user debian by (uid=0)
Dec 19 10:07:01 beaglebone lxdm-session: pam_unix(lxdm:session): session closed for user debian
Dec 19 10:07:01 beaglebone lxdm-session: pam_unix(lxdm:session): session closed for user debian
Dec 19 10:07:02 beaglebone systemd-logind[841]: Session 1 logged out. Waiting for processes to exit.
Dec 19 10:07:02 beaglebone systemd-logind[841]: Removed session 1.
Dec 19 10:07:16 beaglebone lxdm-session: pam_unix(lxdm:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=debian

Note the last line saying authentication failure, Does anyone know where to look next to find the failure?
I look up PAM and see the /etc/pam.conf and /etc/pam.d/sshd file but do not know much about them, they have not changed recently anyway.

Remember I can ssh into the BBB as root and run startx and using the same password get into Debian OK, so the password is OK. Can the password when using the BBB keyboard change but the ssh root password be unchanged? When I enter a dummy password in the BBB keyboard the auth file displays the same authentication failure line but without the prior login lines, indicating no actual login occurred.

Have a Blessed day!
Don

Also I see the line in lxdm.log xsetroot: unable to open display ‘:0’:

root@beaglebone:/var/log# cat lxdm.log
xf86: remove device 0 /sys/devices/platform/ocp/4830e000.lcdc/drm/card0
xcb_connection_has_error() returned true
(II) Server terminated successfully (0). Closing log file.
xsetroot: unable to open display ‘:0’
** Message: 10:07:02.694: find greeter (nil)

** Message: 10:07:02.694: find idle (nil)

** Message: 10:07:02.705: 1671466022: add xserver watch

X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.19.0-18-armmp-lpae armv7l Debian
Current Operating System: Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020 armv7l
Kernel command line: console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
Build Date: 18 December 2021 09:05:36AM
xorg-server 2:1.20.4-1+deb10u4 (Debian -- User Support)
Current version of pixman: 0.36.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.0.log”, Time: Mon Dec 19 10:07:02 2022
(==) Using config file: “/etc/X11/xorg.conf”
(==) Using system config directory “/usr/share/X11/xorg.conf.d”
** Message: 10:07:03.962: 1671466023: start xserver in 2 retry
** Message: 10:07:03.963: add 0xa7d8d8

** Message: 10:07:03.963: prepare greeter on /var/run/lxdm/lxdm-:0.auth

** Message: 10:07:03.981: start greeter on /var/run/lxdm/lxdm-:0.auth

** Message: 10:07:04.396: greeter 0 session 0xa7d8d8

** Message: 10:07:04.397: user 0 session 0xa7d8d8 cmd USER_LIST

xcb_connection_has_error() returned true
xsetroot: unable to open display ‘:0’
(II) Server terminated successfully (0). Closing log file.
** Message: 10:15:04.880: find greeter (nil)

** Message: 10:15:04.881: find idle (nil)

** Message: 10:15:04.892: 1671466504: add xserver watch

X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.19.0-18-armmp-lpae armv7l Debian
Current Operating System: Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020 armv7l
Kernel command line: console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
Build Date: 18 December 2021 09:05:36AM
xorg-server 2:1.20.4-1+deb10u4 (Debian -- User Support)
Current version of pixman: 0.36.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.0.log”, Time: Mon Dec 19 10:15:04 2022
(==) Using config file: “/etc/X11/xorg.conf”
(==) Using system config directory “/usr/share/X11/xorg.conf.d”
** Message: 10:15:06.151: 1671466506: start xserver in 2 retry
** Message: 10:15:06.151: add 0xa7e498

** Message: 10:15:06.151: prepare greeter on /var/run/lxdm/lxdm-:0.auth

** Message: 10:15:06.170: start greeter on /var/run/lxdm/lxdm-:0.auth

** Message: 10:15:06.645: greeter 0 session 0xa7e498

** Message: 10:15:06.645: user 0 session 0xa7e498 cmd USER_LIST

xcb_connection_has_error() returned true
(II) Server terminated successfully (0). Closing log file.
xsetroot: unable to open display ‘:0’
** Message: 10:19:49.753: find greeter (nil)

** Message: 10:19:49.754: find idle (nil)

** Message: 10:19:49.765: 1671466789: add xserver watch

X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.19.0-18-armmp-lpae armv7l Debian
Current Operating System: Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020 armv7l
Kernel command line: console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
Build Date: 18 December 2021 09:05:36AM
xorg-server 2:1.20.4-1+deb10u4 (Debian -- User Support)
Current version of pixman: 0.36.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.0.log”, Time: Mon Dec 19 10:19:49 2022
(==) Using config file: “/etc/X11/xorg.conf”
(==) Using system config directory “/usr/share/X11/xorg.conf.d”
** Message: 10:19:51.035: 1671466791: start xserver in 2 retry
** Message: 10:19:51.035: add 0xa7f688

** Message: 10:19:51.036: prepare greeter on /var/run/lxdm/lxdm-:0.auth

** Message: 10:19:51.054: start greeter on /var/run/lxdm/lxdm-:0.auth

** Message: 10:19:51.468: greeter 0 session 0xa7f688

** Message: 10:19:51.469: user 0 session 0xa7f688 cmd USER_LIST

But the display is working, I see the login box and enter the password so why does lxde not see it anymore?

Have a Blessed day!
Don

Hi all,
I found my problem - the disk is full:
root@beaglebone:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 212M 0 212M 0% /dev
tmpfs 49M 2.6M 46M 6% /run
/dev/mmcblk1p1 3.5G 3.3G 0 100% /
tmpfs 242M 0 242M 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 242M 0 242M 0% /sys/fs/cgroup
tmpfs 49M 4.0K 49M 1% /run/user/0

root@beaglebone:/# du -h --max-depth=1
32M ./home
16K ./lost+found
221M ./lib
7.2M ./sbin
du: cannot access ‘./proc/3461/task/3461/fd/3’: No such file or directory
du: cannot access ‘./proc/3461/task/3461/fdinfo/3’: No such file or directory
du: cannot access ‘./proc/3461/fd/4’: No such file or directory
du: cannot access ‘./proc/3461/fdinfo/4’: No such file or directory
0 ./proc
13M /root
101M ./PRUCookbook
0 ./dev
9.3M ./bin
4.0K ./mnt
4.0K ./media
2.2G ./usr
388M ./opt
319M ./var
30M ./boot
5.0M ./etc
72K ./tmp
4.0K ./srv
0 /sys
14M . /am335x_pru_package
2.6M ./run
3.3G .
root@beaglebone:/#

So I deleted PRUCookbook and now its at 98%, good enough to login. My question now is what things can I safely remove from the BBB to free up more space. There must be a lot of stuff that comes with the BBB that is not needed is all applications.

Have a Blessed day!
Don

1 Like

Hello @DonTrustee ,

Seth here. Are you still trying to use an updated image from this forum and get a SD Card to its full capacity?

Or…are you using an IoT image or XFCE4 image and trying to inflate the eMMC to fit those types of images?

Are you making your own image?

I think w/ the newer kernels and images that beagleboard.org produces, a reboot will put the full capacity of the SD Card to use. Also, if you are using the eMMC, try the minimal image.

Seth

P.S. Or…erasing things like NodeRed and/or other large programs may prove useful. Just be careful when erasing a ton of stuff. Some items in the images rely on other dependencies that may be removed in the process.

Hello silver2row,
I am relatively new to the BBB and I have not done anything to get the SD card to full capacity. In face I will have to research that. Also not sure what you mean by inflating the eMMC. I just put the latest kernel image last year after I bought the BBB and started reading and writing code.

Thanks for the advice on what to delete. I think I will do some research and maybe make a new topic on this board about what to delete.

Further, I will probably either post another reply to a PRU topic I started or make a net topic on what you need to compile, link and run a PRU program. I got an example to run from the cookbook before the hard disc filled. Could probably put the cookbook on my laptop and transfer files as needed.

Have a Blessed day and new year!
Don

Just put the card in a SD to USB adapter on a desktop Debian or Ubuntu box and use gparted to make it what ever size. And, while in gparted, if you are logging data make a partition for that stuff and automount with a change to your fstab file.

If your laptop can handle virtualbox install it then create a VM just for your BBB programming projects. Debian 11 or Ubuntu 20.04 LTS in a VM is a good choice. I don’t build anything on the boards, its all crosscompiled and files transferred to the target over wire.

W/ the SD Card, rebooting w/ kernel 5.10.x and a new image, creates the SD Card to go to its full capacity.

@RobertCNelson wrote a script to handle it.

Seth

1 Like