You are not logged in.
Pages: 1
EDIT:
I think i found the cause of the problem (When trying to log in as a user, it just reloads after finishing the password input and hitting enter, without actually logging me in. Also, su does not work). In my slight panic i deleted two services i thought might have caused the initial crash, one was user@1000.service, the other a service of similar name. Im pretty sure that this is what causes the problem, since 1000 is the uid of my user. I probably disabled the service responsible for handling users. The problem is, i dont know the name of the second service i disabled any more.
I tried to find it by enabling anything that had any similarity with a user-service, but it still doesnt work.
This is what the output of
systemctl list-unit-files | grep disabledcurrenty looks like:
proc-sys-fs-binfmt_misc.mount disabled disabled
brltty.path disabled disabled
brltty@.path disabled disabled
auditd.service disabled disabled
avahi-daemon.service enabled disabled
avahi-dnsconfd.service enabled disabled
blk-availability.service disabled disabled
canberra-system-bootup.service disabled disabled
canberra-system-shutdown-reboot.service disabled disabled
canberra-system-shutdown.service disabled disabled
console-getty.service disabled disabled
debug-shell.service disabled disabled
display-manager.service bad disabled
dmraid.service disabled disabled
e2scrub_reap.service disabled disabled
fancontrol.service disabled disabled
firewalld.service masked disabled
gluster-ta-volume.service disabled disabled
glusterd.service disabled disabled
glustereventsd.service disabled disabled
glusterfssharedstorage.service disabled disabled
gpm.service disabled disabled
healthd.service disabled disabled
ip6tables.service enabled disabled
iptables.service enabled disabled
krb5-kadmind.service disabled disabled
krb5-kdc.service disabled disabled
krb5-kpropd.service disabled disabled
lm_sensors.service disabled disabled
mariadb.service disabled disabled
mariadb@.service disabled disabled
ndctl-monitor.service disabled disabled
NetworkManager-dispatcher.service enabled disabled
NetworkManager-wait-online.service enabled disabled
NetworkManager.service enabled disabled
ninfod.service disabled disabled
nscd.service disabled disabled
php-fpm.service enabled disabled
rarpd@.service disabled disabled
rdisc.service disabled disabled
rfkill-block@.service disabled disabled
rfkill-unblock@.service disabled disabled
rpcbind.service disabled disabled
rtkit-daemon.service disabled disabled
sensord.service disabled disabled
serial-getty@.service disabled disabled
sudo_logsrvd.service disabled disabled
systemd-backlight@.service masked disabled
systemd-backlight@service.service masked disabled
systemd-boot-check-no-failures.service disabled disabled
systemd-fsck-root.service enabled-runtime disabled
systemd-homed-activate.service disabled disabled
systemd-homed.service disabled enabled
systemd-journal-gatewayd.service indirect disabled
systemd-journal-remote.service indirect disabled
systemd-journal-upload.service disabled disabled
systemd-network-generator.service disabled disabled
systemd-networkd-wait-online.service disabled disabled
systemd-networkd.service disabled enabled
systemd-nspawn@.service disabled disabled
systemd-oomd.service disabled disabled
systemd-pstore.service disabled enabled
systemd-remount-fs.service enabled-runtime disabled
systemd-resolved.service disabled enabled
systemd-sysext.service disabled disabled
systemd-time-wait-sync.service disabled disabled
systemd-timesyncd.service disabled enabled
systemd-userdbd.service indirect disabled
udisks2.service disabled disabled
uuidd.service indirect disabled
wpa_supplicant-nl80211@.service disabled disabled
wpa_supplicant-wired@.service disabled disabled
wpa_supplicant.service disabled disabled
wpa_supplicant@.service disabled disabled
avahi-daemon.socket enabled disabled
krb5-kpropd.socket disabled disabled
rpcbind.socket disabled disabled
systemd-journal-gatewayd.socket disabled disabled
systemd-journal-remote.socket disabled disabled
systemd-networkd.socket disabled disabled
uuidd.socket enabled disabled
exit.target disabled disabled
halt.target disabled disabled
kexec.target disabled disabled
machines.target disabled enabled
poweroff.target disabled disabled
reboot.target disabled enabled
remote-cryptsetup.target disabled enabled
remote-veritysetup.target disabled disabled
btrfs-scrub@.timer disabled disabled
e2scrub_all.timer disabled disabled
fstrim.timer disabled disabled
man-db.timer disabled disabled
xfs_scrub_all.timer Does anybody know which service I would have to enable to fix user management/login?
I tried to set up a nextcloud by following this video: https://youtu.be/SX1JHWViI7E. Somewhere around 14 minutes, when i saved a change to a file, i3 stopped responding to whatever i did. I powered off and on again, but the lightdm window manager I use showed me nothing but my blinking cursor. I logged in to tty as root and removed all but the base packages from my computer and removed the php and nginx directories that i created while following the video from /etc with rm -r in the hope to catch the cause of the problem and disabled nginx.service and mariadb.service.
I will try and see if a login manager will work again, but something else causes me a lot of headache:
If i log in via tty with my user account, everything works fine until i enter my password and hit enter, but after that, the screen flashes for a fraction of a second and then the whole thing resets and i have to enter my username and password again, to the same effect. However, logging in as root works absolutely fine.
The problem is almost certainly not caused by the code in the video, since it has around 5000 views without any mention of such a problem. Thus, it was either a typing error on my side or my reaction to it that caused this particular behaviour.
For now, I am however not interested in the original crash but in the login-problem and how i can fix it. I just thought it might be useful for you to know how it happened.
A few things i tried/remarked:
First, creating a new user and logging in as this user leads to exactly the same results.
Then, trying to log in as root user and then switching with su - username gives me
su: warning: cannot change directory to /home/username: Permission denied
su: failed to execute /bin/bash: Permission deniedwhich is really odd since i thought that i should have all permissions as root
Then, my avahi-daemon.service fails now - which it didnt do before. This is what systemctl shows:
× avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2021-07-03 09:46:18 CEST; 30min ago
TriggeredBy: ● avahi-daemon.socket
Process: 4079 ExecStart=/usr/bin/avahi-daemon -s (code=exited, status=255/EXCEPTION)
Main PID: 4079 (code=exited, status=255/EXCEPTION)
CPU: 6ms
Jul 03 09:46:18 MVorkosigan systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Jul 03 09:46:18 MVorkosigan avahi-daemon[4079]: Found user 'avahi' (UID 977) and group 'avahi' (GID 977).
Jul 03 09:46:18 MVorkosigan avahi-daemon[4079]: Successfully dropped root privileges.
Jul 03 09:46:18 MVorkosigan avahi-daemon[4079]: open(/run/avahi-daemon//pid): Permission denied
Jul 03 09:46:18 MVorkosigan avahi-daemon[4079]: Failed to create PID file: Permission denied
Jul 03 09:46:18 MVorkosigan systemd[1]: avahi-daemon.service: Main process exited, code=exited, status=255/EXCEPTION
Jul 03 09:46:18 MVorkosigan systemd[1]: avahi-daemon.service: Failed with result 'exit-code'.
Jul 03 09:46:18 MVorkosigan systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.This is what happens when i use avahi-browse --all:
Failed to create client object: An unexpected D-Bus error occurredOn looking into the dbus logs with systemctl status dbus.service, this is shown:
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/usr/lib/systemd/system/dbus.service; static)
Active: active (running) since Sat 2021-07-03 10:40:39 CEST; 9min ago
TriggeredBy: ● dbus.socket
Docs: man:dbus-daemon(1)
Process: 516 ExecReload=/usr/bin/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig (code=exi>
Main PID: 364 (dbus-daemon)
Tasks: 1 (limit: 19102)
Memory: 2.8M
CPU: 257ms
CGroup: /system.slice/dbus.service
└─364 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
Jul 03 10:40:39 MVorkosigan systemd[1]: Started D-Bus System Message Bus.
Jul 03 10:41:25 MVorkosigan systemd[1]: Reloading D-Bus System Message Bus.
Jul 03 10:41:25 MVorkosigan dbus-send[516]: Error org.freedesktop.DBus.Error.AccessDenied: Failed to open "/usr/share/dbus-1/system.conf": Permission denied
Jul 03 10:41:25 MVorkosigan systemd[1]: dbus.service: Control process exited, code=exited, status=1/FAILURE
Jul 03 10:41:25 MVorkosigan systemd[1]: Reload failed for D-Bus System Message Bus.Where the reload-failed message is in red
Finally, this is what journalctl -b -p err..alert gives me:
Jul 03 09:25:01 MVorkosigan systemd-fstab-generator[241]: Failed to create unit file /run/systemd/generator/-.mount, as i>
Jul 03 09:25:01 MVorkosigan systemd[236]: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with exit sta>
Jul 03 09:25:01 MVorkosigan systemd-udevd[273]: /etc/udev/rules.d/40-libsane.rules:26: GOTO="libsane_rules_end" has no ma>
Jul 03 09:25:01 MVorkosigan systemd-udevd[273]: /etc/udev/rules.d/S99-2000S1.rules:26: GOTO="libsane_rules_end" has no ma>
Jul 03 09:25:02 MVorkosigan avahi-daemon[366]: open(/run/avahi-daemon//pid): Permission denied
Jul 03 09:25:02 MVorkosigan avahi-daemon[366]: Failed to create PID file: Permission denied
Jul 03 09:25:02 MVorkosigan systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Jul 03 09:25:02 MVorkosigan systemd[1]: Failed to start The PHP FastCGI Process Manager.
Jul 03 09:25:03 MVorkosigan agetty[449]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:25:13 MVorkosigan agetty[461]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:25:21 MVorkosigan systemd[1]: Failed to start User Manager for UID 1000.
Jul 03 09:25:23 MVorkosigan agetty[468]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:25:33 MVorkosigan agetty[469]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:25:37 MVorkosigan systemd[1]: Failed to start User Manager for UID 1000.
Jul 03 09:25:43 MVorkosigan agetty[476]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:25:53 MVorkosigan agetty[526]: /dev/tty: cannot open as standard input: No such device or addressThis is followed by lots of
Jul 03 09:27:23 MVorkosigan agetty[2366]: /dev/tty: cannot open as standard input: No such device or addressThen, this:
Jul 03 09:32:28 MVorkosigan systemd[1]: Failed to start User Manager for UID 1001.Then, again, lots of tty messages
Then this:
Jul 03 09:45:35 MVorkosigan systemd-fstab-generator[4050]: Failed to create unit file /run/systemd/generator/-.mount, as >
Jul 03 09:45:35 MVorkosigan systemd[4044]: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with exit st>
Jul 03 09:45:35 MVorkosigan systemd[1]: Reload failed for D-Bus System Message Bus.
Jul 03 09:45:44 MVorkosigan agetty[4064]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:45:54 MVorkosigan agetty[4069]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:46:04 MVorkosigan agetty[4072]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:46:14 MVorkosigan agetty[4075]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:46:18 MVorkosigan avahi-daemon[4079]: open(/run/avahi-daemon//pid): Permission denied
Jul 03 09:46:18 MVorkosigan avahi-daemon[4079]: Failed to create PID file: Permission denied
Jul 03 09:46:18 MVorkosigan systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Jul 03 09:46:24 MVorkosigan agetty[4080]: /dev/tty: cannot open as standard input: No such device or address
Jul 03 09:46:34 MVorkosigan agetty[4083]: /dev/tty: cannot open as standard input: No such device or addressLast edited by Nselm (2021-07-05 20:14:57)
Offline
Pages: 1